Time to time, Software Updater is failing to synchronize with the latest system packages update.
In this article, you will learn how to quickly fix that via the Terminal.
When trying to update the system with the latest packages version, one of the method is to use Software Updater.
In case your system is up to date, the below message is displayed :
Another method is to do the same via the Terminal :
pkgman full-sync
However you might encounter an issue when trying to synchronize :
~> pkgman full-sync
100 % repochecksum-1 [65 bytes]
Validating checksum for Haiku…done.
100 % repochecksum-1 [64 bytes]
Validating checksum for HaikuPorts…done.
The following changes will be made:
in system:
upgrade package haiku-r1~beta5_hrev57937_125-1 to r1~beta5_hrev57937_129-1 from repository Haiku
upgrade package haiku_loader-r1~beta5_hrev57937_125-1 to r1~beta5_hrev57937_129-1 from repository Haiku
upgrade package makefile_engine-r1~beta5_hrev57937_125-1 to r1~beta5_hrev57937_129-1 from repository Haiku
upgrade package haiku_devel-r1~beta5_hrev57937_125-1 to
...
upgrade package webpositive-r1~beta5_hrev57937_125-1 to r1~beta5_hrev57937_129-1 from repository Haiku
Continue? yes/no : yes
100 % haiku-r1~beta5_hrev57937_129-1-x86_64.hpkg [36,84 MiB]
Checksum error:
*** expected '9326c239f2cfdcd5eddaa7b9b90c12b281f7a65008e687054eeb00bf07d16a31'
*** got 'df5b86fa5cb12b2fa1cce1e082250be981a85c21e6d4c2ea82c200ea353ce178'*** Failed to download package haiku: Bad data
This "bad data" issue is due to a failed download in the "/system/packages/administrative/" folder.
In order to fix that issue, you just need to delete the "/system/packages/administrative/transaction-*" entries as below :
rm -rf /system/packages/administrative/transaction-*
Then run again Software Updater to reprocess the updates or run the pkgman to synchronize again :
pkgman full-sync
The issue should now be resolved !