You are not logged in.

#1 2016-10-13 19:11:44

ianharrison
Member
Registered: 2016-10-13
Posts: 4

[solved] Failed to commit transaction (invalid or corrupted package)

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

#2 2016-10-14 09:13:36

philo
Member
Registered: 2015-01-26
Posts: 251

Re: [solved] Failed to commit transaction (invalid or corrupted package)

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

#3 2016-10-14 09:28:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: [solved] Failed to commit transaction (invalid or corrupted package)

Your mirrorlist/package database is outdated, run a

sudo pacman -Syu openssh

  https://wiki.archlinux.org/index.php/Sy … nsupported

Offline

#4 2016-10-14 09:37:01

ianharrison
Member
Registered: 2016-10-13
Posts: 4

Re: [solved] Failed to commit transaction (invalid or corrupted package)

I tried that already. I mentioned it in my original post. Thanks for the reply though.

Offline

#5 2016-10-14 09:38:00

ianharrison
Member
Registered: 2016-10-13
Posts: 4

Re: [solved] Failed to commit transaction (invalid or corrupted package)

V1del wrote:

Your mirrorlist/package database is outdated, run a

sudo pacman -Syu openssh

  https://wiki.archlinux.org/index.php/Sy … nsupported


Ok thanks I'll give this a try when I get back home.

Offline

#6 2016-10-14 14:50:43

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [solved] Failed to commit transaction (invalid or corrupted package)

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

#7 2016-10-14 14:57:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: [solved] Failed to commit transaction (invalid or corrupted package)

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

#8 2016-10-14 15:18:19

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,559

Re: [solved] Failed to commit transaction (invalid or corrupted package)

Try a different mirror.

Online

#9 2016-10-15 04:07:31

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [solved] Failed to commit transaction (invalid or corrupted package)

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

#10 2016-10-15 11:03:11

a821
Member
Registered: 2012-10-31
Posts: 381

Re: [solved] Failed to commit transaction (invalid or corrupted package)

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

#11 2016-10-15 15:38:58

ianharrison
Member
Registered: 2016-10-13
Posts: 4

Re: [solved] Failed to commit transaction (invalid or corrupted package)

V1del wrote:

Your mirrorlist/package database is outdated, run a

sudo pacman -Syu openssh

  https://wiki.archlinux.org/index.php/Sy … nsupported


This solved my problem.

Offline

#12 2016-10-15 16:13:34

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,863
Website

Re: [solved] Failed to commit transaction (invalid or corrupted package)

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

#13 2016-10-15 20:58:43

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [solved] Failed to commit transaction (invalid or corrupted package)

a821 wrote:

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

Board footer

Powered by FluxBB