You are not logged in.

#1 2021-05-13 16:30:28

Cbhihe
Member
Registered: 2017-04-09
Posts: 228

[SOLVED] Pacman error: failed retrieving file 'core.db', 'extra.db' ..

[OS: 5.12.2-arch1-1 - last update approx 1 day ago]

The error appeared out of the blue with no problematic install prior and no `*.pacnew` warning to resolve, just upon issuing my usual `sudo pacman -Syu`.


I did consult the forum and googled to find quite a few similar error messages all ending (as in my case) with "requested URL returned error: 404", but pertaining to the installation of single packages usually.
Also checked the Arch wiki, and tried this:
     
- replaced my usual mirrors in  ` /etc/pacman.d/mirrorlist ` with first 10 at top of list in `https://archlinux.org/mirrors/status/` in section "Successfully Syncing Mirrors".
- then I did:

$ sudo pacman -Syyu
...   # same result for any mirror I select
$sudo pacman -Q | wc -l 
1774 

Upon cursory inspection of installed package list, packages I recognize seem to correspond to the packages I explicitlly installed over the past 3 or 4 years since first boot. Nothing is obviously odd here.
Kinda stumped here, as this had never happened before.   sad(

Last edited by Cbhihe (2021-05-13 17:53:10)


I like strawberries, therefore I'm not a bot.

Offline

#2 2021-05-13 16:35:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,925

Re: [SOLVED] Pacman error: failed retrieving file 'core.db', 'extra.db' ..

Post *exact* errors. Adding --debug is also a good idea.

Offline

#3 2021-05-13 16:59:57

Cbhihe
Member
Registered: 2017-04-09
Posts: 228

Re: [SOLVED] Pacman error: failed retrieving file 'core.db', 'extra.db' ..

Without debug, I get:

\> sudo pacman -Syu
[sudo] password for USER: 
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'core.db' from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'core.db' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'core.db' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'core.db' from archlinux.uk.mirror.allworldit.com : The requested URL returned error: 404
error: failed retrieving file 'core.db' from ftp.halifax.rwth-aachen.de : The requested URL returned error: 404
error: failed retrieving file 'core.db' from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file 'core.db' from mirror.pseudoform.org : The requested URL returned error: 404
 core is up to date
error: failed retrieving file 'extra.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from archlinux.uk.mirror.allworldit.com : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from ftp.halifax.rwth-aachen.de : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file 'extra.db' from mirror.pseudoform.org : The requested URL returned error: 404
 extra is up to date
error: failed retrieving file 'community.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'community.db' from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'community.db' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'community.db' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from archlinux.uk.mirror.allworldit.com : The requested URL returned error: 404
error: failed retrieving file 'community.db' from ftp.halifax.rwth-aachen.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file 'community.db' from mirror.pseudoform.org : The requested URL returned error: 404
 community is up to date
error: failed retrieving file 'multilib.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from archlinux.uk.mirror.allworldit.com : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from ftp.halifax.rwth-aachen.de : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file 'multilib.db' from mirror.pseudoform.org : The requested URL returned error: 404
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
\> _

A reboot later and with the `--debug` switch, I get this which points to:

...
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
...

Last edited by Cbhihe (2021-05-13 17:07:19)


I like strawberries, therefore I'm not a bot.

Offline

#4 2021-05-13 17:10:41

loqs
Member
Registered: 2014-03-06
Posts: 17,885

Re: [SOLVED] Pacman error: failed retrieving file 'core.db', 'extra.db' ..

Is it possible your connection has been placed behind a captive portal?
What is the output of

curl -o /dev/null -v www.google.com

Offline

#5 2021-05-13 17:15:44

Cbhihe
Member
Registered: 2017-04-09
Posts: 228

Re: [SOLVED] Pacman error: failed retrieving file 'core.db', 'extra.db' ..

I just added the 3 servers at the end of my list of 12 in `/etc/pacman.d/mirrorlist`:

Server = http://mirror.f4st.host/archlinux/
Server = https://mirror.f4st.host/archlinux/
Server = http://arch.jensgutermuth.de/
Server = https://mirror.chaoticum.net/arch/
Server = http://archlinux.thaller.ws/
Server = http://mirror.chaoticum.net/arch/
Server = https://archlinux.thaller.ws/
Server = https://mirror.pkgbuild.com/
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/
Server = http://ftp.halifax.rwth-aachen.de/archlinux/
Server = https://arch.jensgutermuth.de/
Server = https://mirror.pseudoform.org/

## Worldwide
Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch
Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch

then issued `# pacman -syyu` to force refresh of package DB. I did get a refresh after the first 12 servers returning same error as before. This updated my system to `5.12.3-arch1-1`.
I rebooted again and am back to square one: Error with `# pacman -syu` and ERROR followed by REFRESH with `# pacman -syyu`...

I am even more stumped.


I like strawberries, therefore I'm not a bot.

Offline

#6 2021-05-13 17:21:36

Cbhihe
Member
Registered: 2017-04-09
Posts: 228

Re: [SOLVED] Pacman error: failed retrieving file 'core.db', 'extra.db' ..

BTW I use a torrified Firefox to navigate but any http(s) request from terminal exits normally (does not use tor).


\> curl -o /dev/null -v www.google.com
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 142.250.185.4:80...
* Connected to www.google.com (142.250.185.4) port 80 (#0)
> GET / HTTP/1.1
> Host: www.google.com
> User-Agent: curl/7.76.1
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Thu, 13 May 2021 17:16:05 GMT
< Expires: -1
< Cache-Control: private, max-age=0
< Content-Type: text/html; charset=ISO-8859-1
< P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
< Server: gws
< X-XSS-Protection: 0
< X-Frame-Options: SAMEORIGIN
< Set-Cookie: NID=215=F0CJVgg_JLhXTttsZv3rQTJjjYy0frEfGpB2gek4HFM2r-xDVBL1YGYd-_hwVjxQDUuZjuAmsAOCYpMnPQlXnapQeFJeDf4edPSqReyo5LuCs3ZccGOlxbiC-V1JowV_yBl9-aXZBD5A4IDPdRDg9AJo9FJ5IvlHCk8UvNwm-eU; expires=Fri, 12-Nov-2021 17:16:05 GMT; path=/; domain=.google.com; HttpOnly
< Accept-Ranges: none
< Vary: Accept-Encoding
< Transfer-Encoding: chunked
< 
{ [3631 bytes data]
100 14080    0 14080    0     0  94496      0 --:--:-- --:--:-- --:--:-- 94496
* Connection #0 to host www.google.com left intact

\> _

I like strawberries, therefore I'm not a bot.

Offline

#7 2021-05-13 17:35:22

loqs
Member
Registered: 2014-03-06
Posts: 17,885

Re: [SOLVED] Pacman error: failed retrieving file 'core.db', 'extra.db' ..

The connection to google is fine, what about:

curl -o /dev/null -v http://mirror.f4st.host/archlinux/core/os/x86_64/core.db

Offline

#8 2021-05-13 17:35:56

Cbhihe
Member
Registered: 2017-04-09
Posts: 228

Re: [SOLVED] Pacman error: failed retrieving file 'core.db', 'extra.db' ..

Corrected newly added server in Post #5 to full url path, e.g.: `Server = https://mirror.chaoticum.net/arch/` --->>  `Server = https://mirror.chaoticum.net/arch/$repo/os/$arch`.

Everything seems to be back to normal as of 2 days ago.    Don't know what was the initial issue as file signatures are optional and the addition from incomplete server urls is just a late copy/paste troubleshooting mistake of mine from 2 hours ago... 

Sorry for the noise.

Last edited by Cbhihe (2021-05-13 17:51:12)


I like strawberries, therefore I'm not a bot.

Offline

Board footer

Powered by FluxBB