You are not logged in.

#1 2012-03-23 04:46:55

rnarch
Member
Registered: 2012-03-17
Posts: 292

pacman not able to download files[SOLVED]

I am trying to install some packages but pacman is not working even though browser is. The error is as follows:

error: failed retrieving file 'libgtop-2.28.4-1-i686.pkg.tar.xz' from mirror.aarnet.edu.au : Could not resolve host: mirror.aarnet.edu.au; Unknown error
warning: failed to retrieve some files from extra

Same thing is happening for all files and with different mirrors. I have tried changing the mirrorlist file in /etc/pacman.d/ folder.

Last edited by rnarch (2012-03-23 05:27:43)

Offline

#2 2012-03-23 04:48:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: pacman not able to download files[SOLVED]

can you ping mirror.aarnet.edu.au ?  I can.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2012-03-23 04:55:30

w0ng
Member
From: Australia
Registered: 2009-06-04
Posts: 88
Website

Re: pacman not able to download files[SOLVED]

aarnet's my main mirror. confirmed that mirror is up and installing libgtop from aarnet works.
try running pacman -Syy

Offline

#4 2012-03-23 04:56:50

rnarch
Member
Registered: 2012-03-17
Posts: 292

Re: pacman not able to download files[SOLVED]

No:

# ping mirror.aarnet.edu.au
ping: unknown host mirror.aarnet.edu.au
# ping http://mirror.aarnet.edu.au
ping: unknown host http://mirror.aarnet.edu.au

I can open this link in browser.

Last edited by rnarch (2012-03-23 04:58:06)

Offline

#5 2012-03-23 05:04:19

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: pacman not able to download files[SOLVED]

Can you ping 202.158.214.106  (That is how mirror.aarnet.edu.au resolves on this system)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2012-03-23 05:06:56

rnarch
Member
Registered: 2012-03-17
Posts: 292

Re: pacman not able to download files[SOLVED]

Yes:
$ ping 202.158.214.106

PING 202.158.214.106 (202.158.214.106) 56(84) bytes of data.
64 bytes from 202.158.214.106: icmp_req=1 ttl=45 time=370 ms
64 bytes from 202.158.214.106: icmp_req=2 ttl=45 time=401 ms
64 bytes from 202.158.214.106: icmp_req=3 ttl=45 time=489 ms
^C
--- 202.158.214.106 ping statistics ---
4 packets transmitted, 3 received, 25% packet loss, time 3003ms
rtt min/avg/max/mdev = 370.636/420.513/489.592/50.425 ms

Offline

#7 2012-03-23 05:10:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: pacman not able to download files[SOLVED]

How is your network configured?  Are you running through a local router?

Please post the output of /etc/resolv.conf
On my system (Which is part of a private network with a router that acts as a DNS server for the local network)

ewaller@odin:~/test 1076 %cat /etc/resolv.conf 
# Generated by NetworkManager
nameserver 192.168.1.1
ewaller@odin:~/test 1077 %

You are having DNS issues


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2012-03-23 05:16:45

rnarch
Member
Registered: 2012-03-17
Posts: 292

Re: pacman not able to download files[SOLVED]

Through dhcp.

$ cat /etc/resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line

Offline

#9 2012-03-23 05:27:15

rnarch
Member
Registered: 2012-03-17
Posts: 292

Re: pacman not able to download files[SOLVED]

I checked rc.conf file again and it was on a static IP address (must have changed while setting network). I have changed back to dhcp and pacman is working all right. I am marking this thread as solved. Many thanks for your help.

Offline

#10 2012-03-23 05:28:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: pacman not able to download files[SOLVED]

Try this (if you are running as a normal user who is a member of wheel)

sudo bash -c "echo 8.8.8.8 >> /etc/resolv.conf"

Or, since you run as root,

echo 8.8.8.8 >> /etc/resolv.conf

Then try ping mirror.aarnet.edu.au

How is your network configured?  Are you running through a local router?

Well, I did not express myself well.  Is this a wired network? Is this a DSL, Cable Modem, Dial up, Other?  Do you have a router in your house? is it what provides the IP address? Does it act as a DNS server?  Can you log into the router?  What is it using for its DNS server?

The 8.8.8.8 is a Goggle DNS server.  We are configuring your system to use it for the time being.  It will go away the next time you get an IP from the DHCP server.

Edit: Never mind

Last edited by ewaller (2012-03-23 05:43:55)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2012-03-23 07:44:37

rnarch
Member
Registered: 2012-03-17
Posts: 292

Re: pacman not able to download files[SOLVED]

Thanks for the very useful info about google dns server and about resolv.conf; can be very useful if there is a dns problem.

Can we specify that the dns address in rc.conf or in any other file, so that it remains same and not dependent on dhcp?  Will it be affected if we are using a static IP or a dynamic IP? Can we use 8.8.8.8 as dns address all the time?
Thanks for your replies.

Last edited by rnarch (2012-03-23 08:48:59)

Offline

Board footer

Powered by FluxBB