Thank you eschwartz and Head_on_a_Stick for your help
]]>Here's a mini guide I wrote for the Alpine Linux wiki: https://wiki.alpinelinux.org/wiki/Runni … Arch_Linux
That uses arch-chroot(1) to enter the chroot but you can use the manual method instead. And change the download URL to a more recent image.
]]>However I receive an error when downloading one file, this specifically: gmp-6.1.2-3-x86_64.pkg.tar.xz. Pacman fails to download this file from every mirror I listed, so I tried removing some and adding new mirrors, but same error shows up every time i retry pacstrap command.
]]>You'll want to install this to get a trust store for archlinux -- the alternative is to change /etc/pacman.conf where it says "SigLevel = Required DatabaseOptional" to no longer require PGP signatures.
Ideally Gentoo would package the keyring and mirrorlist in their portage tree, so you could rely on their having investigated and confirmed the authenticity of these keys. IIRC Fedora does have packages for this...
]]>Anyway, I tried again, but now I seem to have some problem with keys.
I used pacstrap command and this is what it dumped:
https://privatebin.net/?f2e1b7bef804c0e … zyRCDkH6ku
After a bit of research, I tried running "pacman-key populate archlinux" but than I get error that the keyring file /usr/share/pacman/keyrings/archlinux.gpg does not exist, so I tried again "pacman -S archlinux-keyring", but than I got this:
https://privatebin.net/?22c3a0e5156e902 … ihwwYNB7v1
I'm happy to see that you successfully got pacman up and running, at least. One day I'm sure this will be a funny story for you?
If you had any important data, there are general methods for recovering it, which probably don't work if you've done further filesystem writes.
]]>I'm gonna go give myself a few slaps in the face and then reinstall gentoo and repeat the whole process
But thank you very much for your help, if I encounter any errors while trying to use pacstrap I will post back
the internal libcurl downloader
the XferCommand configuration setting
The latter is commented out by default in order to use the former. You can uncomment it, or, you can make sure that your pacman program is built with curl enabled.
https://packages.gentoo.org/packages/sys-apps/pacman
I see that the Gentoo package has a "curl" global USE flag, is that enabled on your end? If not, then you'll either need to enable it and re-emerge pacman, or else you'll need to configure a suitable downloader in pacman.conf
]]>==> Creating install root at /root/ArchContainer/
==> Installing packages to /root/ArchContainer/
warning: no 'XferCommand' configured
:: Synchronizing package databases...
error: failed to update core (error invoking external downloader)
error: failed to update extra (error invoking external downloader)
error: failed to update community (error invoking external downloader)
error: failed to synchronize any databases
error: failed to init transaction (error invoking external downloader)
==> ERROR: Failed to install packages to new root
You'd also want to have the mirrorlist file pointing to at least one mirror, of course. And an archlinux-keyring.
]]>warning: no 'XferCommand' configured
error: no usable package repositories configured.
I'm trying to find solution on other topics but I haven't managed so far.
Could you point me to what I should configure?
Thank you
There is an (old) version of pacman available in the Gentoo portage tree. You could also manually copy my static "pacman" binary available here: https://pkgbuild.com/~eschwartz/repo/x86_64-extracted/
(It is signed by my Trusted User signing key, but you don't yet have a pacman install to verify that my signing key is indeed part of the archlinux-keyring trusted set. I'm not sure how you prefer to solve that chicken-and-egg problem. You can do some legwork with https://www.archlinux.org/master-keys/ to verify my key has the right Web of Trust relationship, I guess.)
]]>./pacstrap -c ~/ArchContainer/ base
And this is the output I received:
==> Creating install root at /root/ArchContainer/
==> Installing packages to /root/ArchContainer/
unshare: failed to execute pacman: No such file or directory
==> ERROR: Failed to install packages to new root
note - I am currently using Gentoo. I am beginner Linux user so I apologise in advance for lack of my knowledge
Could you please tell me what am I doing wrong. Any help is appreciated. Thank you in advance