Wednesday 20 October 2010

Proxy problem with pacman

Recently, I was accessing internet from behind a firewall so I had set http and ftp proxy environment variables. When I ran

pacman -Syu

it could download the database updates for the system packages; but could not retrieve the packages and hung up. I found that wget was able to use the proxy fine. So, I tried

pacman --debug -S mkvtoolnix

to see what was happening and found that it was stuck after detecting the proxy. As wget was working, I tried uncommenting the following line in pacman.conf.

#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

This time the upgrade was smooth and I upgraded 66 packages.

1 comment:

Yossarian UK said...

I had the exact same problem from the (absolute shit) firewall at my work office - it used to cut off downloads at random - Also it screwed up getting the repo lists...

Again

XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

worked for me...

Just goes to show how versatile arch/pacman is....