You are not logged in.
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 .
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
The bootstrap tarball already contains the base & man-db packages so leave them off the list.
Jin, Jîyan, Azadî
Offline
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
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.
Jin, Jîyan, Azadî
Offline
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.
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
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
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
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
Please don't post images of text. Instead post the actual text in [code] [/code] tags.
CoC - Pasting pictures and code
Offline
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
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
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
Thanks for your help, I misunderstood chroot and managed to use the typical arch install from Live Image.
Offline
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 :-(
Jin, Jîyan, Azadî
Offline