You are not logged in.

#1 2017-01-05 17:29:33

lumeno
Member
Registered: 2014-04-21
Posts: 20

Package signing issue

I just installed Arch on a new system using a prepared Archiso image by copying from the image:
https://wiki.archlinux.org/index.php/ar … net_access

Everything works fine, except when I try to

pacman -Syu

I get errors telling me that the developer PGP keys are unknown and not trusted. I had to add "SigLevel = Optional TrustAll" to the core, community and extra repositories to get it to work. Why is this happening? Looking at pacman.conf in a separate regular install of Arch, I don't see "SigLevel = Optional TrustAll" in the core, community and extra repositories.

Offline

#2 2017-01-05 18:08:59

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

Re: Package signing issue


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-01-05 18:49:55

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Package signing issue

do you still get the error after updating archlinux-keyring? did you set up the keyring?

Offline

#4 2017-01-05 22:22:07

lumeno
Member
Registered: 2014-04-21
Posts: 20

Re: Package signing issue

jasonwryan wrote:

To reproduce the error, I removed "SigLevel = Optional TrustAll" from core, extra and community repositories in /etc/pacman.conf. Then I run "sudo pacman -Syu" and I get:

$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (4) dhcpcd-6.11.5-1  irssi-0.8.21-1  libevdev-1.5.6-1  sqlite-3.16.1-1

Total Installed Size:  9.81 MiB
Net Upgrade Size:      0.04 MiB

:: Proceed with installation? [Y/n] 
(4/4) checking keys in keyring                                                                 [########################################################] 100%
(4/4) checking package integrity                                                               [########################################################] 100%
error: dhcpcd: signature from "Ronald van Haren <ronald@archlinux.org>" is unknown trust
:: File /var/cache/pacman/pkg/dhcpcd-6.11.5-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]   

do you still get the error after updating archlinux-keyring? did you set up the keyring?

If I try to update archlinux-keyring, I get the same problem:

$ sudo pacman -S archlinux-keyring
warning: archlinux-keyring-20170104-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20170104-1

Total Download Size:   0.59 MiB
Total Installed Size:  0.81 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 archlinux-keyring-20170104-1-any                                     604.5 KiB   565K/s 00:01 [########################################################] 100%
(1/1) checking keys in keyring                                                                 [########################################################] 100%
(1/1) checking package integrity                                                               [########################################################] 100%
error: archlinux-keyring: signature from "Evangelos Foutras <evangelos@foutrelis.com>" is unknown trust
:: File /var/cache/pacman/pkg/archlinux-keyring-20170104-1-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 

And yes, I have set up the keyring and tried redoing it too.

I should note that I have never faced these signing issues before; the only new thing I am doing is following the offline installation procedure by copying from an Archiso image.

Last edited by lumeno (2017-01-05 22:23:25)

Offline

#5 2017-01-05 22:23:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Package signing issue

How, exactly, have you redone it? It appears that your keyring is empty or nearly so.

Offline

#6 2017-01-05 22:24:39

lumeno
Member
Registered: 2014-04-21
Posts: 20

Re: Package signing issue

I redid it with:

pacman-key --init

Offline

#7 2017-01-05 22:26:58

lumeno
Member
Registered: 2014-04-21
Posts: 20

Re: Package signing issue

Ahh ok, I see that I'm also supposed to do:

pacman-key --populate archlinux

I've installed Arch a dozen times before but never had to do this. What changed with the Archiso image?

Offline

#8 2017-01-05 22:27:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Package signing issue

You also have to import the archlinux keyring

Offline

#9 2017-01-05 22:27:31

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Package signing issue

did you also set up the master keys?

pacman-key --populate archlinux

edit: too slow

Last edited by HiImTye (2017-01-05 22:27:53)

Offline

#10 2017-01-05 22:30:04

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Package signing issue

lumeno wrote:

I've installed Arch a dozen times before but never had to do this. What changed with the Archiso image?

When  you use the install disk, it uses the keyring on the install disk. When it installs the new system with pacstrap, it copies over the keyring, then installs the keyring package to update everything. You generally shouldn't have to do any of it manually.

Last edited by Scimmia (2017-01-05 22:37:29)

Offline

#11 2017-01-05 22:45:32

lumeno
Member
Registered: 2014-04-21
Posts: 20

Re: Package signing issue

Scimmia wrote:
lumeno wrote:

I've installed Arch a dozen times before but never had to do this. What changed with the Archiso image?

When  you use the install disk, it uses the keyring on the install disk. When it installs the new system with pacstrap, it copies over the keyring, then installs the keyring package to update everything. You generally shouldn't have to do any of it manually.

Thanks! I've updated the wiki page for https://wiki.archlinux.org/index.php/Ar … net_access  so that this step is included, which apparently is already done by pacstrap.

Offline

Board footer

Powered by FluxBB