I have to install jdk in my Ubuntu 17.04v it will display the error like unable to locate package default -jdk
Asked
Active
Viewed 44 times
1 Answers
1
Either update to a newer ubuntu release, or you can do this :
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
then :
sudo apt-get update && sudo apt-get dist-upgrade
thus your /etc/apt/sources.list should look like this :
deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main
deb http://old-releases.ubuntu.com/ubuntu/ zesty-backports main
deb http://old-releases.ubuntu.com/ubuntu zesty-security main
deb http://old-releases.ubuntu.com/ubuntu zesty main universe restricted multiverse
You should then be able to install the package. If you are still having trouble then make sure you have the correct package name. Do a search on :
TelamonAegisthus
- 361