You are not logged in.

#1 2007-10-19 14:47:36

michalurban
Member
From: near Prague (CZE)
Registered: 2007-08-30
Posts: 13
Website

Pacman unable to connect

Im unable to upgrade my fresh installation of arch version 0.7.1 and pacman is unable to do so - it gets up-to-date lists but then it says "unable to connect" or "failed to retreive file". Network connection is ok, im even able to ping ftp.archlinux.org

I changed /etc/pacman.d/current to /etc/pacman..d/core, changed [current] to [core], added Server = ftp://ftp.archlinux.org/core/os/i686 to that file and changed everything abou current to core in pacman.conf.

The results stay unchanged.

Offline

#2 2007-10-19 14:59:36

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Pacman unable to connect

First of all, don't use ftp.archlinux.org

Second of all, try upgrading pacman directly first:

$ export MIRROR="ftp://ftp.archlinux.org" # change to some mirror close to you - look in /etc/pacman.d/core 
$ wget $MIRROR/core/os/i686/pacman-3.0.6-1-i686.pkg.tar.gz 
$ wget $MIRROR/core/os/i686/libarchive-2.2.6-2-i686.pkg.tar.gz 
$ wget $MIRROR/core/os/i686/libdownload-1.1-3-i686.pkg.tar.gz
$ sudo pacman -U pacman-3.0.6-1-i686.pkg.tar.gz libarchive-2.2.6-2-i686.pkg.tar.gz libdownload-1.1-3-i686.pkg.tar.gz

Last edited by Cerebral (2007-10-23 12:33:29)

Offline

#3 2007-10-22 22:53:05

Cogar
Member
Registered: 2007-07-22
Posts: 43

Re: Pacman unable to connect

As a comment, the last line, $ pacman -U pacman-3.0.6-1-i686.pkg.tar.gz libarchive-2.2.6-2-i686.pkg.tar.gz libdownload-1.1-3-i686.pkg.tar.gz, should be run as root (#). I do not think it will work as a user.

One other comment: If a person is upgrading from current, chances are they will not have a core file in /etc/pacman.d to examine. Still, looking in /etc/pacman.d/current, and substituting "core" for "current" in the path of the chosen ftp mirror will probably work fine.

Offline

#4 2007-10-23 12:34:01

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Pacman unable to connect

Cogar wrote:

As a comment, the last line, $ pacman -U pacman-3.0.6-1-i686.pkg.tar.gz libarchive-2.2.6-2-i686.pkg.tar.gz libdownload-1.1-3-i686.pkg.tar.gz, should be run as root (#). I do not think it will work as a user.

Oh, good call - yeah, I have 'pacman' aliased to 'sudo pacman' so I forget this step sometimes.  Example fixed.

Offline

Board footer

Powered by FluxBB