You are not logged in.

#1 2023-01-09 16:25:18

RSX-0806
Member
Registered: 2023-01-09
Posts: 5

[Solved] Pacstrap failed to install packages to new root

Hello Arch Community !

I would like to dual-boot Arch Linux besides my current Ubuntu 22.04 LTS (my long-term goal is to slowly detach from ubuntu).

I've followed Installation from a host running another Linux distribution guide using the recommended bootstrap tarball method, and jumped back to main installation guide from Mounting the filesystem part.

sda1 : is my EFI partition, also mounted to /mnt/boot.
sda2/ : is my Ubuntu environment.
sda2/mnt/ : is for Arch environment.

https://i.imgur.com/42LOYWL.png
My mirrorlist is located in France/Germany and sorted by age,  when I run

pacstrap -K /mnt base linux linux-firmware vim firefox man-db

I get this error message.
https://i.imgur.com/ztiADQP.png

I've tried to update my keyrings / changed mirrorlist, didn't help solving the issue, I'm pretty confused about what to do next.

Any help/hint is appreciated big_smile.

EDIT: Solved, installing Arch on /dev/sda2 from Live ISO, and installing ubuntu as a secondary distro.


Mod Edit - Replaced oversized images with links.
CoC - Pasting pictures and code

Last edited by RSX-0806 (2023-01-10 14:36:59)

Offline

#2 2023-01-09 16:35:53

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: [Solved] Pacstrap failed to install packages to new root

The bootstrap tarball already contains the base & man-db packages so leave them off the list.

Offline

#3 2023-01-09 16:41:27

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: [Solved] Pacstrap failed to install packages to new root

Head_on_a_Stick wrote:

The bootstrap tarball already contains the base & man-db packages so leave them off the list.

Shouldn't the /mnt path be empty? archlinux-bootstrap-x86_64.tar.gz files are extracted into /tmp (if following WIKI's steps).


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#4 2023-01-09 16:48:33

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: [Solved] Pacstrap failed to install packages to new root

Oops, I didn't actually read that. I've used a bootstrap tarball a few times and I just unpack it directly to the target partition then chroot in to configure it. Seems simpler than using it to run pacstrap to install what's already present in the tarball.

The packages listed in the OP's error message are included in the tarball though.

Offline

#5 2023-01-09 17:02:15

RSX-0806
Member
Registered: 2023-01-09
Posts: 5

Re: [Solved] Pacstrap failed to install packages to new root

d.ALT wrote:
Head_on_a_Stick wrote:

The bootstrap tarball already contains the base & man-db packages so leave them off the list.

Shouldn't the /mnt path be empty? archlinux-bootstrap-x86_64.tar.gz files are extracted into /tmp (if following WIKI's steps).

Yes, /mnt is empty, and I've mounted/chrooted from /tmp/root.x86_64/ (extracted tarball folder) as marked in wiki.

Head_on_a_Stick wrote:

The packages listed in the OP's error message are included in the tarball though.

That's what I was thinking about, I've tried different packages (e.g: git, lutris, neovim) but still get same error, should I just skip this step and continue configuration?

Offline

#6 2023-01-09 17:07:12

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: [Solved] Pacstrap failed to install packages to new root

RSX-0806 wrote:
d.ALT wrote:
Head_on_a_Stick wrote:

The bootstrap tarball already contains the base & man-db packages so leave them off the list.

Shouldn't the /mnt path be empty? archlinux-bootstrap-x86_64.tar.gz files are extracted into /tmp (if following WIKI's steps).

Yes, /mnt is empty, and I've mounted/chrooted from /tmp/root.x86_64/ (extracted tarball folder) as marked in wiki.

This tells us quite the exact opposite, however.
What's your $ lsblk -f after the mounts?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#7 2023-01-09 17:20:31

RSX-0806
Member
Registered: 2023-01-09
Posts: 5

Re: [Solved] Pacstrap failed to install packages to new root

d.ALT wrote:

What's your $ lsblk -f after the mounts?

Here it is :
https://i.imgur.com/ZdyaCme.png


Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2023-01-09 17:31:41)

Offline

#8 2023-01-09 17:30:23

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: [Solved] Pacstrap failed to install packages to new root

RSX-0806 wrote:
d.ALT wrote:

What's your $ lsblk -f after the mounts?

Here it is :
https://i.imgur.com/ZdyaCme.png

Please, avoid images. Paste textual output (embed it into [ code ] [ / code ] tags without spaces).
> /tmp is where BootStrap files live
> /mnt (NOT /tmp/mnt) is where you're actually going to install ArchLinux in and (contnue to) execute its installation steps


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#9 2023-01-09 17:33:25

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

Re: [Solved] Pacstrap failed to install packages to new root

Please don't post images of text. Instead post the actual text in [⁣code] [⁣/code] tags.
CoC - Pasting pictures and code


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

#10 2023-01-09 17:48:16

RSX-0806
Member
Registered: 2023-01-09
Posts: 5

Re: [Solved] Pacstrap failed to install packages to new root

Please, avoid images. Paste textual output (embed it into [ code ] [ / code ] tags without spaces).

Sorry, didn't took time to read guidelines.

> /tmp is where BootStrap files live.
> /mnt (NOT /tmp/mnt) is where you're actually going to install ArchLinux in and (contnue to) execute its installation steps.

Please correct me if I'm wrong, I had to mount from /mnt, not from chroot  jail (/tmp/root.x86_64) ? thank you

Offline

#11 2023-01-09 18:02:03

d.ALT
Member
Registered: 2019-05-10
Posts: 914

Re: [Solved] Pacstrap failed to install packages to new root

You're lacking the Live ArchLinux's environment of the ISO, thus to "mimic" it you'll have to enter into (first) Chroot. Once you're done with the pre-steps, then you'll go for the 2nd Chroot as per the standard installation steps.


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#12 2023-01-09 18:03:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [Solved] Pacstrap failed to install packages to new root

RSX-0806 wrote:

Yes, /mnt is empty, and I've mounted/chrooted from /tmp/root.x86_64/ (extracted tarball folder) as marked in wiki.

If you are going to use pacstrap, you use it from the host system after mounting the target partion (e.g., one /mnt) but *prior* to chrooting.  In fact, if you are able to chroot, you shouldn't use pacstrap as there is already a base system in place.

A typical arch install would mount an empty partition on /mnt, then run a pacstrap command, then chroot.  For installing from an existing linux, you could extract a system image to a directory (NOT /mnt) chroot into that directory, then mount an empty partition on /mnt, then pacstrap to that empty partition.

It sounds like you may be following a short-cut method like that mentioned by HeadOnAStick in which you extract a system image directly to the partition on /mnt.  I don't know if this is supported here (actually I'm pretty sure it isn't), but in any case, if you do this, you'd never use pacstrap at all.

Last edited by Trilby (2023-01-09 18:06:33)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#13 2023-01-10 14:34:36

RSX-0806
Member
Registered: 2023-01-09
Posts: 5

Re: [Solved] Pacstrap failed to install packages to new root

Thanks for your help, I misunderstood chroot and managed to use the typical arch install from Live Image.

Offline

#14 2023-01-10 19:48:34

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: [Solved] Pacstrap failed to install packages to new root

For anybody else following this thread: don't follow my bootstrap tarball shortcut. I can't ask for help here now I've done that :-(

Offline

Board footer

Powered by FluxBB