Skip to content

Can't do a full system upgrade

When I run the command for a system upgrade, it gives me this error

error: cabextract: key "Alad Wenter <alad@archlinux.org>" is disabled
:: File /var/cache/pacman/pkg/cabextract-1.9-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

It doesn't matter if i choose yes or no, it just gives me the "failed to commit transaction" error

​

What can I do?

17 points18 comments
Open on Reddit
About this post
Posted
Archived
Score
17 · 100% up
Kind
Text
ID
adn1rn

Author

15
posts
80
comments
4
media
View profile

23 comments

Kind of tired of 'see sticky'. It requires going through 3 pages to find the relevant info, why not post the damn solution for people?

Solution:

$ pacman-key --edit-key alad
gpg> enable
gpg> save
15 points

Kind of late to the show, but for me it says "Key not changed so no update needed." after the save command. It also says before the gpg prompt: "expired: 2019-03-29". Is this a different issue?

2 points

Sorry if I'm late too, but I found the solution in case you or anyone needs it.

Remove or rename the /etc/pacman.d/gnupg folder to reset all the keys, then run pacman-key --init as indicated in https://wiki.archlinux.org/index.php/Pacman/Package_signing#Resetting_all_the_keys.

​

After that run pacman-key --populate archlinux and finally pacman-key --refresh-keys

​

This of course, like I stated previously, remove all your keys so be aware of that.

2 points

Because this is the arch way and you must suffer. /s

Thanks for posting here :)

2 points

Update pacman-keyring first, then pacman -Syu

Edit: FYI:

% sha256sum /var/cache/pacman/pkg/cabextract-1.9-1-x86_64.pkg.tar.xz 
12b039176b71e81fd29d8b6cc317cf4c9d4cf989160d6e3faa8f7db8b2de2dd5  /var/cache/pacman/pkg/cabextract-1.9-1-x86_64.pkg.tar.xz
7 points

Finally back to breaking some installs

5 points

yeahhh. i cant Syu becasue qpdf view fails due to your key being revoked even after repopulating the keyring. cmon man and i cant remove its dependencies without breaking printer support :(

1 points

also fyi the comon man was sarcasm. i know people get stick about this stuff lol. im just looking for a work around to get my system upgraded and came across your comment lol

1 points

I've been having the same issue since this morning, deleting the package from /var/cache/pacman/pkg results in the same error, and I've made sure my keyring is up to date. It's only happening with "cabextract-1.9-1-x86_64.pkg.tar.xz", I have also tried different mirrors. Perhaps there's something obvious I'm missing. Edit: I checked via sha256sum as /u/moviuro did, and my checksum matches theirs, now I'm really confused.

2 points

Delete the file and try again. It seems to be corrupted and that's why this isn't working.

2 points

Thank you man, I was having this exact same problem, but it's working now! Should've come here sooner hahaha

1 points

archlinux-keyring must be updated first:

sudo pacman -Sy

sudo pacman -S archlinux-keyring

sudo pacman -Su

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.