You are not logged in.

#1 2022-08-01 16:17:11

gazev
Member
Registered: 2022-05-09
Posts: 9

[SOLVED] Cannot download any packages with pacstrap on bootable usb

I am installing arch on a new machine and for some reason I cannot install any packages with pacstrap.
Whenever I run

pacstrap /mnt base linux linux-firmware

I get the following

error: libcap: signature from "David Runge <dvzrv@archlinux.org>" is marginal trust
:: File /mnt/var/cache/pacman/pkg/libcap-2.65-1-x86_64.pkg.tar.zst 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.
==> ERROR: Failed to install packages to new root
pacstrap /mnt base linux linux-firmware  8.43s user 2.62s system 89% cpu 12.367 total

I was having an error like

error: key "..." could not be looked up remotely

before I tried refreshing the keys with

 pacman-key --refresh-keys

. I also tried

pacman-key --delete 91FFE0700E80619CEB73235CA88E23E377514E00
pacman-key --populate archlinux

which I saw on the wiki here. Still none of these worked

I would appreciate some help! big_smile

The partitions are mounted as such

input:

lsblk -f

output:

NAME   FSTYPE   FSVER            LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                                     0   100% /run/archiso/airootfs
sda
├─sda1 vfat     FAT32                        D412-77D3                             429.5G     0% /mnt/boot
├─sda2 swap     1                            2f056cf7-2162-4543-9f59-61bc98d089bf                [SWAP]
└─sda3 ext4     1.0                          89abf3ac-1a08-424a-9665-7184f035b585  429.5G     0% /mnt

Last edited by gazev (2022-08-01 18:08:49)

Offline

#2 2022-08-01 16:21:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,641

Re: [SOLVED] Cannot download any packages with pacstrap on bootable usb

How old is your installation media?  There has been a keyring update recently and several people doing installs have tripped over this.  I *think* the most recent iso in Downloads has the new keyring.  Could you check to see if there is a newer iso, and if so report back as to whether it works?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2022-08-01 16:26:41

gazev
Member
Registered: 2022-05-09
Posts: 9

Re: [SOLVED] Cannot download any packages with pacstrap on bootable usb

ewaller wrote:

How old is your installation media?  There has been a keyring update recently and several people doing installs have tripped over this.  I *think* the most recent iso in Downloads has the new keyring.  Could you check to see if there is a newer iso, and if so report back as to whether it works?

Hi, I was told it could be this but I am using the ISO of July 2022, 1st of July to be exact.

Offline

#4 2022-08-01 16:29:37

nl6720
Wiki Admin
Registered: 2016-07-02
Posts: 372

Re: [SOLVED] Cannot download any packages with pacstrap on bootable usb

ewaller wrote:

I *think* the most recent iso in Downloads has the new keyring.

It doesn't.

Before using pacstrap, run:

pacman -Sy --needed archlinux-keyring

Last edited by nl6720 (2022-08-08 04:52:20)

Offline

#5 2022-08-01 17:27:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,641

Re: [SOLVED] Cannot download any packages with pacstrap on bootable usb

nl6720 wrote:
ewaller wrote:

I *think* the most recent iso in Downloads has the new keyring.

It doesn't.

Before using pacstrap, run:

pacman -Sy archlinux-keyring

Good to know.  Thanks.
I assume this means one needs to do that every time you boot the install media as changes can only be written to a ramfs.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2022-08-01 18:06:05

gazev
Member
Registered: 2022-05-09
Posts: 9

Re: [SOLVED] Cannot download any packages with pacstrap on bootable usb

nl6720 wrote:
ewaller wrote:

I *think* the most recent iso in Downloads has the new keyring.

It doesn't.

Before using pacstrap, run:

pacman -Sy archlinux-keyring

This fixed it! Thank you very much

Offline

#7 2022-08-02 06:08:56

nl6720
Wiki Admin
Registered: 2016-07-02
Posts: 372

Re: [SOLVED] Cannot download any packages with pacstrap on bootable usb

ewaller wrote:

I assume this means one needs to do that every time you boot the install media as changes can only be written to a ramfs.

Yes, as long as archlinux-keyring in the live environment is outdated.
The issue with soon expiring keys should be solved once https://gitlab.archlinux.org/archlinux/ … -/issues/4 is implemented, but AFAIK the recent archlinux-keyring changes are not related to that. There's also an attempt to have the keys updated with a service and timer: https://lists.archlinux.org/archives/li … 7PW44I5U3/.

Offline

Board footer

Powered by FluxBB