I'm a Archlinux user. I have had trouble in pacman for 2 weeks. And I can't decide it's the problem of the network or pacman.
I use virtualbox and have some virtual archlinux machines. Since last week in the office, whenever I run "pacman -Syu" I always get the "network is unreachable" error. I can ping the web address, I can ping the ip, I can browser the mirror sites and download the files. But whenever I run "pacman -Syu" I got the "network is unreachable" error!
Then I copied these virtual machines home and install them on my own virtualbox, "pacman -Syu" works without any error. I copied the vdi files back to office, got the same "network is unreachable" error. I copy them home, worked flawlessly...
It's driving me crazy, I have no clue where things went wrong.
I was so careless, there is nothing wrong about the virtual machines. The problem was the network configuration on the host machine. Please delete this post if its being misleading.