• "Can't refresh pacman databases" error 608586


    That error shows after long time ranking mirrors

  • This is new.

    Try to avoid ranking mirrors, open a terminal and run cnchi this way:
    sudo -E cnchi -dv --disable-rank-mirrors

    If it still does not work, we need to see cnchi’s log. It’s in /tmp/cnchi.log

    You can put it in paste2.org or a similar service and share here the url so we can see the log.

    Thanks!

  • 2017-05-17 15:35:11 [ERROR] pac.py(191) init_transaction(): Can’t init alpm transaction: transaction could not be initialized, pm_errno 10 (unable to lock database)

    If you have pamac or octopi running, please stop them.

    If you’re sure you’re not running any updater program (neither pacman itself), check if you have a file in /var/lib/pacman called db.lck.

    If you have it, delete it :sudo rm /var/lib/pacman/db.lck and try it again, please.

    Tell us if this fixes it or not.

    Cheers!

  • @Skipperio said in "Can't refresh pacman databases" error 608586:

    https://paste2.org/F092mjm6

    Looks like your DNS is not working? It can’t resolve mirror urls.

    Can you open a terminal and issue these commands
    nslookup mirrors.antergos.com and
    ping mirrors.antergos.com

    Put the results here, please.

    Thanks!

  • Hi,

    I do not understand what’s wrong. Your commands return what is expected, but alpm (pacman library) fails to connect to any antergos mirror:

    2017-05-18 09:55:01 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from repo.antergos.info : Resolving timed out after 10522 milliseconds
    2017-05-18 09:55:12 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirrors.antergos.com : Resolving timed out after 10521 milliseconds
    2017-05-18 09:55:22 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from sourceforge.net : Resolving timed out after 10524 milliseconds
    2017-05-18 09:55:33 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from wynsrv.antergos.info : Resolving timed out after 10522 milliseconds
    2017-05-18 09:55:43 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirrors.ustc.edu.cn : Resolving timed out after 10523 milliseconds
    2017-05-18 09:55:54 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirrors.tuna.tsinghua.edu.cn : Resolving timed out after 10521 milliseconds
    2017-05-18 09:56:04 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirror.bjtu.edu.cn : Resolving timed out after 10522 milliseconds
    2017-05-18 09:56:15 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirrors.nic.cz : Resolving timed out after 10520 milliseconds
    2017-05-18 09:56:25 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirrors.dotsrc.org : Resolving timed out after 10522 milliseconds
    2017-05-18 09:56:36 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from cinnarch.polymorf.fr : Resolving timed out after 10522 milliseconds
    2017-05-18 09:56:47 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from eu.mirrors.coltondrg.com : Resolving timed out after 10522 milliseconds
    2017-05-18 09:56:57 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from www.mirrorservice.org : Resolving timed out after 10522 milliseconds
    2017-05-18 09:57:08 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirror.de.leaseweb.net : Resolving timed out after 10520 milliseconds
    2017-05-18 09:57:18 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from ftp.cc.uoc.gr : Resolving timed out after 10523 milliseconds
    2017-05-18 09:57:29 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirror.nl.leaseweb.net : Resolving timed out after 10521 milliseconds
    2017-05-18 09:57:39 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from ftp1.nluug.nl : Resolving timed out after 10523 milliseconds
    2017-05-18 09:57:50 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from ftp2.nluug.nl : Resolving timed out after 10521 milliseconds
    2017-05-18 09:58:00 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from mirror.yandex.ru : Resolving timed out after 10523 milliseconds
    2017-05-18 09:58:11 [ERROR] pac.py(557) cb_log(): failed retrieving file 'antergos.db' from softlibre.unizar.es : Resolving timed out after 10523 milliseconds
    2017-05-18 09:58:15 [ERROR] process.py(128) run(): unable to update database, pm_errno 0 (unexpected error)
    

    Can you try to ping one of those mirrors? ping mirror.yandex.ru (for example).

    Could it be that you have a bad Internet connection? Or that gets off and on all the time?

    If you’re using wifi, can try to connect using an ethernet cable?

    Maybe somebody with more lan knowledge can help us

  • [[email protected] ~]$ ping mirror.yandex.ru
    PING mirror.yandex.ru (213.180.204.183) 56(84) bytes of data.
    64 bytes from mirror.yandex.ru (213.180.204.183): icmp_seq=1 ttl=51 time=65.6 ms
    64 bytes from mirror.yandex.ru (213.180.204.183): icmp_seq=2 ttl=51 time=66.2 ms
    64 bytes from mirror.yandex.ru (213.180.204.183): icmp_seq=3 ttl=51 time=66.5 ms
    64 bytes from mirror.yandex.ru (213.180.204.183): icmp_seq=4 ttl=51 time=66.9 ms
    64 bytes from mirror.yandex.ru (213.180.204.183): icmp_seq=5 ttl=51 time=66.5 ms
    ^C
    --- mirror.yandex.ru ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4006ms
    rtt min/avg/max/mdev = 65.684/66.412/66.932/0.415 ms
    
    

    It looks right but it starts to ping like after 6 secs and then it starts.
    I’m using Ethernet cable.

    http://www.speedtest.net/result/6307722892.png

  • These are fine numbers.

    I really don’t know what’s wrong.

    Can you try just one more time?

    Reboot and start with the live cd/usb, wait for Cnchi to open and update itself…

    When it is done (a bubble message is shown), close cnchi, open a terminal, check that you have Internet connection with a ping to a mirror, check that there is no db.lck with:
    sudo rm /var/lib/pacman/db.lck
    and then run Cnchi this way:
    sudo cnchi -dv

    Again, post the log to paste2 and the link here.

    To be honest, I’m really lost here. Your ADSL numbers are not astonishing but good enough for the installation.

  • Ok, I solved it by using Google DNS 8.8.8.8 and 8.8.4.4 in router

error165 pacman68 refresh18 databases4 Posts 11Views 442
Log in to reply