Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 32645  / 2 Years ago, sat, march 26, 2022, 5:15:21

When I try



sudo apt-get install openjdk-7-jdk


I got a message telling me that the package could not be found in database. I guess I'm missing repositories.



here's the content of sources.list file :



deb http://fr.archive.ubuntu.com/ubuntu/ saucy restricted universe multiverse 
deb http://fr.archive.ubuntu.com/ubuntu/ saucy-updates restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ saucy-security restricted universe multiverse
deb http://archive.canonical.com/ubuntu saucy partner
deb http://extras.ubuntu.com/ubuntu saucy main
deb http://fr.archive.ubuntu.com/ubuntu/ saucy-proposed restricted universe multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ saucy-backports restricted universe multiverse


Which is the repository to install openjdk 7. Thanks



When I do



sudo apt-get install -f 
apt-cache policy openjdk-7-jdk


I got this :



0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded  

openjdk-7-jdk:
Installé : (aucun)
Candidat : 7u51-2.4.4-0ubuntu0.13.10.1
Table de version :
7u51-2.4.4-0ubuntu0.13.10.1 0
500 http://archive.ubuntu.com/ubuntu/ saucy-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ saucy-security/main amd64 Packages
7u25-2.3.12-4ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages

More From » repository

 Answers
6

As JohnnyD said, add ppa:openjdk/ppa repository and then update it.After that, you can be able to install openjdk-7-jdk directly from that repository,



sudo add-apt-repository ppa:openjdk/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk


Edit :



sudo apt-get install aptitude && sudo aptitude install openjdk-7-jdk


and not choose to keep the current version of the conflicting packages.


[#26729] Sunday, March 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
epypian

Total Points: 130
Total Questions: 111
Total Answers: 113

Location: Romania
Member since Mon, Jun 6, 2022
2 Years ago
;