You are not logged in.

#1 2019-10-29 10:29:00

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

[solved] Error: failed retrieveing core.db: Resolve timeout.

During a update I broke the Pacman installer and now I'm trying to restore the system.

Acording to the ArcLinux wiki on packman I should start  the computer using an USB with the latest iso and mount the disks.

mount /dev/sda2 /mnt
mount /dev/sda4 /mnt/var
mount /dev/sda5 /mnt/home
mount - t proc proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dew /mnt/dev

The reason I mount the /mnt/home is that I unfortunately have the local pacman repo there. Thus the next row is a unfortunate symlink needed to update the system.

 
ln - s /mnt/home/var/pacman /mnt/var/cache/pacman

Later I have added a new path in /mnt/etc/pacman that is direct connected to the the path (lesson learned).

Now to update the system I write

 
pacman --debug --sysroot /mnt -Syu

But the results are :

 
. 
. 
. A lot of text then
debug: url: http://ftp.acc.umu.se/mirror/arclinux/os/x86_64/core.db
debug: maxsize 26214400
debug: using time condition 1572018031
debug: opened tempfile for downloading : /var/lib/pacman/sync/core.db.part 
error: failed retrieveing file ftp.acc.umu.se: Resolving timed out after 10000 milliseconds 

I have tested download the file with wget and curl and that works. Thus I un commented one of the following :

 
/etc/pacman.conf
#XferCommand = /usr/bin/wget........ 
#XferCommand = /usr/bin/curl..... 

Then I started the update above again but got same results for bot options.
Then I   changed

 
/etc/resolveconf.conf
name_servers=8.8.8.8

No change in the update.
Then I changed the boot parameters to disable ipv6. Tested both off these.

 
ipv6.disable=1
ipv6.disable_ipv6=1

Nothing worked and I'm still able to manually download the core.db file but not with pacman.

Is that a bug or am I doing it wrong?

Last edited by r00tr4t (2019-10-30 14:20:04)

Offline

#2 2019-10-29 10:31:11

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

P.s I wrote this on my phone so the logs are hand written and may contain small errors. Thus also the answer from my part may be delayed.

Offline

#3 2019-10-29 11:50:20

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Just writing

 pacman - Syu 

Seams to work? Why? Where does it save the installation?

Offline

#4 2019-10-29 11:59:14

loqs
Member
Registered: 2014-03-06
Posts: 19,098

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

You can download http://ftp.acc.umu.se/mirror/arclinux/os/x86_64/core.db using the installation media just the pacman command fails?

Last edited by loqs (2019-10-29 12:03:26)

Offline

#5 2019-10-29 12:01:44

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Ok that works but installs the packages on the USB drive. Not what I want.
But why does that work but not with the

 --sysroot

command?

Offline

#6 2019-10-29 12:06:16

loqs
Member
Registered: 2014-03-06
Posts: 19,098

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Broken curl / resolver configuration inside the chroot.  What is you use --root instead of --sysroot?

Offline

#7 2019-10-29 12:18:02

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Acording to this side. The command should be.

 pacman --root=/mnt - Syyu

And it atleast seams to do something now.

Offline

#8 2019-10-29 12:18:40

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Is the wiki old or outdated?

Offline

#9 2019-10-29 12:21:21

loqs
Member
Registered: 2014-03-06
Posts: 19,098

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

--sysroot is newer than --root but for recovering a broken installation --root may be more appropriate.

Offline

#10 2019-10-29 14:30:27

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Thanks. Perhaps that should be mentioned in the wiki?

Offline

#11 2019-10-29 14:38:05

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Last point in the wiki states that I should run:

 find /mnt/usr/lib - size 0

That still shows a lot of files that are 0 size but can't be installed, mostly modules to python, heroku and modules/5.3.7-arch1/bild/*.*  How do I fix them?

Offline

#12 2019-10-29 14:47:40

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Hmm. I used the command above but filed out all .h, .py and .js files the list gets a lot shorter and mostly contains gitignores, .bs and .supp files.
wow that is a badly formatted sentence. Sorry.

Offline

#13 2019-10-29 15:13:53

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

 pacman --root=/mnt -S pacman
Warning: pacman-5.2.0-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
error: could not open file /mnt/var/lib/pacman/local/pacman-5.2.0-2/desc: No such file or directory.
warning: could not fully load metadata for package pacman-5.2.0-2
error: failed to prepare transaction (invalid package)

Is that something I should worry about?

Offline

#14 2019-10-29 17:01:48

loqs
Member
Registered: 2014-03-06
Posts: 19,098

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Try

pacman --root=/mnt --dbonly -S pacman
pacman --root=/mnt -S pacman

Offline

#15 2019-10-29 17:25:10

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Same warning again.

Offline

#16 2019-10-29 17:34:59

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

I tested

 pacman --root=/mnt -Dk
error: pacman-5.2.0-2 : description file missing.
error: pacman-5.2.0-2 : file list is missing 

Is that my problem now?

Offline

#17 2019-10-29 17:37:12

loqs
Member
Registered: 2014-03-06
Posts: 19,098

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Yes

rm -rf /mnt/var/lib/pacman/local/pacman-5.2.0-2
pacman --root=/mnt --dbonly -S pacman
pacman --root=/mnt -S pacman

Last edited by loqs (2019-10-29 17:37:32)

Offline

#18 2019-10-29 17:57:51

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

A little bit better.

 error: file owned by 'libtinfo' and 'nurses' : '/usr/lib/libtinfo.so'
error: file owned by 'libtinfo' and 'ncurses5-compat-lib' :'usr/lib/libtinfo.so.5'
No database error have been found! 

But the find command still reports a lot of 0 size files.

Do loqs have an awesome answer to that to?

Offline

#19 2019-10-29 17:59:29

loqs
Member
Registered: 2014-03-06
Posts: 19,098

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

What command produced that output?

Offline

#20 2019-10-29 18:04:51

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

loqs wrote:

What command produced that output?

 find /mnt/usr/lib - size 0 

Offline

#21 2019-10-29 18:06:51

loqs
Member
Registered: 2014-03-06
Posts: 19,098

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

I was unclear what command produced the output

error: file owned by 'libtinfo' and 'nurses' : '/usr/lib/libtinfo.so'
error: file owned by 'libtinfo' and 'ncurses5-compat-lib' :'usr/lib/libtinfo.so.5'
No database error have been found! 

Offline

#22 2019-10-29 18:08:52

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

I'm thinking that

 pacman --root=/mnt -Ql

gives a list of all the files installed on the system...

Offline

#23 2019-10-29 18:11:14

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

loqs wrote:

I was unclear what command produced the output

error: file owned by 'libtinfo' and 'nurses' : '/usr/lib/libtinfo.so'
error: file owned by 'libtinfo' and 'ncurses5-compat-lib' :'usr/lib/libtinfo.so.5'
No database error have been found! 

Sorry I missed the command.
It was

 pacman --root=/mnt -Dk

Offline

#24 2019-10-29 18:16:40

loqs
Member
Registered: 2014-03-06
Posts: 19,098

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

Can the system run an update now?

pacman --sysroot /mnt -Syu

Offline

#25 2019-10-29 18:23:25

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: [solved] Error: failed retrieveing core.db: Resolve timeout.

loqs wrote:

Can the system run an update now?

pacman --sysroot /mnt -Syu

Nop. I still get the same time out error as before.

Offline

Board footer

Powered by FluxBB