Try
pacman-key -u
No difference.
]]>Could you post the output of the following commands:
* ifconfig -a
* cat /etc/resolv.conf
* ping mirrors.kernel.org
* ping 8.8.8.8
* tail -50 /var/log/pacman.log
1)
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet6 fe80::ea9a:8fff:fe63:6190 prefixlen 64 scopeid 0x20<link>
ether e8:9a:8f:63:61:90 txqueuelen 1000 (Ethernet)
RX packets 6820 bytes 1956857 (1.8 MiB)
RX errors 48 dropped 1 overruns 0 frame 46
TX packets 3693 bytes 398312 (388.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 1 collisions 48
device interrupt 43
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 metric 1
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 26 bytes 2052 (2.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 26 bytes 2052 (2.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1492 metric 1
inet 49.0.145.198 netmask 255.255.255.255 destination 8.8.8.8
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 3103 bytes 1539691 (1.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3589 bytes 312371 (305.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500 metric 1
ether d0:df:9a:30:2d:8e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2)
nameserver 202.72.241.5
nameserver 203.34.37.3
3)
PING mirrors.us.kernel.org (149.20.4.71) 56(84) bytes of data.
64 bytes from mirrors2.kernel.org (149.20.4.71): icmp_req=1 ttl=53 time=241 ms
64 bytes from mirrors2.kernel.org (149.20.4.71): icmp_req=2 ttl=53 time=242 ms
64 bytes from mirrors2.kernel.org (149.20.4.71): icmp_req=3 ttl=53 time=242 ms
^C
--- mirrors.us.kernel.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 241.653/242.080/242.345/0.504 ms
4)
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=255 time=10.3 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=255 time=11.4 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=255 time=210 ms
64 bytes from 8.8.8.8: icmp_req=4 ttl=255 time=7.34 ms
64 bytes from 8.8.8.8: icmp_req=5 ttl=255 time=10.6 ms
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 7.349/50.062/210.542/80.252 ms
5)
[2012-02-06 17:58] Running 'pacman -Rdd package-query'
[2012-02-06 17:59] removed package-query (0.9-1)
[2012-02-06 17:59] Running 'pacman -Syu'
[2012-02-06 17:59] synchronizing package lists
[2012-02-06 18:11] upgraded linux-api-headers (3.0.1-1 -> 3.1.6-1)
[2012-02-06 18:11] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
[2012-02-06 18:11] Generating locales...
[2012-02-06 18:11] en_US.UTF-8... done
[2012-02-06 18:11] en_US.ISO-8859-1... done
[2012-02-06 18:11] Generation complete.
[2012-02-06 18:11] upgraded glibc (2.14-6 -> 2.15-4)
[2012-02-06 18:11] upgraded libarchive (2.8.5-2 -> 3.0.3-3)
[2012-02-06 18:11] installed pth (2.0.7-4)
[2012-02-06 18:11] installed gnupg (1.4.12-1)
[2012-02-06 18:11] installed libksba (1.2.0-1)
[2012-02-06 18:11] installed libassuan (2.0.3-1)
[2012-02-06 18:11] installed pinentry (0.8.1-3)
[2012-02-06 18:11] installed dirmngr (1.1.0-3)
[2012-02-06 18:11] installed gnupg2 (2.0.18-1)
[2012-02-06 18:11] installed gpgme (1.3.1-2)
[2012-02-06 18:11] >>> Run `pacman-key --init` to set up your pacman keyring.
[2012-02-06 18:11] upgraded pacman (3.5.4-4 -> 4.0.1-4)
[2012-02-06 18:12] Running 'pacman -S firefo'
[2012-02-06 18:13] Running 'pacman -S firefox'
[2012-02-06 18:13] Running 'pacman -S package-query'
[2012-02-06 18:13] Running 'pacman -Syu'
[2012-02-06 18:13] synchronizing package lists
* ifconfig -a
* cat /etc/resolv.conf
* ping mirrors.kernel.org
* ping 8.8.8.8
* tail -50 /var/log/pacman.log
Well, let's be serious again: I'd go for some kind of PGP-error.
Try
pacman-key -u
Did the ping work?
yep.
]]>Check if you can approach the mirrors "manually". For example try to wget one of the files (wget http://mirrors.kernel.org/archlinux/cor … 6/core.db).
]]>Maybe, it's this problem?
Q: Pacman cannot find PGP keys to import nor update packages. How can I fix this?
A: The problem is not actually with pacman. It is the default key server's fault. Solve this by changing the default key server to a more reliable one like this:
# sed -i '/keyserver/ s,keys.gnupg.net,pgp.mit.edu,' /etc/pacman.d/gnupg/gpg.conf
Pacman4 is now ready for use.
For package query (and yaourt), in case you didn't solve the problem alrdy, you have to remove both packages, update pacman to 4.0 and then reinstall the updated packages from AUR manually.
]]>