You are not logged in.

#1 2017-10-24 20:00:47

bertalanp99
Member
Registered: 2017-09-16
Posts: 8

[SOLVED]Cannot update system because of 'invalid or corrupted package'

I haven't updated my system for a while and realised I have tons of updates I should install. So I tried running the good old

sudo pacman -Syu

Everything went well, when it told me a package was corrupted and I could delete it. I chose yes, but it didn't work. I guess I'd better just post the output here (this is only the last few lines):

lib32-krb5-1.15.2-1-x86_64                    750.8 KiB  6.43M/s 00:00 [########################################] 100%
 lib32-curl-7.56.0-1-x86_64                    221.8 KiB  7.22M/s 00:00 [########################################] 100%
 lib32-libpng-1.6.34-1-x86_64                  121.2 KiB  11.8M/s 00:00 [########################################] 100%
 lib32-libelf-0.170-1-x86_64                   357.0 KiB  6.97M/s 00:00 [########################################] 100%
 lib32-systemd-235.0-1-x86_64                  349.3 KiB  6.44M/s 00:00 [########################################] 100%
 lib32-freetype2-2.8.1-1-x86_64                329.5 KiB  5.65M/s 00:00 [########################################] 100%
 lib32-fontconfig-2.12.6-1-x86_64              116.0 KiB  4.20M/s 00:00 [########################################] 100%
 lib32-libcurl-compat-7.56.0-1-x86_64          221.0 KiB  6.54M/s 00:00 [########################################] 100%
 lib32-libdrm-2.4.84-1-x86_64                  134.5 KiB  7.72M/s 00:00 [########################################] 100%
 lib32-wayland-1.14.0-1-x86_64                  43.9 KiB  14.3M/s 00:00 [########################################] 100%
 lib32-nvidia-utils-387.12-1-x86_64             21.1 MiB  7.90M/s 00:03 [########################################] 100%
 lib32-mesa-17.2.2-1-x86_64                     11.1 MiB  7.87M/s 00:01 [########################################] 100%
 qownnotes-17.10.7-1-x86_64                   1749.6 KiB  1662K/s 00:01 [########################################] 100%
(305/305) checking keys in keyring                                      [########################################] 100%
error: qownnotes: unsupported signature format(  0/305) checking package integrity                                    [(305/305) checking package integrity                                    [########################################] 100%
error: qutebrowser: signature from "Ambrevar <ambrevar@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/qutebrowser-1.0.2-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

What is causing this problem?
I have searched a lot about this on the web and found that I should run

sudo pacman -Scc

to entirely clean my pacman cache. That ran, but it didn't fix the problem. I have also tried deleting the file manually, but seemingly it does not exists....

Help would be greatly appreciated.

Last edited by bertalanp99 (2017-10-24 21:24:18)

Offline

#2 2017-10-24 20:06:04

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

Re: [SOLVED]Cannot update system because of 'invalid or corrupted package'


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-10-24 20:19:57

bertalanp99
Member
Registered: 2017-09-16
Posts: 8

Re: [SOLVED]Cannot update system because of 'invalid or corrupted package'

Thanks for your answer. I am not entirely sure as to how on earth I could miss this Wikipedia article as I really have spent a lot of time trying to find solutions to this issue online. The Wiki says I should delete these .part files from /var/cache/pacman/pkg/. I am not really sure what to do with this, as pacman -Scc deletes everything in the folder, I double checked. I'm still receiving the same error. Of course I have run

find /var/cache/pacman/pkg/ -iname "*.part" -exec rm {} \;

which, I suppose deletes these files, but there's no such file, obviouslyb

Offline

#4 2017-10-24 20:35:11

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED]Cannot update system because of 'invalid or corrupted package'

bertalanp99 wrote:

I haven't updated my system for a while and realised I have tons of updates I should install. So I tried running the good old

sudo pacman -Syy

Did you mean "-Syu"?

Have you tried searching the forum for the specific error you are receiving (about the unknown trust signature)?

Offline

#5 2017-10-24 20:38:32

bertalanp99
Member
Registered: 2017-09-16
Posts: 8

Re: [SOLVED]Cannot update system because of 'invalid or corrupted package'

2ManyDogs wrote:
bertalanp99 wrote:

I haven't updated my system for a while and realised I have tons of updates I should install. So I tried running the good old

sudo pacman -Syy

Did you mean "-Syu"?

Have you tried searching the forum for the specific error you are receiving (about the unknown trust signature)?

Yes, sorry, I updated my post.

I have been searching in Google, but surely I would have found results redirecting to these forums. And I actually did find some similar questions all over the internet, but none of them supplied answers which solve the issue.
Pacman is complaining about a broken/corrupt package that doesn't even exist on my system.. I am confused.

Offline

#6 2017-10-24 21:14:08

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED]Cannot update system because of 'invalid or corrupted package'

pacman is complaining about an "unknown trust" signature. It then asked you if you wanted to delete the "corrupted" package, and you said yes, so of course the package doesn't exist.

Last edited by 2ManyDogs (2017-10-24 21:15:16)

Offline

#7 2017-10-24 21:23:58

bertalanp99
Member
Registered: 2017-09-16
Posts: 8

Re: [SOLVED]Cannot update system because of 'invalid or corrupted package'

I am still not entirely sure why this was happening, but it seems like removing that specific package has solved the problem:

sudo pacman -Rns qutebrowser && sudo pacman -Scc && sudo pacman -Syu

Thanks for your help anyways!

Offline

#8 2017-10-24 21:31:46

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED]Cannot update system because of 'invalid or corrupted package'

bertalanp99 wrote:

I am still not entirely sure why this was happening, but it seems like removing that specific package has solved the problem:

sudo pacman -Rns qutebrowser && sudo pacman -Scc && sudo pacman -Syu

Thanks for your help anyways!

It is possible that the invalid signature was updated between your first (unsuccessful) update and the last one. Glad you got it solved.

Offline

#9 2017-10-25 19:04:00

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED]Cannot update system because of 'invalid or corrupted package'

FS#56060  FS#56061   FS#56070

The "fix" is: https://wiki.archlinux.org/index.php/Pa … ion_failed


EDIT: Oh, right,  one of those is a keyring bug so you probably won't be able to see it...

Last edited by eschwartz (2017-10-25 19:38:47)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB