You are not logged in.

#1 2017-05-18 12:10:56

gbry
Member
Registered: 2017-05-18
Posts: 7

[SOLVED] Pacman downloads corrupted database and packages

[bryan@ArchVue ~]$ sudo pacman -Syy
:: Synchronizing package databases...
 core                      39.2 KiB   784K/s 00:00 [######################] 100%
 extra                     39.2 KiB   784K/s 00:00 [######################] 100%
 community                 39.2 KiB   784K/s 00:00 [######################] 100%
 multilib                  39.2 KiB   784K/s 00:00 [######################] 100%
 archlinuxfr               15.2 KiB  55.1K/s 00:00 [######################] 100%

I know that it's not the right size, but nevertheless, pacman downloads all packages on this size.

EDIT : The issue is solved by regenerating the mirrorlist file using

curl -o /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/all/

and then edit

nano /etc/pacman.d/mirrorlist

then uncommenting the 3 servers from worldwide.

Last edited by gbry (2017-05-20 06:11:21)

Offline

#2 2017-05-18 12:12:54

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] Pacman downloads corrupted database and packages

behind some captive portal or similar? Run `file` on the databases  (also don't use [archlinuxfr]

Edit: also, tried to simply change mirror?

Last edited by Mr.Elendig (2017-05-18 12:13:09)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2017-05-18 13:07:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,525
Website

Re: [SOLVED] Pacman downloads corrupted database and packages

More likely the captive portal as archlinux.fr is not mirrored (AFAIK) so they main repos and that beast would be retrieved from different sources.  They are both failing, so the problem is on the local end.

EDIT: oops, the below is correct.  15K seemed small to me - but that does seem to be the size of the archlinux.fr database.

Last edited by Trilby (2017-05-18 16:12:52)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#4 2017-05-18 14:02:12

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED] Pacman downloads corrupted database and packages

archlinuxfr actually looks as though it worked given different speeds and download size that all the other repos.

I'm going to guess that running "file" on the database says it is an html file and if you look into it you will see an nginx 301 page.   Oddly specific!  smile

Offline

#5 2017-05-20 02:42:42

gbry
Member
Registered: 2017-05-18
Posts: 7

Re: [SOLVED] Pacman downloads corrupted database and packages

Ha, it is!

file /var/lib/pacman/sync/community.db
/var/lib/pacman/sync/community.db: HTML document, ASCII text, with very long lines

But anyway, tried to change mirror (it's as simple as deleting the ## before the country in the mirrorlist, right?)
But still, the same size was retrieved. I've also deleted the archlinuxfr repo, but no avail.

EDIT1 : So I opened the .db file, which, as we know, an HTML file, and one of the lines state that everytime pacman tries to download the databases, it gets redirected to a "page not found" page for my country. Strange. I'll try to use VPN.

Edit2 : Wait, so changing mirrorlist is uncommenting the (Server = ) line? If it is, then all my mirrors are already uncommented ._.)

Last edited by gbry (2017-05-20 02:54:35)

Offline

#6 2017-05-20 03:01:28

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Pacman downloads corrupted database and packages

If all your mirrors are currently uncommented, try commenting out the first one so that the second mirror will be used.  That way you can at least see if it is a mirror issue.  Make sure you do

pacman -Syy

to ensure pacman downloads all the files again.

Offline

#7 2017-05-20 05:44:21

gbry
Member
Registered: 2017-05-18
Posts: 7

Re: [SOLVED] Pacman downloads corrupted database and packages

circleface wrote:

If all your mirrors are currently uncommented, try commenting out the first one so that the second mirror will be used.  That way you can at least see if it is a mirror issue.  Make sure you do

pacman -Syy

to ensure pacman downloads all the files again.

so... commenting 100+ lines? Nah, thanks man.
But anyway, I always do

 pacman -Syy 

after every attempt to fix this issue using all the things I described above, and up until now, no go.

Haven't tried the vpn solution though.

Last edited by gbry (2017-05-20 05:57:30)

Offline

#8 2017-05-20 05:57:16

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED] Pacman downloads corrupted database and packages

Pacman is only using the top uncommented mirror of that file.  Comment it out to confirm it is not a single mirror that is an issue.

Offline

#9 2017-05-20 06:10:17

gbry
Member
Registered: 2017-05-18
Posts: 7

Re: [SOLVED] Pacman downloads corrupted database and packages

Sorry for being rude, Circleface.
Everyone, this is fixed by regenerating the mirrorlist file, therefore starting out fresh with the organized file, and I used the worldwide mirror. Sadly, I cannot say which mirror caused the trouble beforehand.

Offline

#10 2017-05-20 15:54:45

Rickrock
Member
From: The Netherlands
Registered: 2014-11-23
Posts: 46

Re: [SOLVED] Pacman downloads corrupted database and packages

Mr.Elendig wrote:

...also don't use [archlinuxfr]...

I've read this before, but may I ask why not?

Offline

#11 2017-05-20 22:47:47

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Pacman downloads corrupted database and packages

gbry wrote:

Sorry for being rude, Circleface.

No hard feelings smile

But what I meant was just comment out the first mirror, not all of them tongue

Offline

#12 2017-05-20 22:57:17

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [SOLVED] Pacman downloads corrupted database and packages

Rickrock wrote:
Mr.Elendig wrote:

...also don't use [archlinuxfr]...

I've read this before, but may I ask why not?

Contains packages that build against old repository versions, preventing successful updates, amongst other issues such as being a general tax on the community.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB