You are not logged in.

#1 2011-12-09 12:25:44

Calin Leafshade
Member
Registered: 2011-11-28
Posts: 8

[SOLVED] Pacman no longer updates or installs packages.

When running pacman it stalls just before it downloads anything.

steve@arch ~ $ sudo pacman -Syy
:: Synchronising package databases...
steve@arch ~ $ sudo pacman -S zathura
resolving dependencies...
looking for inter-conflicts...

Targets (1): zathura-0.0.8.5-4

Total Download Size:    0.04 MB
Total Installed Size:   0.11 MB

Proceed with installation? [Y/n] 
:: Retrieving packages from community...

Thats as far as it gets.

It doesnt seem to totally hang since it will respond to ctrl+c after 30 seconds or so

Any ideas?

Last edited by Calin Leafshade (2011-12-09 15:03:20)

Offline

#2 2011-12-09 12:35:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Pacman no longer updates or installs packages.

What's the output of

pacman -Syu --debug

Offline

#3 2011-12-09 13:00:14

Glinx
Member
Registered: 2010-10-12
Posts: 34

Re: [SOLVED] Pacman no longer updates or installs packages.

Strange, same problem for me after pacman -Syy
My --debug

[gavin@gavin-desktop ~]$ sudo pacman -Syy --debug
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: SyncFirst: pacman
debug: config: Architecture: x86_64
debug: config: new section 'core'
debug: registering sync database 'core'
debug: config file /etc/pacman.conf, line 65: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'core': http://archlinux.mirrors.uk2.net/core/os/x86_64
debug: adding new server URL to database 'core': ftp://mirror.archlinux.fi/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': ftp://mirror.rit.edu/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': ftp://ftp.archlinux.org/core/os/x86_64
debug: adding new server URL to database 'core': http://archlinux.limun.org/core/os/x86_64
debug: adding new server URL to database 'core': ftp://mirrors.kernel.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': http://mirrors.kernel.org/archlinux/core/os/x86_64
debug: setlibpaths() called
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: registering sync database 'extra'
debug: config file /etc/pacman.conf, line 68: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'extra': http://archlinux.mirrors.uk2.net/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://mirror.archlinux.fi/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://mirror.rit.edu/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://ftp.archlinux.org/extra/os/x86_64
debug: adding new server URL to database 'extra': http://archlinux.limun.org/extra/os/x86_64
debug: adding new server URL to database 'extra': ftp://mirrors.kernel.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': http://mirrors.kernel.org/archlinux/extra/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: registering sync database 'community'
debug: config file /etc/pacman.conf, line 74: including /etc/pacman.d/mirrorlist
debug: config: attempting to read file /etc/pacman.d/mirrorlist
debug: adding new server URL to database 'community': http://archlinux.mirrors.uk2.net/community/os/x86_64
debug: adding new server URL to database 'community': ftp://mirror.archlinux.fi/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': ftp://mirror.rit.edu/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': ftp://ftp.archlinux.org/community/os/x86_64
debug: adding new server URL to database 'community': http://archlinux.limun.org/community/os/x86_64
debug: adding new server URL to database 'community': ftp://mirrors.kernel.org/archlinux/community/os/x86_64
debug: adding new server URL to database 'community': http://mirrors.kernel.org/archlinux/community/os/x86_64
debug: config: finished parsing /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
:: Synchronising package databases...
debug: database path for tree local set to /var/lib/pacman/local/
debug: local database version 2
debug: no file found matching criteria, starting from scratch
debug: using 'core.db' for download progress
debug: HTTP_PROXY: (null)
debug: http_proxy: (null)
debug: FTP_PROXY:  (null)
debug: ftp_proxy:  (null)
^C
Interrupt signal received
debug: returning error 27 from alpm_trans_interrupt : operation not compatible with the transaction type

debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'

Thank you for any help

Offline

#4 2011-12-09 13:13:49

poiuyt23
Member
Registered: 2011-10-12
Posts: 76

Re: [SOLVED] Pacman no longer updates or installs packages.

If you are behind a proxy sudo will lose your environment variables (like your proxy settings) so try sudo -E or just su to root instead and see what happens.

Offline

#5 2011-12-09 13:28:51

Glinx
Member
Registered: 2010-10-12
Posts: 34

Re: [SOLVED] Pacman no longer updates or installs packages.

No luck. Still the same error.
Ive also tried reinstalling pacman following https://wiki.archlinux.org/index.php/Pacman.
Strange one this, it worked last week!

Offline

#6 2011-12-09 13:31:18

Pierre_Buard
Member
From: France
Registered: 2009-03-02
Posts: 5
Website

Re: [SOLVED] Pacman no longer updates or installs packages.

I had exactly the same problem: similar debug output and, most of all, the same uk2.net mirror. Changing it was the solution.

Try with only the following line in your /etc/pacman.d/mirrorlist

Server = http://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/$arch

Last edited by Pierre_Buard (2011-12-09 13:32:23)

Offline

#7 2011-12-09 13:40:39

Glinx
Member
Registered: 2010-10-12
Posts: 34

Re: [SOLVED] Pacman no longer updates or installs packages.

That worked. Merci beaucoup Pierre.
The uk2.net mirror must be having a bad week!
Best wishes to all.

Offline

#8 2011-12-09 14:19:19

Calin Leafshade
Member
Registered: 2011-11-28
Posts: 8

Re: [SOLVED] Pacman no longer updates or installs packages.

Yep, same problem and solution for me too.

This should probably be marked as a bug. Pacman shouldn't fail due to a bad mirror.

Thanks

Last edited by Calin Leafshade (2011-12-09 14:21:19)

Offline

#9 2011-12-09 14:32:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Pacman no longer updates or installs packages.

Depends what do you call "a bad mirror". Feel free to open a bug report if there's none already for this issue.

When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

Please remember to mark this thread as solved.

Offline

Board footer

Powered by FluxBB