Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install openjdk on an Ubuntu 11.04 VM in a Mac. However, I'm running into 404 errors on the command line which I can't diagnose why.

sudo apt-get install openjdk-6-jre-headless
...
Err http://ph.archive.ubuntu.com/ubuntu/ natty-updates/main openjdk-6-jre-lib all 6b22-1.10.2-0ubuntu1~11.04.1
404  Not Found [IP: 10.16.3.143 8080]
Err http://ph.archive.ubuntu.com/ubuntu/ natty-updates/main tzdata-java all 2011g-0ubuntu0.11.04
404  Not Found [IP: 10.16.3.143 8080]
Err http://security.ubuntu.com/ubuntu/ natty-security/main openjdk-6-jre-lib all 6b22-1.10.2-0ubuntu1~11.04.1
404  Not Found [IP: 10.16.3.141 8080]
Err http://security.ubuntu.com/ubuntu/ natty-security/main openjdk-6-jre-headless i386 6b22-1.10.2-0ubuntu1~11.04.1
404  Not Found [IP: 10.16.3.141 8080]
Err http://security.ubuntu.com/ubuntu/ natty-security/main icedtea-6-jre-cacao i386 6b22-1.10.2-0ubuntu1~11.04.1
404  Not Found [IP: 10.16.3.141 8080]
Err http://security.ubuntu.com/ubuntu/ natty-security/main icedtea-6-jre-jamvm i386 6b22-1.10.2-0ubuntu1~11.04.1
...

But if I ping

ping 10.16.3.141
PING 10.16.3.141 (10.16.3.141) 56(84) bytes of data.
64 bytes from 10.16.3.141: icmp_req=1 ttl=63 time=1.55 ms
64 bytes from 10.16.3.141: icmp_req=2 ttl=63 time=3.22 ms
64 bytes from 10.16.3.141: icmp_req=3 ttl=63 time=4.00 ms
64 bytes from 10.16.3.141: icmp_req=4 ttl=63 time=174 ms
64 bytes from 10.16.3.141: icmp_req=6 ttl=63 time=4.16 ms
64 bytes from 10.16.3.141: icmp_req=7 ttl=63 time=2.19 ms
64 bytes from 10.16.3.141: icmp_req=8 ttl=63 time=4.98 ms
64 bytes from 10.16.3.141: icmp_req=9 ttl=63 time=3.81 ms
64 bytes from 10.16.3.141: icmp_req=10 ttl=63 time=6.09 ms
64 bytes from 10.16.3.141: icmp_req=11 ttl=63 time=3.89 ms
64 bytes from 10.16.3.141: icmp_req=12 ttl=63 time=3.86 ms
64 bytes from 10.16.3.141: icmp_req=13 ttl=63 time=0.009 ms
64 bytes from 10.16.3.141: icmp_req=14 ttl=63 time=3.99 ms
^C
--- 10.16.3.141 ping statistics ---
14 packets transmitted, 13 received, 7% packet loss, time 13047ms
rtt min/avg/max/mdev = 0.009/16.610/174.132/45.496 ms

Any ideas? Is this my network's problem?

share|improve this question
1  
try pinging the repos...they themselves might be unavailable... –  Vineet Menon Dec 1 '11 at 6:41
add comment

2 Answers 2

Try running apt-get update first. It's possible the sources have changed. If you can download other packages (try apt-get install zip or something similar), then the package just isn't there.

share|improve this answer
add comment

ping is a software with a particular behaviour, has nothing to do with the services offered by a server, another thing to know about ping is that the receiver can forbid the use of this utility so you can be not able to ping, basically a ping means approximately nothing, it's an average value that has to be interpreted, surely has nothing to do with services and other protocols.

In your case you are probably facing a machine reboot or ongoing maintenance.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.