How to Install JDK 7 on Ubuntu 12.10 ?

June 5, 2015 946 views
Linux Commands Java

How to Install JDK 7 on Ubuntu 12.10 ?

I am getting these errors recently.

Err http://archive.ubuntu.com/ubuntu/ trusty-security/main dbus amd64 1.6.18-0ubuntu4.2

404 Not Found [IP: 91.189.91.23 80]

Err http://archive.ubuntu.com/ubuntu/ trusty-security/main libc-dev-bin amd64 2.19-0ubuntu6.3

404 Not Found [IP: 91.189.91.23 80]

Err http://archive.ubuntu.com/ubuntu/ trusty-security/main libc6-dev amd64 2.19-0ubuntu6.3

404 Not Found [IP: 91.189.91.23 80]

Fetched 89.6 MB in 8min 53s (168 kB/s)

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd-daemon0_204-5ubuntu20.8_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libsystemd-login0_204-5ubuntu20.8_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dbus/dbus_1.6.18-0ubuntu4.2_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/systemd-services_204-5ubuntu20.8_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libpam-systemd_204-5ubuntu20.8_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gtk+3.0/libgtk-3-common_3.10.8-0ubuntu1.2_all.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gtk+3.0/libgtk-3-0_3.10.8-0ubuntu1.2_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/libgudev-1.0-0_204-5ubuntu20.8_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-dev-bin_2.19-0ubuntu6.3_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-40.68_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6-dev_2.19-0ubuntu6.3_amd64.deb 404 Not Found [IP: 91.189.91.23 80]

1 Answer
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install openjdk-7-jre 
sudo apt-get install openjdk-7-jdk  

PS: You have a really old OS, how about updating it

Have another answer? Share your knowledge.