You are not logged in.

#1 2022-11-17 18:23:24

melanchopc
Member
Registered: 2022-11-17
Posts: 5

Cannot install important packages during installation

Partitioning, setting my time and formatting all went flawlessly. Problems started rising as soon as I started downloading packages via pacstrap. PGP corrupted, invalid. Key problems. I've googled endlessly with nothing good coming out of it

I reset my keys using ]pacman-key --init , no good results. Internet works fine too through Ethernet. And past issues that have been posted about on here are not understandable. I'd appreciate any help. Same problems rise doing archinstall setup with packages being corrupted from every host, I've read something on mirrors but /etc/pacman.d/mirrorlist doesn't give me permission for some odd reason.

Last edited by melanchopc (2022-11-17 18:25:29)

Offline

#2 2022-11-17 18:28:45

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: Cannot install important packages during installation

Keyring problems on the ISO usually means you're either using an older ISO or you didn't wait for the keyring to finish initializing. There's a systemd service that runs at boot that does that.

That's all a guess, though, as you didn't post exact errors.

Last edited by Scimmia (2022-11-17 18:29:35)

Offline

#3 2022-11-17 18:34:22

melanchopc
Member
Registered: 2022-11-17
Posts: 5

Re: Cannot install important packages during installation

Scimmia wrote:

Keyring problems on the ISO usually means you're either using an older ISO or you didn't wait for the keyring to finish initializing. There's a systemd service that runs at boot that does that.

That's all a guess, though, as you didn't post exact errors.

The ISO is around 2-3 days old. Is there a way for me to send the errors and all information that could be useful information for getting this fixed? Are phone pictures allowed or is there a more optimal way?

Offline

#4 2022-11-17 18:44:02

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,119

Re: Cannot install important packages during installation

Start by checking pacman-init.service.

As far as getting the errors, see https://wiki.archlinux.org/title/List_o … n_services
To get it both interactive and on the pastebin, you use tee, such as `LC_ALL=C pacman <your pacman options> |& tee >(curl -F 'f:1=<-' ix.io)`

Offline

#5 2022-11-17 19:05:41

melanchopc
Member
Registered: 2022-11-17
Posts: 5

Re: Cannot install important packages during installation

Scimmia wrote:

Start by checking pacman-init.service.

As far as getting the errors, see https://wiki.archlinux.org/title/List_o … n_services
To get it both interactive and on the pastebin, you use tee, such as `LC_ALL=C pacman <your pacman options> |& tee >(curl -F 'f:1=<-' ix.io)`

pacman-init.service gives me zsh: command not found.

Again, I'm very new to arch. I've installed it on a VM a couple of times now and trying to migrate it to my main computer. The explanation to pastebin stuff is not understandable to me.

Offline

#6 2022-11-17 19:08:39

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

Re: Cannot install important packages during installation


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2022-11-17 19:33:10

melanchopc
Member
Registered: 2022-11-17
Posts: 5

Re: Cannot install important packages during installation

Note: wifi works, pinging works.

I ran: pacstrap /mnt base linux linux-firmware base-devel grub efibootmgr nano networkmanager

the installation was going well till near the end of everything being done it said:

(166/166) checking keyring not found; have you run 'pacman-key --init?'
downloading required keys...
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
error: keyring is not writable
...

error: required key missing from keyring
error: failled to commit transaction (unexpected error)
errors occured, no packages were upgraded.
==> ERROR: failed to install pacakges to new root

Last edited by melanchopc (2022-11-17 19:36:23)

Offline

#8 2022-11-17 20:04:35

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: Cannot install important packages during installation

systemctl status pacman-init.service

[See the link jasonwryan posted.]


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2022-11-17 20:15:04

melanchopc
Member
Registered: 2022-11-17
Posts: 5

Re: Cannot install important packages during installation

cfr wrote:
systemctl status pacman-init.service

[See the link jasonwryan posted.]

Running systemctl status pacman-init.services I get:

pacman-init.service - Initalizes Pacman keyring
   Loaded: Loaded (/etc/systemmd/system/pacman-init.service; enabled; preset disabled
   Active: inactive (dead)

Offline

#10 2022-11-18 20:05:10

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,486

Re: Cannot install important packages during installation

melanchopc wrote:

I ran: pacstrap /mnt base linux linux-firmware base-devel grub efibootmgr nano networkmanager

You need to run

pacstrap -K /mnt base linux ...

to initialize the keyring on the target.

Offline

#11 2022-11-18 21:04:41

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,148

Re: Cannot install important packages during installation

Strike0 wrote:
melanchopc wrote:

I ran: pacstrap /mnt base linux linux-firmware base-devel grub efibootmgr nano networkmanager

You need to run

pacstrap -K /mnt base linux ...

to initialize the keyring on the target.

I thought pacstrap was supposed to copy the host's keyring to the target by default (i.e. without the -G option). Is the -K to do something different? (Downloading a fresh keyring? Or?)

Last edited by cfr (2022-11-18 21:06:55)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#12 2022-11-18 21:46:47

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Cannot install important packages during installation

Strike0 wrote:

You need to run

pacstrap -K /mnt base linux ...

to initialize the keyring on the target.

There should be no need to do this. Every time the install ISO is booted it generates new keys using pacman-init.service and then pacstrap copies them to the installation target....
https://gitlab.archlinux.org/archlinux/ … it.service
https://github.com/archlinux/arch-insta … acstrap.in

@melanchopc - Are you using the officioal image from http://archlinux.org/download/ ?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB