Sure it can. That’s what the checksum is for, to verify you have gotten the package correctly, it was not mangled in transport and was not tampered with.
Try deleting the downloaded package and downloading it again. See if the new checksum is the same as the one you got now. If it is we might have to check the server.
Sorry for late answering … On 5th of October I had an accident, my upper right arm broken vertically.
I just came out the hospital where finally I had operated yet,then rested a bit and booted Haiku.
If you had been read my terminal log too … then you could have seen I deleted the transaction dirs. and used the find command to seek for the exact package - not available in my install.
After I just issued a uname -a, to be clear which Haiku and version.
The issue still persists.
~> chk_pkgs.sh
Tároló ellenőrzőkódjának letöltése (https://software.besly.de/repo64) ...
Ellenőrzőkód érvényesítése a tárolóhoz (BeSly Software Solutions) ...
Tároló ellenőrzőkódjának letöltése (http://fatelk.com/repo_64) ...
Ellenőrzőkód érvényesítése a tárolóhoz (FatElk_64) ...
Tároló ellenőrzőkódjának letöltése (https://eu.hpkg.haiku-os.org/haiku/r1beta5/x86_64/current) ...
Ellenőrzőkód érvényesítése a tárolóhoz (Haiku) ...
Tároló ellenőrzőkódjának letöltése (https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current) ...
Ellenőrzőkód érvényesítése a tárolóhoz (HaikuPorts) ...
Tároló ellenőrzőkódjának letöltése (http://haiku.kacperkasper.pl/repo/x86_64) ...
Ellenőrzőkód érvényesítése a tárolóhoz (KapiX's Depot) ...
Tároló ellenőrzőkódjának letöltése (https://www.haikuware.ru/repo/lote) ...
Ellenőrzőkód érvényesítése a tárolóhoz (LOTE) ...
100% repochecksum-1 [65 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (BeSly Software Solutions)...done.
100% repochecksum-1 [65 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (FatElk_64)...done.
100% repochecksum-1 [65 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (Haiku)...done.
100% repochecksum-1 [64 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (HaikuPorts)...done.
100% repochecksum-1 [65 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (KapiX's Depot)...done.
100% repochecksum-1 [71 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (LOTE)...done.
The following changes will be made:
in system:
upgrade package haiku-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package haiku_loader-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package zlib-1.3.1-3 to 1.3.1-4 from repository HaikuPorts
upgrade package clipdinger-1.2.3-2 to 1.2.4-2 from repository HaikuPorts
upgrade package zlib_devel-1.3.1-3 to 1.3.1-4 from repository HaikuPorts
upgrade package ponpokodiff-0.5-1 to 0.5.1-1 from repository HaikuPorts
upgrade package readline-8.2.001-1 to 8.2.013-1 from repository HaikuPorts
upgrade package qt5-5.15.14-3 to 5.15.15-1 from repository HaikuPorts
upgrade package dooble-2024.08.20-1 to 2024.09.29-1 from repository HaikuPorts
upgrade package pyqt5-5.15.10-3 to 5.15.11-1 from repository HaikuPorts
upgrade package pyqt5_python310-5.15.10-3 to 5.15.11-1 from repository HaikuPorts
upgrade package haiku_datatranslators-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package haiku_extras-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package userland_fs-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package haiku_devel-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package webpositive-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package netfs-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
Continue? [yes/no] (yes) :
Re-using download '/boot/system/packages/administrative/transaction-1/haiku-r1~beta5_hrev57937_122-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haiku/r1beta5/x86_64/current/packages/haiku-r1~beta5_hrev57937_122-1-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/haiku_loader-r1~beta5_hrev57937_122-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haiku/r1beta5/x86_64/current/packages/haiku_loader-r1~beta5_hrev57937_122-1-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/zlib-1.3.1-4-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/zlib-1.3.1-4-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/clipdinger-1.2.4-2-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/clipdinger-1.2.4-2-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/zlib_devel-1.3.1-4-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/zlib_devel-1.3.1-4-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/ponpokodiff-0.5.1-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/ponpokodiff-0.5.1-1-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/readline-8.2.013-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/readline-8.2.013-1-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/qt5-5.15.15-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/qt5-5.15.15-1-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/dooble-2024.09.29-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/dooble-2024.09.29-1-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/pyqt5-5.15.11-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/pyqt5-5.15.11-1-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/pyqt5_python310-5.15.11-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current/packages/pyqt5_python310-5.15.11-1-x86_64.hpkg...done.
Re-using download '/boot/system/packages/administrative/transaction-1/haiku_datatranslators-r1~beta5_hrev57937_122-1-x86_64.hpkg' from previous transaction
Validating checksum for https://eu.hpkg.haiku-os.org/haiku/r1beta5/x86_64/current/packages/haiku_datatranslators-r1~beta5_hrev57937_122-1-x86_64.hpkg...done.
100% haiku_extras-r1~beta5_hrev57937_122-1-x86_64.hpkg [201,84 KiB]
Checksum error:
*** expected '94b94cc87c2199d8d30cc4bad11ee6b066e3eb333cafab7fb0787c4c8a8702d6'
*** got 'c1a32211a68b10b149083ada49e7e38d1e023131df61cb21992ae8fc360eda2a'*** Failed to download package haiku_extras: Bad data
Validating checksum for https://eu.hpkg.haiku-os.org/haiku/r1beta5/x86_64/current/packages/haiku_extras-r1~beta5_hrev57937_122-1-x86_64.hpkg...~>
~>
Could you check this situation on the server ?
Actually Í can type with left hand only, in an inconvenient positure (as lack of table here in my room I used to be done lying on my bed putting myself in my right side. Now it is impossible
Instead of I am crowning to the heel of the double bed, where the laptop is on a drawn and reversed drawer, while I weight at the beginning of the rocking chair. Fortunately, it is not a classic swing chair, it is on the foot -like soles, but it has a rocking mechanism that cannot be switched - it works all the time.)
.This way I would open a ticket about it, but reading and writing are tiresome now,
The transaction dirs. contain the donloaded packages.
As I wrote I deleted not the last one but all.
Packages dir. contain it, if activated. It can be available in state dirs.
If I downgraded it regularly with pkgman.
This way I used find comman as I wrote - earlier : It had not came back as the affected package it would be available anywhere under /boot.mountpont and FS.
This way the prompt came back - nothing between them - so the file surely not in my install, this way I cannot deletet it.
Í kindly admit you can be a very good developer, but you had not checked my first terminal log as I asked in my opening post, so you should not advice on sysadmin stuff - without pointing that what I made wrong with commands or what I forgot to check, etc.
Thanks for confirming the file can be corrupt on the server, or the generated key, I am not sure,
This way I asked Alexander to check it on the server.
I am out for today, as I tired.
~> rm -rf /boot/system/packages/administrative/transaction-*
~> ls -ld /boot/system/packages/administrative/transaction-*
ls: cannot access '/boot/system/packages/administrative/transaction-': No such file or directory
~>
~>
~> chk_pkgs.sh
Tároló ellenőrzőkódjának letöltése (Software) …
Ellenőrzőkód érvényesítése a tárolóhoz (BeSly Software Solutions) …
Tároló ellenőrzőkódjának letöltése (Fat Elk Software) …
Ellenőrzőkód érvényesítése a tárolóhoz (FatElk_64) …
Tároló ellenőrzőkódjának letöltése (https://eu.hpkg.haiku-os.org/haiku/r1beta5/x86_64/current) …
Ellenőrzőkód érvényesítése a tárolóhoz (Haiku) …
Tároló ellenőrzőkódjának letöltése (https://eu.hpkg.haiku-os.org/haikuports/r1beta5/x86_64/current) …
Ellenőrzőkód érvényesítése a tárolóhoz (HaikuPorts) …
Tároló ellenőrzőkódjának letöltése (haiku x86_64 repository) …
Ellenőrzőkód érvényesítése a tárolóhoz (KapiX’s Depot) …
Tároló ellenőrzőkódjának letöltése (https://www.haikuware.ru/repo/lote) …
Ellenőrzőkód érvényesítése a tárolóhoz (LOTE) …
100% repochecksum-1 [65 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (BeSly Software Solutions)…done.
100% repochecksum-1 [65 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (FatElk_64)…done.
100% repochecksum-1 [65 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (Haiku)…done.
100% repochecksum-1 [64 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (HaikuPorts)…done.
100% repochecksum-1 [65 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (KapiX’s Depot)…done.
100% repochecksum-1 [71 bájt]
Ellenőrzőkód érvényesítése a tárolóhoz (LOTE)…done.
The following changes will be made:
in system:
upgrade package haiku-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package haiku_loader-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package zlib-1.3.1-3 to 1.3.1-4 from repository HaikuPorts
upgrade package clipdinger-1.2.3-2 to 1.2.4-2 from repository HaikuPorts
upgrade package zlib_devel-1.3.1-3 to 1.3.1-4 from repository HaikuPorts
upgrade package ponpokodiff-0.5-1 to 0.5.1-1 from repository HaikuPorts
upgrade package readline-8.2.001-1 to 8.2.013-1 from repository HaikuPorts
upgrade package qt5-5.15.14-3 to 5.15.15-1 from repository HaikuPorts
upgrade package dooble-2024.08.20-1 to 2024.09.29-1 from repository HaikuPorts
upgrade package pyqt5-5.15.10-3 to 5.15.11-1 from repository HaikuPorts
upgrade package pyqt5_python310-5.15.10-3 to 5.15.11-1 from repository HaikuPorts
upgrade package haiku_datatranslators-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package haiku_extras-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package userland_fs-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package haiku_devel-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package webpositive-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
upgrade package netfs-r1~beta5_hrev57937_121-1 to r1~beta5_hrev57937_122-1 from repository Haiku
Continue? [yes/no] (yes) :
100% haiku-r1~beta5_hrev57937_122-1-x86_64.hpkg [36,83 MiB]
Checksum error:
*** expected ‘fd3fb4c2baa6060ec4a652fd69932a29c1195801341e8f9b329b0ded62bbfb1d’
*** got ‘5a7b8c3fcd943aa3731774b87dbc8986fca5f8a68a322c2f2f80fa99dee1a9c3’** Failed to download package haiku: Bad data
Validating checksum for https://eu.hpkg.haiku-os.org/haiku/r1beta5/x86_64/current/packages/haiku-r1~beta5_hrev57937_122-1-x86_64.hpkg…~>
After the run appeared the transaction dir. again, not before.
ls -ld /boot/system/packages/administrative/transaction-*
drwxr-xr-x 1 user root 2048 okt. 18 10:55 /boot/system/packages/administrative/transaction-1
~>
On my Haiku-laptop I get an identical failure, with the exact same bad checksum. Given the odds for a hash collision, I highly doubt this issue to simply be due to failed downloads which can easily be resolved by removing and re-fetching.
Thus I second the request for a validation of what is on the server, or an explanation on how we should investigate our systems closer.
What should the correct checksum be? What is the canonical source for that truth?
So it seems. I believe it was even a completely different unmentioned hash.
In an attempt to re-download, I tried removing that file. That appears to have been a very bad idea though. While it did result in unblocking the upgrade and lead to both HaikuDepot and pkgman claiming the system to have all updates, it also led to a state where the system no longer boots. (Boot volume is not valid)
Just testing out Haiku for fun and I’m really digging it so far, but I’m running into the same or at least a similar issue here.
On a fresh virtualbox install, I opened terminal and issued ‘pkgman update’. The repository checksums pass and the package update list is generated, I type yes to continue. pkgman downloads the first package ‘haiku-r1~beta5_hrev57937_122-1-x86_64.hpkg’ and then fails with a checksum error.
Continue? [yes/no] (yes) : yes
100% haiku-r1~beta5_hrev57937_122-1-x86_64.hpkg [36.83 MiB]
Checksum error:
*** expected '251c48165bdd397a44eee8857b35a331c3ffc1f64d5395570a2cc4dfc759b7c'
*** got '61589362e03fe2aff3f5fd6bf6c13293eef502e476a5f394a629915f87665df' *** Failed to download package haiku: Bad data
Validating checksum for https://eu.hpkg.haiku-os.org/haiku/r1beta5/x86_64/current/packages/haiku-r1~beta5_hrev57937_122-1-x86_64.hpkg...~>
Downloading the package with wget and checking it give me the same hash ‘6158936…’ that pkgman reports it got, not the one it expects.
Downloading the package from my Arch laptop yields a different file/hash.
So is something going on with package replication across various cdn nodes? The cdn is returning slightly different packages depending on which node I’m 303 redirected to.
Length of 38623744 returned from 156.146.43.65 with wget on Haiku,
Length of 38624070 returned from 185.93.1.250 with wget on Arch.
I am currently experiencing this issue for the haiku-r1~beta5_hrev_58288-1-x86_64 package. The downloaded package has the same checksum every time. Tested on two different machines. I’ve tried deleting the downloaded files, to no avail.
EDIT: This resolved with the new hrev available today (next day).