You are not logged in.

#1 2016-04-25 03:10:54

murrcurt09
Member
Registered: 2015-12-02
Posts: 25

[SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

Hello,

When I run pacman -Syu I get an error:

 
(575/575) checking keys in keyring                                                               [########################################################] 100%
(575/575) checking package integrity                                                             [########################################################] 100%
error: confuse: signature from "Thorsten Töpper <atsutane@freethoughts.de>" is unknown trust
:: File /var/cache/pacman/pkg/confuse-2.8-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: i3-wm: signature from "Thorsten Töpper <atsutane@freethoughts.de>" is unknown trust
:: File /var/cache/pacman/pkg/i3-wm-4.12-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: i3status: signature from "Thorsten Töpper <atsutane@freethoughts.de>" is unknown trust
:: File /var/cache/pacman/pkg/i3status-2.10-1-x86_64.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)
Errors occurred, no packages were upgraded.

I've checked the forums but can't see anything that would help,

I've tried reinstalling the archlinux-keyring but that doesn't help.


Any suggestions?

Last edited by murrcurt09 (2016-04-25 03:46:15)

Offline

#2 2016-04-25 03:18:34

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

sudo pacman -Scc

?  I assume those packages are coming from the official repos.  If not, then you can change their signature level for a custom repo.  Though, you shouldn't.

Offline

#3 2016-04-25 03:20:02

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

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

Sounds like it's been a while since your last update. Update archlinux-keyring first, then it should work. -Scc is not the answer.

Last edited by Scimmia (2016-04-25 03:20:52)

Offline

#4 2016-04-25 03:26:46

murrcurt09
Member
Registered: 2015-12-02
Posts: 25

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

I ran

sudo pacman-key --refresh-keys


gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver refresh failed: No dirmngr
==> ERROR: A specified local key could not be updated from a keyserver.

Do you think that it could be an issue with my system clock?

Offline

#5 2016-04-25 03:27:01

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

If his system hasn't been upgraded in a while then also he might have missed the required pacman update cut-off.

Offline

#6 2016-04-25 03:28:02

headkase
Member
Registered: 2011-12-06
Posts: 1,976

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

murrcurt09 wrote:

I ran

sudo pacman-key --refresh-keys


gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver refresh failed: No dirmngr
==> ERROR: A specified local key could not be updated from a keyserver.

Do you think that it could be an issue with my system clock?

sudo dirmngr < /dev/null

Then Control + C break out of it after a second or two should get you past that hurdle.

Offline

#7 2016-04-25 03:28:50

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

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

headkase wrote:

If his system hasn't been upgraded in a while then also he might have missed the required pacman update cut-off.

That's won't cause any issues yet, only the dkms package is using hooks right now.

Offline

#8 2016-04-25 03:35:15

murrcurt09
Member
Registered: 2015-12-02
Posts: 25

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

okay so I ran sudo dirmngr < /dev/null

dirmngr[916.0]: error opening '/root/.gnupg/dirmngr_ldapservers.conf': No such file or directory
dirmngr[916.0]: permanently loaded certificates: 0
dirmngr[916.0]:     runtime cached certificates: 0
dirmngr[916.0]: failed to open cache dir file '/root/.gnupg/dirmngr-cache.d/DIR.txt': No such file or directory
dirmngr[916.0]: creating directory '/root/.gnupg'
dirmngr[916.0]: creating directory '/root/.gnupg/dirmngr-cache.d'
dirmngr[916.0]: new cache dir file '/root/.gnupg/dirmngr-cache.d/DIR.txt' created
# Home: ~/.gnupg
# Config: [none]
OK Dirmngr 2.1.9 at your service

then I was able to run sudo pacman-key --refresh-keys succsessfully
I then tried to run sudo pacman -Syu and now get this

 confuse-2.8-2-x86_64                                                    33.8 KiB  65.5K/s 00:01 [########################################################] 100%
 i3-wm-4.12-1-x86_64                                                    263.4 KiB   335K/s 00:01 [########################################################] 100%
 i3status-2.10-1-x86_64                                                  36.7 KiB  1837K/s 00:00 [########################################################] 100%
(575/575) checking keys in keyring                                                               [########################################################] 100%
(575/575) checking package integrity                                                             [########################################################] 100%
(575/575) loading package files                                                                  [########################################################] 100%
(575/575) checking for file conflicts                                                            [########################################################] 100%
error: failed to commit transaction (conflicting files)
dcadec: /usr/lib/libdcadec.so.0 exists in filesystem
Errors occurred, no packages were upgraded.

Offline

#9 2016-04-25 03:37:38

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

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

Yep, a long time since your last update. That one was taken care of in stages, you're going to have to do it yourself now. See the wiki for what that error means.

Offline

#10 2016-04-25 03:45:19

murrcurt09
Member
Registered: 2015-12-02
Posts: 25

Re: [SOLVED] File /file is corrupted (invalid or corrupted package (PGP si

Thanks for your help,
I ran sudo pacman -Rdd dcadec and then sudo pacman -Syu and it all worked.

Much appreciated

Offline

Board footer

Powered by FluxBB