You are not logged in.

#1 2016-10-21 20:40:15

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

[Solved]error: failed to commit transaction

Hey there, hope it's alright to start a new thread seeing as the one I piggy-backed on was solved but the solution didn't work for me.

So I've been trying to perform a system upgrade and I keep getting the same error as written in the title every time.

I have tried the following with no luck:

rm -R /etc/pacman.d/gnupg
rm -R /root/.gnupg
dirmngr </dev/null

pacman-key --init
pacman-key --populate archlinux
pacman-key --refresh-keys

I have tried reinstalling the archlinux-keyring, and removing any .part packages, removed package cache, tried different mirrors, still the same error message. Complain about corrupt packages -> redownload packages -> complain about other corrupt packages -> redownload -> complain about the previously redownloaded packages being corrupt. Round and round.

For some reason, my grub messed up and I couldn't boot into my machine, so I restored with the installation media and it booted fine and I could perform a system upgrade without the error message, but now it's acting up the same way as described above yet again.

I'm at a loss as to what's left to try.

Last edited by anark10n (2016-11-01 17:02:23)

Offline

#2 2016-10-21 21:36:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved]error: failed to commit transaction

Paste the actual, full, pacman output: https://bbs.archlinux.org/viewtopic.php?id=57855


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-10-22 02:07:24

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

Re: [Solved]error: failed to commit transaction

Here's the pacman log from my most recent system upgrade attempt:

[2016-10-21 22:07] [PACMAN] Running 'pacman -Syu'
[2016-10-21 22:07] [PACMAN] synchronizing package lists
[2016-10-21 22:08] [PACMAN] starting full system upgrade
[2016-10-21 22:08] [PACMAN] Running 'pacman -Syu'
[2016-10-21 22:08] [PACMAN] synchronizing package lists
[2016-10-21 22:08] [PACMAN] starting full system upgrade
[2016-10-21 22:15] [PACMAN] Running 'pacman -Syu'
[2016-10-21 22:15] [PACMAN] synchronizing package lists
[2016-10-21 22:15] [PACMAN] starting full system upgrade

Offline

#4 2016-10-22 02:15:39

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

Re: [Solved]error: failed to commit transaction

That's useless. Jason asked for the output of pacman, not the log.

Offline

#5 2016-10-22 13:37:56

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

Re: [Solved]error: failed to commit transaction

Sorry, thought he just wanted the logs as advised in the thread he linked.

Tried running a system upgrade to get the output, but it ended up being successful, but I did manage to get similar output attempting a regular installation of an application, see below:

sudo pacman -S hydrogen codeblocks netbeans
resolving dependencies...
looking for conflicting packages...

Packages (5) webkitgtk2-2.4.11-1  wxgtk2.8-2.8.12.1-4  codeblocks-16.01-5
             hydrogen-0.9.6.1-4  netbeans-8.2-1

Total Download Size:   302.80 MiB
Total Installed Size:  784.27 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 hydrogen-0.9.6.1-4-...     5.3 MiB   144K/s 00:38 [######################] 100%
 wxgtk2.8-2.8.12.1-4...     4.0 MiB   212K/s 00:19 [######################] 100%
 webkitgtk2-2.4.11-1...     9.6 MiB   212K/s 00:46 [######################] 100%
 codeblocks-16.01-5-...    10.2 MiB   211K/s 00:49 [######################] 100%
 netbeans-8.2-1-any       273.8 MiB   204K/s 22:51 [######################] 100%
(5/5) checking keys in keyring                     [######################] 100%
(5/5) checking package integrity                   [######################] 100%
error: wxgtk2.8: signature from "Evangelos Foutras <evangelos@foutrelis.com>" is invalid
:: File /var/cache/pacman/pkg/wxgtk2.8-2.8.12.1-4-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: netbeans: signature from "Alexander Rødseth <rodseth@gmail.com>" is invalid
:: File /var/cache/pacman/pkg/netbeans-8.2-1-any.pkg.tar.xz 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 (PGP signature))
Errors occurred, no packages were upgraded.

It's exactly the same output as when I tried the system upgrade before.

Offline

#6 2016-10-22 13:39:51

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

Re: [Solved]error: failed to commit transaction

Try a different mirror

Offline

#7 2016-10-22 14:32:59

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved]error: failed to commit transaction

https://www.archlinux.org/mirrors/status/  will help with selecting one.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#8 2016-10-22 15:42:36

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

Re: [Solved]error: failed to commit transaction

Scimmia wrote:

Try a different mirror

I have tried that already, and still no luck.

Offline

#9 2016-10-22 17:24:39

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [Solved]error: failed to commit transaction

If you have any .pacnew files in /etc/pacman.d/mirrorlist do process them accordingly as forgetting about them can cause issues (this recently happened to me).

Otherwise, once you are reasonably sure you are using an up to date and synced mirror, try the following:
First clear the cache manually and/or use pacman -Sc to clean up the stale packages.

rm /var/cache/pacman/pkg/wxgtk2.8-2.8.12.1-4-x86_64.pkg.tar.xz

Should work. Do this for each package pacman is complaining about. When you are confident there are no bad cached packages, go ahead and remove and re-initialize the gnugpg database as you mentioned in your original post. Then, manually check for the existence of these file(s) afterwards to ensure it actually initialized. As an example only:

[jbs@dmb-gaming-laptop ~]$ cd /etc/pacman.d/gnupg/
[jbs@dmb-gaming-laptop gnupg]$ ls
crls.d    openpgp-revocs.d   pubring.gpg   secring.gpg
gpg.conf  private-keys-v1.d  pubring.gpg~  trustdb.gpg
[jbs@dmb-gaming-laptop gnupg]$ file trustdb.gpg 
trustdb.gpg: GPG key trust database version 3
[jbs@dmb-gaming-laptop gnupg]$ 

The "file" command should, as far as I know, tell you if the file is empty which indicates something was not initialized for whatever reason. Assuming now that your mirrors, the trust database, and stale package issues have been corrected, go ahead and do a system update. But this time: force the refresh by adding an additional 'y'.This should re-download the files and sync your mirrors, which should hopefully fix the issue.


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#10 2016-10-22 21:39:01

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: [Solved]error: failed to commit transaction

What's the ouput of

sudo pacman-key --refresh-keys

?
And of

pacman-key -l "Evangelos Foutras <evangelos@foutrelis.com>"

And what's

md5sum /var/cache/pacman/pkg/wxgtk2.8-2.8.12.1-4-x86_64.pkg.tar.xz

?

Online

#11 2016-10-23 00:30:58

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

Re: [Solved]error: failed to commit transaction

sudo pacman-key --refresh-keys output is:

gpg: refreshing 86 keys from hkp://pool.sks-keyservers.net
gpg: key E62F853100F0D0F0: "Gaetan Bisson <gaetan@fenua.org>" not changed
gpg: key B61DBCE10901C163: "Balló György <ballogyor@gmail.com>" not changed
gpg: key 4AC5588F941C2A25: "Antonio Rojas <arojas@archlinux.org>" not changed
gpg: key FCF3C8CB5CF9C8D4: "Alexander Rødseth <rodseth@gmail.com>" not changed
gpg: key 2E89012331361F01: "Evgeniy Alekseev <arcanis@archlinux.org>" not changed
gpg: key FC1B547C8D8172C8: "Levente Polyak (anthraxx) <levente@leventepolyak.net>" not changed
gpg: key 42A1DB15EC133BAD: "Angel Velásquez <angvp@archlinux.org>" not changed
gpg: key 94657AB20F2A092B: "Andreas Radke <andyrtr@archlinux.org>" not changed
gpg: key F3E1D5C5D30DB0AD: "Andrea Scarpino <me@andreascarpino.it>" not changed
gpg: key B02854ED753E0F1F: "Anatol Pomozov <anatol.pomozov@gmail.com>" not changed
gpg: key 9BDCF497A4BBCC7F: "Ambrevar <ambrevar@gmail.com>" not changed
gpg: key AFF5D95098BC6FF5: "Maxime Gauduin <alucryd@alucryd.xyz>" not changed
gpg: key F99FFE0FEAE999BD: "Allan McRae <me@allanmcrae.com>" not changed
gpg: key 40F557B731496106: "Andrzej Giniewicz (giniu) <gginiu@gmail.com>" not changed
gpg: key 5184252D824B18E8: "Thomas Bächler (Arch Linux Master Key) <thomas@master-key.archlinux.org>" not changed
gpg: key 3348882F6AC6A4C2: "Pierre Schmitz (Arch Linux Master Key) <pierre@master-key.archlinux.org>" not changed
gpg: key 7EFD567D4C7EA887: "Ionut Biru (Arch Linux Master Key) <ionut@master-key.archlinux.org>" not changed
gpg: key A88E23E377514E00: "Florian Pritz (Arch Linux Master Key) <florian@master-key.archlinux.org>" not changed
gpg: key A04F9397CDFD6BB0: "Dan McGee (Arch Linux Master Key) <dan@master-key.archlinux.org>" not changed
gpg: key BA1DFB64FFF979E7: "Allan McRae (Arch Linux Master Key) <allan@master-key.archlinux.org>" not changed
gpg: key DB323392796CA067: "Ike Devolder <ike.devolder@gmail.com>" not changed
gpg: key E8F18BA1615137BC: "Ionut Biru <ibiru@archlinux.org>" not changed
gpg: key A5E9288C4FA415FA: "Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>" not changed
gpg: key DA6426DD215B37AD: "Guillaume ALAUX <guillaume@archlinux.org>" not changed
gpg: key B7310AE5F04569AE: "Giovanni Scafora <giovanni@archlinux.org>" not changed
gpg: key 786C63F330D7CB92: "Felix Yan <felixonmars@gmail.com>" not changed
gpg: key 51E8B148A9999C34: "Evangelos Foutras <evangelos@foutrelis.com>" not changed
gpg: key 654B877A0864983E: "Martin Wimpress (http://www.flexion.org) <martin@flexion.org>" not changed
gpg: key 90CB3D62C13D4796: "Jiachen Yang <farseerfc@gmail.com>" not changed
gpg: key 59B3122E2FA915EC: "Alexandre Filgueira <alexfilgueira@cinnarch.com>" not changed
gpg: key A6234074498E9CEE: "Christian Hesse (Arch Linux Package Signing) <arch@eworm.de>" not changed
gpg: key FCF2CB179205AC90: "Eric Belanger <eric@archlinux.org>" not changed
gpg: key 5FA5E5544F010D48: "Daniel Wallace <danielwallace@gtmanfred.com>" not changed
gpg: key 1EB2638FF56C0C53: "Dave Reisner <d@falconindy.com>" not changed
gpg: key 5ED514A45BD5C938: "Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>" not changed
gpg: key 761FAD69BA06C6A9: "Dicebot <public@dicebot.lv>" not changed
gpg: key E613C09CB4440678: "Daniel Isenmann <daniel@archlinux.org>" not changed
gpg: key 5C2E46A0F53A76ED: "Dan McGee <dpmcgee@gmail.com>" not changed
gpg: key D53A0445B47A0DAB: "Connor Behan <connor.behan@gmail.com>" not changed
gpg: key BBE43771487328A9: "Bartlomiej Piotrowski <b@bpiotrowski.pl>" not changed
gpg: key 6D1655C14CE1C13E: "Florian Pritz <bluewind@xinu.at>" not changed
gpg: key 73B8ED52F1D357C1: "Lukas Jirkovsky <l.jirkovsky@gmail.com>" not changed
gpg: key 65C110C1EA433FC7: "Sergej Pupykin <arch@sergej.pp.ru>" not changed
gpg: key CF7037A4F27FB7DA: "speps <speps@aur.archlinux.org>" not changed
gpg: key 8DBD63B82072D77A: "Sébastien Luttringer <seblu@seblu.net>" not changed
gpg: key 456C7A9B91B842AE: "Jakob Gruber <jakob.gruber@gmail.com>" not changed
gpg: key 81AF739EC0711BF1: "Rashif Rahman (Ray) <schiv@archlinux.org>" not changed
gpg: key 426991CD8406FFF3: "Ronald van Haren <ronald@archlinux.org>" not changed
gpg: key 206CBC892D1493D2: "Rémy Oudompheng <remy@archlinux.org>" not changed
gpg: key 7F2D434B9741E8AC: "Pierre Schmitz <pierre@archlinux.de>" not changed
gpg: key B4360204B250F0D3: "Fabio Castelli <muflone@vbsimple.net>" not changed
gpg: key 94DD2393DA2EE423: "Massimiliano Torromeo (Personal non-work identity) <massimiliano.torromeo@gmail.com>" not changed
gpg: key A91764759326B440: "Lukas Fleischer <lfleischer@lfos.de>" not changed
gpg: key 06096A6AD1CEDDAC: "Laurent Carlier <lordheavym@gmail.com>" not changed
gpg: key 50FB9B273A9D0BB5: "Johannes Löthberg <johannes@kyriasis.com>" not changed
gpg: key 396E3E25BAB142C1: "Kyle Keen <keenerd@gmail.com>" not changed
gpg: key A3D9562A589874AB: "Jürgen Hötzel <juergen@hoetzel.info>" not changed
gpg: key 332C9C40F40D2072: "Jonathan Steel <mail@jsteel.org>" not changed
gpg: key 24E4CDB0013C2580: "Jaroslav Lichtblau <svetlemodry@archlinux.org>" not changed
gpg: key 37E0AF1FDA48F373: "Jerome Leclanche <jerome@leclan.ch>" not changed
gpg: key 976AC6FA3B94FA10: "Jan de Groot <info@jandegrootict.nl>" not changed
gpg: key C06086337C50773E: "Jelle van der Waa <jelle@vdwaa.nl>" not changed
gpg: key 3A726C6170E80477: "Роман Кирилич (Roman Kyrylych) <roman@archlinux.org>" not changed
gpg: key 6D1A9E70E19DAA50: "Peter Richard Lewis <pete@muddygoat.org>" not changed
gpg: key B9113D1ED21E1A55: "Kaiting Chen <kaitocracy@gmail.com>" not changed
gpg: key 5F946DED983D4366: "Justin Davis (juster) <jrcd83@gmail.com>" not changed
gpg: key AF7EF7873CFD4BB6: "Jonathan Conder <jonno.conder@gmail.com>" not changed
gpg: key F2DBB4931985A992: "Dieter Plaetinck <dieter@plaetinck.be>" not changed
gpg: key A001876699AD6E84: "Gavin Marciniak-Bisesi <Daenyth@gmail.com>" not changed
gpg: key E6B456CAF15447D5: "Federico Cinelli <cinelli@aur.archlinux.org>" not changed
gpg: key E2539214C6C11350: "Federico Cinelli <cinelli.federico@gmail.com>" not changed
gpg: key 7F2A16726521E06D: "Christopher Brannon <chris@the-brannons.com>" not changed
gpg: key 1D1F0DC78F173680: "Xyne. (key #3) <xyne@archlinux.ca>" not changed
gpg: key 097D629E437520BD: "Vesa Kaihlavirta <vegai@iki.fi>" not changed
gpg: key 39E4F17F295AFBF4: "Thorsten Töpper <atsutane@freethoughts.de>" not changed
gpg: key E711306E3C4F88BC: "Timothy Redaelli <timothy.redaelli@gmail.com>" not changed
gpg: key 771DF6627EDF681F: "Tobias Powalowski <tobias.powalowski@googlemail.com>" not changed
gpg: key C8880A6406361833: "Tom Gundersen <teg@jklm.no>" not changed
gpg: key 284FC34C8E4B1A25: "Thomas Bächler <thomas.baechler@gmx.de>" not changed
gpg: key F9E712E59AF5F22A: "Daniel Micay <danielmicay@gmail.com>" not changed
gpg: key C847B6AEB0544167: "Nicola Squartini <tensor5@gmail.com>" not changed
gpg: key 7FB1A3800C84C0A5: "Thomas Dziedzic <gostrc@gmail.com>" not changed
gpg: key 39E4B877E62EB915: "Sven-Hendrik Haase <svenstaro@gmail.com>" not changed
gpg: key 5CED81B7C2E5C0D2: "Xyne. <xyne@archlinux.ca>" not changed
gpg: key EA6836E1AB441196: "Stéphane Gaudreault <stephane@archlinux.org>" not changed
gpg: Total number processed: 85
gpg:              unchanged: 85

pacman-key -l "Evangelos Foutras <evangelos@foutrelis.com>" output is:

pub   rsa2048 2010-11-12 [SC]
      86CFFCA918CF3AF47147588051E8B148A9999C34
uid           [  full  ] Evangelos Foutras <evangelos@foutrelis.com>
uid           [  full  ] Evangelos Foutras <foutrelis@gmail.com>
uid           [  full  ] Evangelos Foutras <foutrelis@archlinux.org>
sub   rsa2048 2010-11-12 [E]

The last command returns no such file or directory because I choose to remove the file when pacman reports that it's corrupt. Will run a reinstall of the packages to see if I get the same error again and keep the packages.

Offline

#12 2016-10-27 17:26:09

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

Re: [Solved]error: failed to commit transaction

@seth, tried the system-wide upgrade again, and I got the same error, here's the output of the last 2 commands you asked for. This time, with the /var/cache/pacman/pkg/linux-4.8.4-1-x86_64.pkg.tar.xz that's causing the error.

pacman-key -l "Tobias Powalowski <tobias.powalowski@googlemail.com>" output:

pub   rsa2048 2011-07-18 [SC]
      5B7E3FB71B7F10329A1C03AB771DF6627EDF681F
uid           [  full  ] Tobias Powalowski <tobias.powalowski@googlemail.com>
uid           [  full  ] Tobias Powalowski <tpowa@archlinux.org>
sub   rsa2048 2011-07-18 [E]

md5sum /var/cache/pacman/pkg/linux-4.8.4-1-x86_64.pkg.tar.xz output:

a9156f23b8a67a575b44e43ea8178231  /var/cache/pacman/pkg/linux-4.8.4-1-x86_64.pkg.tar.xz

Offline

#13 2016-10-27 21:59:02

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: [Solved]error: failed to commit transaction

The package is ok. Your system time broken?
https://wiki.archlinux.org/index.php/Pa … ion_failed

Online

#14 2016-10-28 06:35:15

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

Re: [Solved]error: failed to commit transaction

@seth, system time is OK. Ran the commands you linked to, and still getting the same errors. How did you check to see if the package was OK?

Offline

#15 2016-10-28 07:17:50

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: [Solved]error: failed to commit transaction

Downloaded the package, compared the md5, downloaded the signature http://seblu.net/a/archive/packages/l/l … tar.xz.sig and checked it.

pacman-key --verify linux-4.8.4-1-x86_64.pkg.tar.xz.sig

(Have package and signature in $PWD)

Online

#16 2016-10-30 06:15:06

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

Re: [Solved]error: failed to commit transaction

So tried booting to installation media to execute the upgrade because it seemed to work for me previously, and got the same error. Tried a clean reinstall, and got the same error. I'm all out of ideas left to try.

Offline

#17 2016-10-30 06:37:14

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: [Solved]error: failed to commit transaction

Same package again? Did you try to manually verify it?

Online

#18 2016-10-30 07:05:39

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

Re: [Solved]error: failed to commit transaction

Not the same package. It's all over the place. Sometimes it's perl, sometimes it's gcc, sometimes it's the linux firmware package. If I leave the packages after pacman complains about it and run it again, pacman will complain about a different package that it didn't complain about the first time. Will try the manual verification and report back.

Edit: And no luck on that manual verification, as I can't arch-chroot into the partition because bash isn't installed, and it won't install because pacman complains about the gcc dependency. Stuck.

Last edited by anark10n (2016-10-30 07:20:37)

Offline

#19 2016-10-30 07:09:16

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: [Solved]error: failed to commit transaction

So it's nondeterministic. I'd check board and cpu temperature and run memtest86 ...

Online

#20 2016-10-30 07:26:18

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

Re: [Solved]error: failed to commit transaction

seth wrote:

So it's nondeterministic. I'd check board and cpu temperature and run memtest86 ...

How would i do that from the installation media? It's all i have running at the moment.

Offline

#21 2016-10-30 07:29:31

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: [Solved]error: failed to commit transaction

"not" - get http://grml.org/
Btw. how you post here??

Online

#22 2016-10-30 07:43:13

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

Re: [Solved]error: failed to commit transaction

seth wrote:

Btw. how you post here??

Laptop. The issues with Arch are on my desktop.

Offline

#23 2016-11-01 08:58:32

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

Re: [Solved]error: failed to commit transaction

So I downloaded the distro, and it boots up but it hangs at "Searching for GRML file, this might take a few seconds". I have tried installing other distros and they fail at different places, Debian fails multiple times and arbitrally goes through when I run the same step over and over again, the Linux Mint installer either hangs or just crashes for no apparent reason. Back to trying Arch, and I'm getting the error messages again.

Offline

#24 2016-11-01 09:10:37

seth
Member
Registered: 2012-09-03
Posts: 49,963

Re: [Solved]error: failed to commit transaction

Open the box and inspect the HW (loose connectors, misplaced RAM modules blown capacitors, ...)
If you cannot figure anything, disassemble everything and rebuild it. If possible, recombine (try other RAM and/or CPU)

Assuming not all distros have random nondeterministic bugs, some core part (board, cpu, RAM) of your HW is broken, apparently causing random I/O errors - to the degree where they prohibit examination :-(

Online

#25 2016-11-01 17:01:06

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

Re: [Solved]error: failed to commit transaction

seth wrote:

Open the box and inspect the HW (loose connectors, misplaced RAM modules blown capacitors, ...)
If you cannot figure anything, disassemble everything and rebuild it. If possible, recombine (try other RAM and/or CPU)

Like a boss! Thanks so much for sticking with me this long. Seems it appears it was RAM, turns out the numbers on the memory banks aren't decoration. Lesson learned the hard way.

Offline

Board footer

Powered by FluxBB