Pacman Problems

#1

I have newly installed manjaro on an old laptop and have encountered this issue when issueing a Pacman command.
[spyder@spyder-pc ~]$ sudo pacman -Syu
[sudo] password for spyder:
:: Synchronizing package databases…
error: failed retrieving file ‘core.db’ from manjaro.cybr.ca : The requested URL returned error: 404
error: failed retrieving file ‘core.db’ from ca.mirror.babylon.network : The requested URL returned error: 404
error: failed retrieving file ‘core.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed to update core (download library error)
error: failed retrieving file ‘extra.db’ from manjaro.cybr.ca : The requested URL returned error: 404
error: failed retrieving file ‘extra.db’ from ca.mirror.babylon.network : The requested URL returned error: 404
error: failed retrieving file ‘extra.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed to update extra (download library error)
error: failed retrieving file ‘community.db’ from manjaro.cybr.ca : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from ca.mirror.babylon.network : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed to update community (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)

Also when I try the GUI package updater it says "error invoking external downloader"
Its not my internet connection because I can browse with my browser.
I have tried deleting var/lib/pacman/db.lck multiple times and it doesnt solve my problem.

Any ideaS?

1 Like

#2

It’s a bug in pacman-mirrors. (If you’d searched the forum you could have already found the solution).

See this thread, for example:

1 Like

#3

refresh databases with sudo pacman-mirrors -g

3 Likes

#4

Well that seems to semi-fix it, enough that I can do the rest on my own. So thank you very much to everyone that posted.

To the person that said search the forum, I did and tried the solution from 4 or 5 different threads and a few from some arch fforum threads amongst other web forums before posting.

Irregardless, thank you very much.

0 Likes

#5

Scratch that, its not working… FML

I’ve also been atempting to manually edit my mirrorlist with no success

0 Likes

#6

[spyder-pc pacman.d]# sudo pacman-mirrors -g
:: Querying servers, this may take some time
=> Testing mirrors in Africa
==> 1.411 - http://mirror.is.co.za/mirrors/manjaro.org/stable/$repo/$arch
=> Testing mirrors in Australia
==> 0.473 - http://mirror.ventraip.net.au/Manjaro/stable/$repo/$arch
==> 0.487 - http://manjaro.uberglobalmirror.com/stable/$repo/$arch
==> 0.654 - http://manjaro.mirror.serversaustralia.com.au/stable/$repo/$arch
=> Testing mirrors in Austria
==> 0.453 - http://mirror.inode.at/manjaro/stable/$repo/$arch
=> Testing mirrors in Belarus
==> 0.288 - http://mirror.datacenter.by/pub/mirrors/manjaro/stable/$repo/$arch
=> Testing mirrors in Belgium
==> 0.307 - http://ftp.belnet.be/manjaro/stable/$repo/$arch
==> 0.774 - http://manjaro.cu.be/stable/$repo/$arch
=> Testing mirrors in Brasil
==> 0.321 - http://linorg.usp.br/manjaro/stable/$repo/$arch
=> Testing mirrors in Bulgaria
==> 0.271 - http://mirrors.netix.net/manjaro/stable/$repo/$arch
==> 0.272 - http://manjaro.ipacct.com/manjaro/stable/$repo/$arch
==> 0.553 - http://manjaro.telecoms.bg/stable/$repo/$arch
=> Testing mirrors in Canada
==> 0.126 - http://manjaro.cybr.ca/stable/$repo/$arch
==> 0.059 - http://ca.mirror.babylon.network/manjaro/stable/$repo/$arch
=> Testing mirrors in Chile
==> 0.682 - http://manjaro.dcc.uchile.cl/stable/$repo/$arch
==> 1.453 - http://doge.ing.puc.cl/Mirrors/Manjaro/stable/$repo/$arch
=> Testing mirrors in China
==> 0.527 - http://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch
==> 0.439 - http://ftp.cuhk.edu.hk/pub/Linux/manjaro/stable/$repo/$arch
==> 0.667 - http://mirrors.tuna.tsinghua.edu.cn/manjaro/stable/$repo/$arch
=> Testing mirrors in Colombia
==> 0.231 - http://mirror.edatel.net.co/manjaro/stable/$repo/$arch
=> Testing mirrors in Costa_Rica
==> 0.206 - http://mirrors.ucr.ac.cr/manjaro/stable/$repo/$arch
=> Testing mirrors in Czech
==> 0.272 - http://mirror.dkm.cz/manjaro/stable/$repo/$arch
=> Testing mirrors in Denmark
==> 0.265 - http://mirrors.dotsrc.org/manjaro/stable/$repo/$arch
==> 0.260 - http://www.uex.dk/repos/manjaro/stable/$repo/$arch
=> Testing mirrors in Ecuador
==> 0.264 - http://mirror.cedia.org.ec/manjaro/stable/$repo/$arch
==> 0.266 - http://mirror.uta.edu.ec/manjaro/stable/$repo/$arch
==> 0.272 - http://mirror.espoch.edu.ec/manjaro/stable/$repo/$arch
=> Testing mirrors in France
==> 0.232 - http://manjarolinux.polymorf.fr/stable/$repo/$arch
==> 0.229 - http://mirror.lignux.com/manjaro/stable/$repo/$arch
==> 0.308 - http://ftp.free.org/mirrors/repo.manjaro.org/repos/stable/$repo/$arch
==> 0.221 - http://fr.mirror.babylon.network/manjaro/stable/$repo/$arch
=> Testing mirrors in Germany
==> 0.263 - http://mirror.ragenetwork.de/manjaro/stable/$repo/$arch
==> 0.475 - http://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch
==> 0.273 - http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable/$repo/$arch
==> 0.224 - http://mirror.netzspielplatz.de/manjaro/packages/stable/$repo/$arch
==> 0.237 - http://mirror.netcologne.de/manjaro/stable/$repo/$arch
==> 0.731 - http://repo.rhindon.net/manjaro/stable/$repo/$arch

Error: Failed to reach server: [Errno 101] Network is unreachable
==> 0.117 - http://mirrors.cicku.me/manjaro/stable/$repo/$arch
==> 0.210 - http://repo.stdout.net/manjaro/stable/$repo/$arch
==> 0.264 - http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/stable/$repo/$arch
==> 0.228 - http://manjaro-mirror-a.alpix.eu/stable/$repo/$arch
=> Testing mirrors in Greece
==> 0.342 - http://ftp.cc.uoc.gr/mirrors/linux/manjaro/stable/$repo/$arch
=> Testing mirrors in Hungary
==> 0.435 - http://mirror.infotronik.hu/mirrors/pub/manjaro/stable/$repo/$arch
=> Testing mirrors in Indonesia
==> 0.506 - http://kambing.ui.ac.id/manjaro/stable/$repo/$arch
==> 0.542 - http://kartolo.sby.datautama.net.id/manjaro/stable/$repo/$arch
==> 0.813 - http://jaran.undip.ac.id/manjaro/stable/$repo/$arch
=> Testing mirrors in Ireland
==> 0.357 - http://ftp.heanet.ie/mirrors/manjaro/stable/$repo/$arch
=> Testing mirrors in Italy
==> 0.288 - http://manjaro.mirror.garr.it/mirrors/manjaro/stable/$repo/$arch
==> 0.288 - http://ba.mirror.garr.it/mirrors/manjaro/stable/$repo/$arch
==> 0.278 - http://ct.mirror.garr.it/mirrors/manjaro/stable/$repo/$arch
=> Testing mirrors in Japan
==> 0.325 - http://ftp.tsukuba.wide.ad.jp/Linux/manjaro/stable/$repo/$arch
==> 0.360 - http://ftp.riken.jp/Linux/manjaro/stable/$repo/$arch
=> Testing mirrors in Netherlands
==> 0.205 - http://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch
==> 0.206 - http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/$repo/$arch
==> 0.231 - http://nl.mirror.babylon.network/manjaro/stable/$repo/$arch
=> Testing mirrors in Philippines
==> 0.500 - http://mirror.rise.ph/manjaro/stable/$repo/$arch
=> Testing mirrors in Poland
==> 0.324 - http://mirror.chmuri.net/manjaro/stable/$repo/$arch
=> Testing mirrors in Portugal
==> 0.502 - http://ftp.dei.uc.pt/pub/linux/manjaro/stable/$repo/$arch
==> 0.252 - http://repo.barata.website/stable/$repo/$arch
=> Testing mirrors in Romania
==> 0.293 - http://mirrors.serverhost.ro/manjaro/packages/stable/$repo/$arch
==> 0.270 - http://ftp.lug.ro/manjaro/stable/$repo/$arch
=> Testing mirrors in Russia
==> 0.287 - http://mirror.yandex.ru/mirrors/manjaro/stable/$repo/$arch

Error: Failed to reach server: ftp error: timeout(‘timed out’,)
==> 2.046 - ftp://kibo.remi.lu/pub/stable/$repo/$arch
=> Testing mirrors in Singapore
==> 0.486 - http://download.nus.edu.sg/mirror/manjaro/stable/$repo/$arch
=> Testing mirrors in Sweden
==> 0.296 - http://ftp.lysator.liu.se/pub/manjaro/stable/$repo/$arch
==> 0.288 - http://mirror.zetup.net/manjaro/stable/$repo/$arch
=> Testing mirrors in Taiwan
==> 1.019 - http://free.nchc.org.tw/manjaro/stable/$repo/$arch
=> Testing mirrors in Turkey
==> 0.349 - http://ftp.linux.org.tr/manjaro/stable/$repo/$arch
=> Testing mirrors in United_Kingdom
==> 0.208 - http://repo.manjaro.org.uk/stable/$repo/$arch
==> 0.205 - http://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable/$repo/$arch
==> 0.204 - http://mirror.catn.com/pub/manjaro/stable/$repo/$arch
==> 1.194 - http://manjaro.mirrors.uk2.net/stable/$repo/$arch
=> Testing mirrors in United_States
==> 0.092 - http://mirror.dacentec.com/manjaro/stable/$repo/$arch
==> 0.099 - http://mirror.jmu.edu/manjaro/stable/$repo/$arch
==> 0.079 - http://mirror.solarvps.com/manjaro/stable/$repo/$arch
==> 0.054 - http://mirror.nexcess.net/manjaro/stable/$repo/$arch
==> 0.101 - http://distro.ibiblio.org/manjaro/stable/$repo/$arch
==> 0.081 - http://mirror.clarkson.edu/manjaro/stable/$repo/$arch
==> 0.146 - http://mirrors.ocf.berkeley.edu/manjaro/stable/$repo/$arch
=> Testing mirrors in Vietnam
==> 1.629 - http://mirror.freedif.org/Manjaro/stable/$repo/$arch
:: Writing mirror list
==> Germany : http://mirrors.cicku.me/manjaro/stable/$repo/$arch
==> Russia : ftp://kibo.remi.lu/pub/stable/$repo/$arch
:: Mirrorlist generated and saved to: /etc/pacman.d/mirrorlist
[spyder-pc pacman.d]# pacman -Syu
:: Synchronizing package databases…
error: failed retrieving file ‘core.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed retrieving file ‘core.db’ from kibo.remi.lu : Connection timed out after 10000 milliseconds
error: failed to update core (download library error)
error: failed retrieving file ‘extra.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed retrieving file ‘extra.db’ from kibo.remi.lu : Connection timed out after 10001 milliseconds
error: failed to update extra (download library error)
error: failed retrieving file ‘community.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed retrieving file ‘community.db’ from kibo.remi.lu : Connection timed out after 10000 milliseconds
error: failed to update community (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)
[spyder-pc pacman.d]# nano mirrorlist
[spyder-pc pacman.d]# pacman -Syu
:: Synchronizing package databases…
error: failed retrieving file ‘core.db’ from ftp.belnet.be : The requested URL returned error: 404
error: failed retrieving file ‘core.db’ from manjaro.cybr.ca : The requested URL returned error: 404
error: failed retrieving file ‘core.db’ from ca.mirror.babylon.network : The requested URL returned error: 404
error: failed retrieving file ‘core.db’ from ftp.cuhk.edu.hk : The requested URL returned error: 404
error: failed retrieving file ‘core.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed retrieving file ‘core.db’ from kibo.remi.lu : Connection timed out after 10001 milliseconds
error: failed to update core (download library error)
error: failed retrieving file ‘extra.db’ from ftp.belnet.be : The requested URL returned error: 404
error: failed retrieving file ‘extra.db’ from manjaro.cybr.ca : The requested URL returned error: 404
error: failed retrieving file ‘extra.db’ from ca.mirror.babylon.network : The requested URL returned error: 404
error: failed retrieving file ‘extra.db’ from ftp.cuhk.edu.hk : The requested URL returned error: 404
error: failed retrieving file ‘extra.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed retrieving file ‘extra.db’ from kibo.remi.lu : Connection timed out after 10001 milliseconds
error: failed to update extra (download library error)
error: failed retrieving file ‘community.db’ from ftp.belnet.be : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from manjaro.cybr.ca : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from ca.mirror.babylon.network : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from ftp.cuhk.edu.hk : The requested URL returned error: 404
error: failed retrieving file ‘community.db’ from mirrors.cicku.me : Failed to connect to mirrors.cicku.me port 80: Connection refused
error: failed retrieving file ‘community.db’ from kibo.remi.lu : Connection timed out after 10001 milliseconds
error: failed to update community (download library error)
error: failed to synchronize any databases
error: failed to init transaction (download library error)
[spyder-pc pacman.d]#

0 Likes

#7

try

wget https://repo.stdout.net/manjaro/stable/core/$(uname -m)/pacman-mirrorlist-20170319-1-any.pkg.tar.xz{,.sig}
## if there is no wget installed, use curl
curl --remote-name https://repo.stdout.net/manjaro/stable/core/$(uname -m)/pacman-mirrorlist-20170319-1-any.pkg.tar.xz --remote-name https://repo.stdout.net/manjaro/stable/core/$(uname -m)/pacman-mirrorlist-20170319-1-any.pkg.tar.xz.sig
sudo pacman -U pacman-mirrorlist-20170319-1-any.pkg.tar.xz
sudo pacman-mirrors --geoip -g
sudo pacman -Syyu

and please use

[code]
codeblocks
[/code]

Because It’s hard to read right now :joy:

3 Likes

#8

Sorry, I didn’t mean to be rude.

The cicku and kibo servers are known to be offline, but due to a bug pacman-mirrors only puts these two in the mirrorlist.

EDIT: Before you edit the mirrorlist or try Tids’ method, you might want to check if pacman-mirrors works with any (single or multiple) country other than Russia or Germany, preferably the one you are in or close to, with

sudo pacman-mirrors -c country

(you can get the country list from /etc/pacman.d/mirrors/, if you use multiple countries, separate only with commas no space)

1 Like

Pacman could not open file: sync files
#9

@41phafr34k [quote=“master_andreas, post:3, topic:20421, full:true”]
refresh databases with sudo pacman-mirrors -g
[/quote]
Exactly that is what is causing the problem. Read below why

0 Likes

#10

i’ve added a curl command, just in case. That should work.

0 Likes

#11

I got it all working. Thanks guys refreshing mirrors worked. Simple fix.

I got another problem, should i make a new thread.
Got a new hdd 1tb and set up ubuntu, a swap, then manjaro then windows 10 and next will be kali.
Obviously when i got to win10 the bootloader took over grub and i lost access to my linux distros. Once i get kali going the grub install from that might fix everything but in case it doesnt whats thw quickest way to fix grub? Boot into a live os and chroot into an existing partition for fixes?

Also in the past i cannot get manjaro and kali to coexist in the same system. Either kali bootloader overrides manjaro or the other way around. Updating grub from one or the other never gives me the additional os. In some way i always end up losing an os. Is there a reason for this?

0 Likes

#12

rEFInd. solved more problems then I had

0 Likes

closed #13
0 Likes