0

Trying to install old Java 6 to Debain Lenny:

sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-bin

Got error:

Coudn't find package  sun-java6-jdk

Sources list:

deb http://archive.debian.org/debian-archive/debian/ lenny main contrib non-free     
deb http://archive.debian.org/debian-security/ lenny/updates main contrib non-free
2

Run apt-cache search sun-java6-jdk and you should see the exact package name you'll need to specify.

And your error message looks a little fishy:

Coudn't find package  sun-java6-jdk

If there really are two space characters after the word "package", it might mean you've accidentally typed Alt-Space or some other invisible character into the beginning of the package name. That might explain the issue. If that's the case, you'll need to type the command again: a version recalled from the command history will just have the same problem again.

|improve this answer|||||
  • The package list of the archive repository can be viewed using a web browser: archive.debian.org/debian-archive/debian/pool/non-free/s/… has the packages named like sun-java6*, and there is a package for Lenny. However, the version number may or may not be designated as part of the official package name, so that's why I asked to try apt-cache search sun-java6-jdk first. – telcoM Jun 10 '18 at 10:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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