You are not logged in.
I'm trying to download the openssh package, but keep receiving the following error:
"Failed to commit transaction (invalid or corrupted package)" error
I have configured pacman-key as per the documentation and checked that the network time was set correctly.
I ran the command in the pacman documentation associated with this error:
# find /var/cache/pacman/pkg/ -iname "*.part" -exec rm {} \;
Can someone point me in the right direction? Could it be that the mirror it is downloading the package from is outside my configured timezone?
$ sudo pacman -S openssh
resolving dependencies...
error: could not open file /var/lib/pacman/local/gnome-getting-started-docs-3.20.0-1/desc: No such file or directory
looking for conflicting packages...
Packages (3) dnssec-anchors-20150403-1 ldns-1.6.17-4 openssh-7.3p1-1
Total Download Size: 0.69 MiB
Total Installed Size: 6.02 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
error: failed retrieving file 'openssh-7.3p1-1-x86_64.pkg.tar.xz' from mirrors.manchester.m247.com : The requested URL returned error: 404
error: failed retrieving file 'openssh-7.3p1-1-x86_64.pkg.tar.xz' from mirror.cinosure.com : The requested URL returned error: 404
error: failed retrieving file 'openssh-7.3p1-1-x86_64.pkg.tar.xz' from archlinux.mirrors.uk2.net : The requested URL returned error: 404
error: failed retrieving file 'openssh-7.3p1-1-x86_64.pkg.tar.xz' from archlinux.polymorf.fr : The requested URL returned error: 404
error: failed retrieving file 'openssh-7.3p1-1-x86_64.pkg.tar.xz' from mirror.js-webcoding.de : The requested URL returned error: 404
error: failed retrieving file 'openssh-7.3p1-1-x86_64.pkg.tar.xz' from ftp.sh.cvut.cz : The requested URL returned error: 404
error: failed retrieving file 'openssh-7.3p1-1-x86_64.pkg.tar.xz' from arch.tamcore.eu : The requested URL returned error: 404
error: failed retrieving file 'openssh-7.3p1-1-x86_64.pkg.tar.xz' from mirrors.uni-plovdiv.net : The requested URL returned error: 404
openssh-7.3p1-1-x86_64 6.3 KiB 39.6K/s 00:00 [#######################################################] 100%
(3/3) checking keys in keyring [#######################################################] 100%
(3/3) checking package integrity [#######################################################] 100%
error: openssh: signature from "Gaetan Bisson <gaetan@fenua.org>" is invalid
:: File /var/cache/pacman/pkg/openssh-7.3p1-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
Last edited by ianharrison (2016-10-16 19:42:23)
Offline
https://wiki.archlinux.org/index.php/Pa … 9.22_error
EDIT - Overlooked that you tried that already.
Last edited by philo (2016-10-14 11:52:49)
Offline
Your mirrorlist/package database is outdated, run a
sudo pacman -Syu openssh
Offline
I tried that already. I mentioned it in my original post. Thanks for the reply though.
Offline
Your mirrorlist/package database is outdated, run a
sudo pacman -Syu openssh
Ok thanks I'll give this a try when I get back home.
Offline
Getting the same error just trying to do regular system upgrade.
I have tried this:
rm -R /etc/pacman.d/gnupg
rm -R /root/.gnupg
dirmngr </dev/null
pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys
and tried reinstalling the archlinux-keyring, and removing any .part packages, but nothing works. If I run the update to redownload the pacakages, it will complain about other packages being corrupt that it didn't complain about in the previous update execution.
Offline
You could simply remove your whole cache and redownload everything, have you had aprupt abortion of an update for some reason? Is your disk starting to fail?
Offline
Try a different mirror.
Online
Removed package cache. Tried different mirrors. Still acting up the same way. Complain about corrupt packages -> redownload packages -> complain about other corrupt packages -> redownload -> complain about the previously redownloaded packages being corrupt.
Offline
Are you behind some sort of proxy? Did you try to see what the downloaded files are? I remember someone who had pkg.tar.xz files which were actually HTML files with 404 errors...
Offline
Your mirrorlist/package database is outdated, run a
sudo pacman -Syu openssh
This solved my problem.
Offline
Please mark your thread as [solved] by editing the first post and amending the topic title.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Are you behind some sort of proxy? Did you try to see what the downloaded files are? I remember someone who had pkg.tar.xz files which were actually HTML files with 404 errors...
Not behind a proxy. And the package files do appear to contain the correct contents.
Offline