You are not logged in.
Hi,
I am trying to fix a broken install. I'm following https://wiki.archlinux.org/index.php/Pa … an_upgrade
However, when I try
pacman --sysroot /mnt -SyuI get
error? failed retrieving file 'multilib.db' from <mirror> : could not resolve host
for every mirror.and a failed to synchronize all databases at the end. I tried pinging individual mirrors, and it works without issue.
I found a similar error in https://bbs.archlinux.org/viewtopic.php?id=135156, but my try to disable ipv6 didn't solve the issue. My /etc/sysctl.d/40-ipv6.conf file has
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.enp3s0.disable_ipv6 = 1
Any clues on how to fix this issue?
Thanks!
Last edited by elfomelo (2020-10-11 14:34:09)
Offline
Use chroot from live cd, after the chroot use the wifi-menu for internet connection, easiest because is a GUI.
Then do :
pacman -SyyuFan of Giorgio Moroder & Mohammad Ammax enemy
Offline
Use chroot from live cd, after the chroot use the wifi-menu for internet connection, easiest because is a GUI.
Then do :pacman -Syyu
That is so wrong in so many levels and totally unrelated to OPs issue...whatever that is...
OP you describe DNS issues yet you say PING works...
Is the live iso capable of pacstrap in your network?
Offline
Editing /etc/sysctl.d/40-ipv6.conf of the installed system will do nothing to the installation iso boot, pass "ipv6.disable=1" to the kernel when booting the iso.
Online
OP you describe DNS issues yet you say PING works...
Is the live iso capable of pacstrap in your network?
Yes, but with an error. I booted, mounted my partition structure at /mnt and run
pacstrap /mnt base linux linux-firmwareIt creates install root at /mnt and is able to sync with core, extra and community. Then it proceeds to install, but when it runs the post-transaction hooks i get
calll to execv failed (No such file or directory)
error: command failed to execute correctly
four times, for each of the four steps of the post-transaction hooks.
Offline
Editing /etc/sysctl.d/40-ipv6.conf of the installed system will do nothing to the installation iso boot, pass "ipv6.disable=1" to the kernel when booting the iso.
In the booting screen I typed e and added "ipv6.disable=1" at the end, then hit enter to boot. the problem persists.
Offline
Since you can ping the mirror, does pacman/curl work when you just hardcode the mirror IP in /etc/hosts?
Online
Since you can ping the mirror, does pacman/curl work when you just hardcode the mirror IP in /etc/hosts?
I changed the first server of pacman.d/mirrorlist for
Server = 128.211.151.254/archlinux/$repo/os/$arch
. Still "failed retrieving file" errors.
Offline
Can you
a) ping 128.211.151.254
b) curl -v 128.211.151.254 > /dev/null
?
What's "ip a; ip r" (in doubt make a photo, only post a link)
Online
Can you
a) ping 128.211.151.254
b) curl -v 128.211.151.254 > /dev/null
?
Yes and Yes
What's "ip a; ip r" (in doubt make a photo, only post a link)
ip a; ip r photo
Offline
There's nothing off and you can download from the mirror.
Is the message still/now
failed retrieving file 'multilib.db' from 128.211.151.254 : could not resolve host??
Can you
curl -o multilib.db http://128.211.151.254/archlinux/multilib/os/multilib.db?
Online
Can you
curl -o multilib.db http://128.211.151.254/archlinux/multilib/os/multilib.db?
I can, and then I realized the "http://" was missing in the begin of the Server line. I added that and it is able to connect now!
It is a breakthrough, but I'm stumbling in another error now. After
pacman --sysroot /mnt -SyuI get "missing required signature" and "invalid or corrupted package (PGP signature)". I believe I need to update my pgp keys, but do I need to do this in the iso or in the old system, and if the latter, how?
Offline
Pre-install archlinux-keyring (using the sysroot switch from the iso), but there could also just e a broken package in the cache (depending on when your previous update failed)
Online
Pre-install archlinux-keyring (using the sysroot switch from the iso), but there could also just e a broken package in the cache (depending on when your previous update failed)
pacman --sysroot /mnt -S archlinux-keyringgives the following errors
GPGME error invalid crypto engine
archlinux-keyring: missing required signature
failed to commit transaction (invalid or corrupted package (PGP signature))
Should I
rm /mn/var/cache/pacman/pkg/*?
Offline
You should at least delete that package, but if you don't mind the traffic, just wipe the cache are re-fetch them all, yes.
Online
I wiped the cache, tried to install archlinux-keyring, and the same three errors happen.
Offline
From the installation media:
pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -S archlinux-keyring pacman gpgme gnupg glibcIf that works try again:
pacman --sysroot /mnt -SyuOffline
From the installation media:
pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -S archlinux-keyring pacman gpgme gnupg glibc
It goes beyond the keyring problem. But when it goes to "Processing package changes" and "Running post-transantion hooks" it gives
call to execv failed (No such file or directory)
error: commend failed to execute correctly
repeatedly after every single step.
Offline
pacman --root /mnt -Qkk 2>&1 | grep -Fv '0 altered files'Pipe the output to a pastebin, see the tip box from the link.
Last edited by loqs (2020-10-10 23:35:23)
Offline
pacman --root /mnt -Qkk 2>&1 | grep -Fv '0 altered files'Pipe the output to a pastebin, see the tip box from the link.
http://ix.io/2Alz
Here it is
Offline
Do you have a backup of any data you wish to preserve?
I would suggest running a S.M.A.R.T. self test, after that has finished post the results of
# smartctl -a /dev/<device>As the following which should be after filesystem was restored is not a good sign:
error: could not open file /mnt/var/lib/pacman/local/filesystem-2020.09.03-1/files: No such file or directory
warning: filesystem: /mnt/lib (No such file or directory)
warning: filesystem: /mnt/lib64 (No such file or directory)
warning: filesystem: /mnt/sbin (No such file or directory)
warning: filesystem: /mnt/etc/fstab (Modification time mismatch)
warning: filesystem: /mnt/etc/fstab (Size mismatch)
warning: filesystem: /mnt/etc/group (Modification time mismatch)
warning: filesystem: /mnt/etc/group (Size mismatch)
warning: filesystem: /mnt/etc/gshadow (Modification time mismatch)
warning: filesystem: /mnt/etc/gshadow (Size mismatch)
warning: filesystem: /mnt/etc/hosts (Modification time mismatch)
warning: filesystem: /mnt/etc/hosts (Size mismatch)
warning: filesystem: /mnt/etc/passwd (Modification time mismatch)
warning: filesystem: /mnt/etc/passwd (Size mismatch)
warning: filesystem: /mnt/etc/profile (Modification time mismatch)
warning: filesystem: /mnt/etc/profile (Size mismatch)
warning: filesystem: /mnt/etc/resolv.conf (Modification time mismatch)
warning: filesystem: /mnt/etc/resolv.conf (Size mismatch)
warning: filesystem: /mnt/etc/securetty (Modification time mismatch)
warning: filesystem: /mnt/etc/shadow (Modification time mismatch)
warning: filesystem: /mnt/etc/shadow (Size mismatch)
warning: filesystem: /mnt/etc/shells (Modification time mismatch)
warning: filesystem: /mnt/etc/shells (Size mismatch)
warning: filesystem: /mnt/usr/lib64 (No such file or directory)
warning: filesystem: /mnt/usr/sbin (No such file or directory)
warning: filesystem: /mnt/usr/lib/os-release (No such file or directory)
warning: filesystem: /mnt/usr/lib/sysctl.d/10-arch.conf (No such file or directory)
warning: filesystem: /mnt/usr/lib/systemd/system-environment-generators/10-arch (No such file or directory)
warning: filesystem: /mnt/usr/lib/sysusers.d/arch.conf (No such file or directory)
warning: filesystem: /mnt/usr/lib/tmpfiles.d/arch.conf (No such file or directory)
warning: filesystem: /mnt/usr/local/share/man (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/crypttab (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/fstab (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/group (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/gshadow (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/host.conf (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/hosts (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/issue (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/ld.so.conf (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/motd (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/nsswitch.conf (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/passwd (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/profile (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/resolv.conf (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/securetty (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/shadow (No such file or directory)
warning: filesystem: /mnt/usr/share/factory/etc/shells (No such file or directory)
warning: filesystem: /mnt/usr/share/pixmaps/archlinux-logo.png (No such file or directory)
warning: filesystem: /mnt/usr/share/pixmaps/archlinux-logo.svg (No such file or directory)
warning: filesystem: /mnt/usr/share/pixmaps/archlinux.png (No such file or directory)
warning: filesystem: /mnt/usr/share/pixmaps/archlinux.svg (No such file or directory)
warning: filesystem: /mnt/var/lock (No such file or directory)
warning: filesystem: /mnt/var/mail (No such file or directory)
warning: filesystem: /mnt/var/run (No such file or directory)Offline
The short self test is here http://ix.io/2Alz
I would like to preserve all of it... Could you elaborate on the comment you made about previous result? What is not a good sign?
Offline
http://ix.io/2Alz is the same link as in post #21
The post install hooks failing, indicates to me pacman finished installing the filesystem package, however the check afterwards shows all those files that should have just been created are missing.
Last edited by loqs (2020-10-11 00:20:16)
Offline
http://ix.io/2AlF
Sorry, wrong link by mistake
Last edited by elfomelo (2020-10-11 00:22:34)
Offline
A quick update, the downloaded packages are in /mnt/var/cache/pacman/pkg/
Offline