You are not logged in.
I use csslayer-aur-repo which is placed on googlecode.com server, however csslayer-aur-repo.googlecode.com sometimes returns IP of server which doesn't seem to have csslayer-aur-repo.db.tar.gz file. As a workaround i've put csslayer-aur-repo.googlecode.com in /etc/hosts with an IP which works just fine. I've tested it with wget and ping, and both of them seem to use this "new" IP address. However pacman seems to ignore /etc/hosts and picks that random IP which mostly leads to "404 not found" error when doing pacman -Syu/Syy/Sy.
Here is my /etc/hosts
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost Archie
209.85.135.82 csslayer-aur-repo.googlecode.com
# End of fileand here is the repo entry from pacman.conf:
[csslayer-aur-repo]
Server = http://csslayer-aur-repo.googlecode.com/filesOffline
Pacman surely does not deploy its own DNS servers... It resolves fine here with your config. Does wget http://csslayer-aur-repo.googlecode.com … .db.tar.gz work for you?
Offline
Yup, wget fetches http://csslayer-aur-repo.googlecode.com … .db.tar.gz just fine and it uses the IP specified in /etc/hosts.
Surely pacman does not deploy its own DNS server, but seems to ignore /etc/hosts. If i remove csslayer line from /etc/hosts then wget also will fail.
[hash@Archie ~]$ wget http://csslayer-aur-repo.googlecode.com/files/csslayer-aur-repo.db.tar.gz
--2010-07-26 18:54:29-- http://csslayer-aur-repo.googlecode.com/files/csslayer-aur-repo.db.tar.gz
Translacja csslayer-aur-repo.googlecode.com... 209.85.135.82
Łączenie się z csslayer-aur-repo.googlecode.com|209.85.135.82|:80... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 200 OK
Długość: 1190 (1,2K) [application/x-gzip]
Zapis do: `csslayer-aur-repo.db.tar.gz'
100%[=============================================================================================================================================================================>] 1.190 --.-K/s w 0,02s
2010-07-26 18:54:30 (72,5 KB/s) - zapisano `csslayer-aur-repo.db.tar.gz' [1190/1190]
[hash@Archie ~]$ pacman -Syu
:: Synchronizing package databases...
kde-unstable is up to date
core is up to date
extra is up to date
community is up to date
error: nie udało się pobrać pliku 'csslayer-aur-repo.db.tar.gz' z csslayer-aur-repo.googlecode.com : Not Found
error: failed to update csslayer-aur-repo (Not Found)Last edited by hash (2010-07-26 16:55:47)
Offline
I don't think that is happening. Just pointed my standard mirror to a google ip via /etc/hosts, and pacman -Syu fails downloading the database - so it does resolve to the ip specified in /etc/hosts. And with the exact config you pasted, pacman can find the csslayer-database here.
You could instruct pacman to use wget, not sure why it is not working for you though.
Offline
You're right pacman actually uses /etc/hosts (i just tried adding my standard mirror to /etc/hosts with 127.0.0.1 IP and it failed to update). Xfercommand with wget is a workaround - i use it for some time now. However i want to find out whats the problem with pacman's libfetch.
Offline