You are not logged in.

#1 2020-10-10 02:46:02

elfomelo
Member
Registered: 2011-10-27
Posts: 47

[Solved]Trying to recover after a broken update, pacman can't resol...

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 -Syu

I 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

#2 2020-10-10 06:56:34

Khere
Member
From: Italy
Registered: 2020-03-04
Posts: 170

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

Use chroot from live cd, after the chroot use the wifi-menu for internet connection, easiest because is a GUI.
Then do :

pacman -Syyu

Fan of Giorgio Moroder & Mohammad Ammax enemy

Offline

#3 2020-10-10 07:20:29

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

Khere wrote:

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?


My reposSome snippets

Heisenberg might have been here.

Offline

#4 2020-10-10 08:41:38

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#5 2020-10-10 15:14:58

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

GaKu999 wrote:

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-firmware

It 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

#6 2020-10-10 15:16:32

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

seth wrote:

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

#7 2020-10-10 16:08:52

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

Since you can ping the mirror, does pacman/curl work when you just hardcode the mirror IP in /etc/hosts?

Online

#8 2020-10-10 16:30:17

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

seth wrote:

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

#9 2020-10-10 16:35:16

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#10 2020-10-10 16:52:51

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

seth wrote:

Can you
a) ping 128.211.151.254
b) curl -v 128.211.151.254 > /dev/null
?

Yes and Yes

seth wrote:

What's "ip a; ip r" (in doubt make a photo, only post a link)

ip a; ip r photo

Offline

#11 2020-10-10 17:10:07

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#12 2020-10-10 17:25:36

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

seth wrote:

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 -Syu

I 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

#13 2020-10-10 18:01:34

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#14 2020-10-10 18:17:36

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

seth wrote:

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-keyring

gives 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

#15 2020-10-10 20:22:29

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,100

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#16 2020-10-10 23:16:34

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

I wiped the cache, tried to install archlinux-keyring, and the same three errors happen.

Offline

#17 2020-10-10 23:25:07

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

From the installation media:

pacman --root /mnt --cachedir /mnt/var/cache/pacman/pkg -S archlinux-keyring pacman gpgme gnupg glibc

If that works try again:

pacman --sysroot /mnt -Syu

Offline

#18 2020-10-10 23:32:43

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

loqs wrote:

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

#19 2020-10-10 23:35:07

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#20 2020-10-10 23:52:50

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

loqs wrote:
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

#21 2020-10-11 00:03:13

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#22 2020-10-11 00:13:58

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#23 2020-10-11 00:19:55

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

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

#24 2020-10-11 00:22:23

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

http://ix.io/2AlF
Sorry, wrong link by mistake

Last edited by elfomelo (2020-10-11 00:22:34)

Offline

#25 2020-10-11 00:27:46

elfomelo
Member
Registered: 2011-10-27
Posts: 47

Re: [Solved]Trying to recover after a broken update, pacman can't resol...

A quick update, the downloaded packages are in /mnt/var/cache/pacman/pkg/

Offline

Board footer

Powered by FluxBB