PDA

View Full Version : Pacman Issues



jjte
May 17th, 2008, 10:47 AM
Earlier today, I decided to jump into Arch, it was relatively easy to set up, even wireless went without a hitch, pacman, however, is proving itself to be a big problem.

First off, /etc/pacman.d/mirrorlist doesn't exist, I even reinstalled Arch incase I had screwed something up on my original install, still, I have no mirrorlist file.
In both installs, I specified the mirror I wanted in the installer.

When I run
pacman -Syy it hangs at
::Synchronizing package databases and eventually outputs
error: failed retrieving file 'core.db.tar.gz' from mirror.pacific.net.au : Connection timed out
error: failed to synchronize core: Connection timed out.

I can ping a variety of sites, including the mirror pacman is trying to connect to.

Any help would be much appreciated.

MONODA
May 17th, 2008, 11:08 AM
try selecting a different mirror and putting it at the top in /etc/pacman.d/mirrorlist. You can also use the rankmirrors script to rank the mirrors by response time.
EDIT: remember to do a pacman -Syy after changing your mirrors

jjte
May 17th, 2008, 11:24 AM
pacman -Syy hangs, and I don't know where exactly I would change the mirror, considering I have no /etc/pacman.d/mirrorlist , and rankmirrors requires python, which doesn't come on the ISO, and I cant install.

MONODA
May 17th, 2008, 11:28 AM
Oh I didnt know that you are on a fresh installation, in that case, follow the beginners guide on the arch wiki.

jjte
May 17th, 2008, 11:33 AM
I'll take that as honest help, although it really does frustrate me when people tell me too look through a guide which has no help for my problem.
I have looked through the beginners guide over and over agian, there is nothing in there about pacman hanging, or a lack of a mirrorlist file.

MONODA
May 17th, 2008, 11:49 AM
I will give you my /etc/pacman.d/mirrorlist file and my /etc/pacman.conf but keep in mind that in order to get a fully functioning system you should follow the beginners guide closely from beginning to end, there is a lot of good stuff in there. Anyway here is /etc/pacman.d/mirrorlist:http://pastebin.com/m5fba9bf5 and /etc/pacman.conf: http://pastebin.com/d7e9b08f3 keeo in mind that this should just be a guideline as to what your files should look like.

jjte
May 17th, 2008, 11:56 AM
Thanks for your files, although I won't use them at this point, I'll try and get mine working first.

I understand you reccommending the Beginners guide, but all the advice it gives is pointless if you don't have the files referenced.

I have made a little progress by uncommenting
XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u but it seems that arch is resolving the mirror to the IP 1.0.0.0, then it times out.

MONODA
May 17th, 2008, 12:04 PM
srry I dont know what to do, but considering that you havent done much so far, wouldnt it be easier to just reinstall? I had to reinstall a few times before I finally got everything right.

jjte
May 17th, 2008, 12:06 PM
When I reinstall, which I have done, I am at the exact state I was in in the original post, internet working, but no Pacman/

MONODA
May 17th, 2008, 12:20 PM
even immediatly after a fresh installation? make sure that in /etc/pacman.conf, the mirrorlist chosen is /etc/pacman.d/mirrorlist. so it should look like:

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

jjte
May 17th, 2008, 12:39 PM
Yep, that's what my /etc/pacman.conf looks like, but no /etc/pacman.d/mirrorlist.

It looks like I have seperate mirrorlists for each repository, Core, unstable, untested, community etc.

MONODA
May 17th, 2008, 12:43 PM
yes that is how it was a while ago but recently they have changed it to have the entries in /etc/pacman.conf refer to /etc/pacman.d/mirrorlist . You should try and copy mine and see if that works.

jjte
May 17th, 2008, 12:50 PM
Due to pacman not working, I'm unable to get a web browser working to copy your one.

Is it possible I've gone and downloaded an old version? I just used the torrent link on the "Get Arch" page.
My pacman.conf file refers to /etc/pacman.d/mirrorlist, but mirrorlist doesn't exist...

Edit: "Archlinux-i686-2007.08-2.core.iso" is the file name of the ISO I burnt.

MONODA
May 17th, 2008, 01:04 PM
Links is supposed to come with arch so you can use that. If it is not available, download the RC of archlinux 2008, that is what I used. good luck

jjte
May 17th, 2008, 01:07 PM
Thanks for the help, a user on the Arch forums told me to get the RC iso too, I'm halfway finished the download now.

Because of all this rolling release stuff, is this really a testing version?

MONODA
May 17th, 2008, 01:10 PM
no, only the installation script (which is almost exactly like the old one) and the live cd part are considered RC.
EDIT: I the packages are just a more recent version which you would have recieved if you had used the 2007 disk and upgraded from there.

jjte
May 17th, 2008, 02:22 PM
I've just installed using the newer ISO, and while I now have a /etc/pacman.d/mirrorlist, it still hangs and times out.

MONODA
May 17th, 2008, 02:49 PM
make sure that in /etc/pacman.conf, the mirrorlist you want is refered to like in my example before.

odiseo77
May 17th, 2008, 04:47 PM
I've just installed using the newer ISO, and while I now have a /etc/pacman.d/mirrorlist, it still hangs and times out.

Did you uncomment the servers you want to use in /etc/pacman.d/mirrorlist ? I don't see other reason for pacman to time out (unless you have some problem with your network).

jjte
May 18th, 2008, 02:19 AM
The server I selected in setp is uncommented, and I can ping it.

The same problem happens with any server.

MONODA
May 18th, 2008, 06:30 AM
ok first I suggest that you ask around on the arch linux forums, it is great. second, what does pacman -Sy give you?

phil90
June 3rd, 2008, 02:04 PM
Hello


I don't know what ISO you are using to install Arch but when I used the 2008-04 I had the same problem. When I use the 2008-03 Iso I don't have that problem.

crimesaucer
June 3rd, 2008, 04:27 PM
This is a bit older of an Arch guide that I used when I installed Archlinux-i686-2007.08-2.core.iso: http://www.raiden.net/?cat=2&aid=276&pid=7

This page 7 has details about the pacman.d and the server list. Also, read the notes that pacman will print out for you, it usually has all of the new details of any changes for the .conf files that you will have to make.

Read the whole guide (with pictures), and make sure you did all of your conf files correctly.

skip mcshwang
July 2nd, 2008, 11:52 AM
Did you find the answer to this? I have the same problem.

Followed the Beginners Guide exactly but pacman says "Connection timed out" no matter which mirror I choose.

fwojciec
July 2nd, 2008, 08:40 PM
Did you find the answer to this? I have the same problem.

Followed the Beginners Guide exactly but pacman says "Connection timed out" no matter which mirror I choose.

Do you have a working network connection? Can you ping google, for example?

skip mcshwang
July 2nd, 2008, 11:41 PM
I can ping google and the mirrors.

Dr Small
July 3rd, 2008, 01:48 AM
Sorry, I haven't read the entire thread. But have you tried:

pacman -Sy

??

skip mcshwang
July 3rd, 2008, 07:51 AM
Dr Small, that's where I got snagged in the beginners guide, it says to update your system by typing pacman -Sy. It wouldn't connect so I tried skipping that part and installing libgl, xorg etc. but it says


error 'libgl': not found in sync db

YodaMstr
July 6th, 2008, 04:44 AM
The first time I installed Arch, I remembered getting hung up on pacman. I'm not entirely sure if it's the same thing being referred to here, but I remember it had something to do with how I was following the beginner's guide. The guide's been updated since then, but try updating pacman using the archlinux.org server. The guide had me set my mirrorlist and then run a full-system update, but the version of pacman I had was outdated and didn't refer to /etc/pacman.d/mirrorlist. I don't see how this would be a problem on a release-candidate version, but I figured I'd mention it to see if it helps.

jjte
July 7th, 2008, 12:26 PM
I got it working a while ago, and forgot to update this post.
Turns out that in /etc/rc.conf the default gateway was set to 192.168.0.1 when it needed to be set to 192.168.1.1.

skip mcshwang
July 10th, 2008, 02:47 PM
jjte, you're right on the money, the problem was with the gateway!

Thanks everyone for your help!

LookTJ
July 11th, 2008, 08:24 PM
I got it working a while ago, and forgot to update this post.
Turns out that in /etc/rc.conf the default gateway was set to 192.168.0.1 when it needed to be set to 192.168.1.1.just for your information, the gateway doesn't necessary need to be set. That is, only if you use DHCP. :)

curly_
August 18th, 2008, 03:02 PM
I had an issue very similar, and to solve it I used the DNS from my ISP, rather than my network one, if that makes sense.