My last post on the subject is here, but one problem with that approach is that it won't update automatically with apt-get update/upgrade. However, it seems that java 1.6 is also available in backports, so just add backports.org to sources.list:
emacs /etc/apt/sources.list
And add the line
deb http://www.backports.org/debian etch-backports main contrib non-free
Then install it with
aptitude update
aptitude -t etch-backports install sun-java6-jdk
And select the new java version:
update-alternatives --config java
Subscribe to:
Post Comments (Atom)
3 comments:
Thanks for this approach.
Unfortunately, your solution doesn't work for AMD64 arch - cause I'm facing a problem:
aptitude -t etch-backports install sun-java6-jdk
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages are BROKEN:
sun-java6-jdk
The following packages have been kept back:
base-files initscripts libclamav2 libltdl3 libmysqlclient15-dev libmysqlclient15off libpq-dev libtool
linux-image-2.6-amd64 mysql-client mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 postfix-doc
postfix-mysql spamassassin sysv-rc sysvinit sysvinit-utils vim-common vim-tiny
0 packages upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 9490kB of archives. After unpacking 31.7MB will be used.
The following packages have unmet dependencies:
sun-java6-jdk: Depends: sun-java6-jre (= 6-00-2~bpo.1) but it is not installable
Resolving dependencies...
Unable to resolve dependencies! Giving up...
Abort.
- so trying to install the jre, and having same problem - but worse, cause cycling deps...:
aptitude -t etch-backports install sun-java6-jre
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages are BROKEN:
sun-java6-jre
The following packages have been kept back:
base-files initscripts libclamav2 libltdl3 libmysqlclient15-dev libmysqlclient15off libpq-dev libtool
linux-image-2.6-amd64 mysql-client mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 postfix-doc
postfix-mysql spamassassin sysv-rc sysvinit sysvinit-utils vim-common vim-tiny
0 packages upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 6344kB of archives. After unpacking 14.5MB will be used.
The following packages have unmet dependencies:
sun-java6-jre: Depends: sun-java6-bin (= 6-06-1~bpo40+1) but it is not installable or
ia32-sun-java6-bin (= 6-06-1~bpo40+1) but it is not installable
Resolving dependencies...
Unable to resolve dependencies! Giving up...
Abort.
So,
how to manage this issue - to install JDK6 on stable/etch?
Best Regards,
Kris.
This seems to be a bug in Debian's backport. Searching for the error message gives some recent posts on the subject (from May 28th). Hopefully it will be fixed soon.
See this usenet post
Hi all. Good info on Install. I realize it has been a year since this was posted...BUG is fixed and this method works flawlessly
~James
Post a Comment