You are not logged in.

#1 2023-03-06 18:29:35

sigaretov
Member
Registered: 2023-03-06
Posts: 2

Invalid or corrupted package

So, I tried sudo pacman -Suy and got

error: failed retrieving file 'gtk-update-icon-cache-1:4.10.0-1-x86_64.pkg.tar.zst' from mirror.kamtv.ru : The requested URL returned error: 404
error: failed retrieving file 'gtk-update-icon-cache-1:4.10.0-1-x86_64.pkg.tar.zst' from mirror.kamtv.ru : The requested URL returned error: 404
(3/3) checking keys in keyring                                 [##################################] 100%
(3/3) checking package integrity                               [##################################] 100%
error: gtk-update-icon-cache: signature from "Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/gtk-update-icon-cache-1:4.10.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature))

Following wiki I tried:
1. Removing packages from cache with different ways:
rm /var/cache/pacman/pkg/gtk-update-icon-cache
paccache -r
sudo pacman -Sc
sudo pacman -Scc
2. Resetting all the keys with:
sudo rm /etc/pacman.d/gnupg && sudo pacman-key --init && sudo pacman-key --populate
3. Updating archlinux-keyring
4. Synchronizing time with:
timedatectl set-ntp true
5. Changing mirros to https only

I'd like to continue checking signatures, so I don't want to put SigLevel=TrustAll

Any help would be appreciated, I'm a little new to arch and have no idea what else I can do, maybe I missed some step or did it wrong.

Last edited by sigaretov (2023-03-06 19:13:32)

Offline

#2 2023-03-06 18:52:15

mpan
Member
Registered: 2012-08-01
Posts: 1,207
Website

Re: Invalid or corrupted package

Hello,

There is nothing wrong with the signature. The file is invalid. Strictly speaking the server doesn’t have this file yet, as indicated by the first error in the quoted output.

The information provided is not enough to efficiently debug the situation.

I may only make an educated guess: you have more than one mirror configured and, in fragments of the output you removed, are errors indicating that downloading community.db has failed.

While posting, please: 1) post the complete output; 2) name the topic in a way that describes its content.

Last edited by mpan (2023-03-06 19:06:18)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2023-03-06 19:12:14

sigaretov
Member
Registered: 2023-03-06
Posts: 2

Re: Invalid or corrupted package

mpan wrote:

you have more than one mirror configured

/etc/pacman.d/mirrorlist

## Russia https only
Server = https://mirror.kamtv.ru/archlinux/$repo/os/$arch
Server = https://mirror.lebedinets.ru/archlinux/$repo/os/$arch
Server = https://mirror.surf/archlinux/$repo/os/$arch
Server = https://mirror.nw-sys.ru/archlinux/$repo/os/$arch
Server = https://mirror.rol.ru/archlinux/$repo/os/$arch
Server = https://mirror.truenetwork.ru/archlinux/$repo/os/$arch
Server = https://mirror.yal.sl-chat.ru/archlinux/$repo/os/$arch
Server = https://mirror.yandex.ru/archlinux/$repo/os/$arch

I've updated file with https://archlinux.org/mirrorlist/ an hour ago, then made sudo pacman -Syy, but nothing changed.

Full output:

sudo pacman -Suy
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) enchant-2.3.4-1  gtk-update-icon-cache-1:4.10.0-1  wpebackend-fdo-1.14.1-1

Total Download Size:   0.11 MiB
Total Installed Size:  0.39 MiB
Net Upgrade Size:      0.01 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 wpebackend-fdo-1.14.1-1-x86_64     37.1 KiB  78.0 KiB/s 00:00 [----------------------------------] 100%
 enchant-2.3.4-1-x86_64             58.7 KiB  67.0 KiB/s 00:01 [----------------------------------] 100%
 gtk-update-icon-cache-1:4.10...   787.0   B   767   B/s 00:01 [----------------------------------] 100%
 Total (3/3)                       112.1 KiB  74.6 KiB/s 00:02 [----------------------------------] 100%
error: failed retrieving file 'gtk-update-icon-cache-1:4.10.0-1-x86_64.pkg.tar.zst' from mirror.kamtv.ru : The requested URL returned error: 404
(3/3) checking keys in keyring                                 [----------------------------------] 100%
(3/3) checking package integrity                               [----------------------------------] 100%
error: gtk-update-icon-cache: signature from "Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/gtk-update-icon-cache-1:4.10.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Offline

#4 2023-03-06 19:41:45

mpan
Member
Registered: 2012-08-01
Posts: 1,207
Website

Re: Invalid or corrupted package

Choose only a single mirror, do `pacman -Syyu`.

Pacman behaves as if you had sync database obtained from a different mirror, which had it newer than mirror.kamtv.ru.

Last edited by mpan (2023-03-06 19:44:53)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB