chaotic-aur / packages

Read-only mirror of Chaotic-AUR's main repository. Issues and bug reports welcome! 📑
https://gitlab.com/chaotic-aur/pkgbuilds
GNU General Public License v3.0
335 stars 19 forks source link

[Bug] xml-security-c invalid or corrupted package #3161

Closed Ats44 closed 5 months ago

Ats44 commented 5 months ago

Packages:

xml-security-c-2.0.4-1.2-x86_64

Latest chaotic version

xml-security-c-2.0.4-1.1-x86_64

What happens?

When I trying to update my Arch Linux via pacman -Syu I got an error: : File /var/cache/pacman/pkg/xml-security-c-2.0.4-1.2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (checksum)). error: failed to commit transaction (invalid or corrupted package (checksum)) Errors occurred, no packages were upgraded.

What is expected to happen?

This package should install normally

Logs

No response

More information

If you need additional information, please ask. Sorry for my bad english, I'm not an english speaking person.

Technetium1 commented 5 months ago

@Ats44 Is this failure specific to a certain mirror?

[tech@lynx chaotic-packages]$ sudo pacman -Sw xml-security-c
resolving dependencies...

Package (3)                 New Version  Net Change  Download Size

extra/xalan-c               1:1.12-9       5.88 MiB       0.96 MiB
extra/xerces-c              3.2.5-2        8.09 MiB       1.35 MiB
chaotic-aur/xml-security-c  2.0.4-1.2      2.15 MiB       0.57 MiB

Total Download Size:  2.88 MiB

:: Proceed with download? [Y/n]
:: Retrieving packages...
 xerces-c-3.2.5-2-x86_64        1377.3 KiB  5.80 MiB/s 00:00 [---------------------------------] 100%
 xml-security-c-2.0.4-1.2-x...   582.8 KiB   798 KiB/s 00:01 [---------------------------------] 100%
 xalan-c-1:1.12-9-x86_64         984.3 KiB  1283 KiB/s 00:01 [---------------------------------] 100%
 Total (3/3)                       2.9 MiB  2.46 MiB/s 00:01 [---------------------------------] 100%
(3/3) checking keys in keyring                               [---------------------------------] 100%
(3/3) checking package integrity                             [---------------------------------] 100%
Ats44 commented 5 months ago

Actually I don't know how to determine which mirror I am using. From /etc/pacman.d/chaotic-mirrorlist I see that they all are in use. But as I can see from your post, the package xml-security-c is 582.8KiB. Mine is (what pacman downloads) is 469,1 KiB (xml-security-c-2.0.4-1.2-x86_64.pkg.tar.zst). There is difference.

Technetium1 commented 5 months ago

The first in the list is Cloudflare R2, the second should be geographically closest mirror, and you can see which is chosen with at https://status.chaotic.cx/geo

Please be sure you don't have .pacnew files to migrate, and that you have the latest keyring/mirrorlist as shown on the homepage: https://aur.chaotic.cx/

If that doesn't help, please comment out the first two mirrors (GEO and CDN).

Ats44 commented 5 months ago

Thanks for your help, Technetium1! I updated chaotic-mirrorlist, and that didn't help. Then I commented out first two mirrors and now it works! I can update my Arch Linux.

Technetium1 commented 5 months ago

I'm bumped the package, R2 did not have the correct data: https://github.com/chaotic-aur/interfere/commit/853f23a02a5f4bb412a9a74593e9bea06381981c Finished making: xml-security-c 2.0.4-1.3 (Tue 21 May 2024 05:24:59 PM CEST) Feel free to uncomment those 2 again @Ats44. Thanks for reporting.