add-apt-repository "deb http://archive.canonical.com/ lucid partner" apt-get update
to add the appropriate repository. Now you can use apt-get install as before to install the sun-java6-jdk or sun-java6-jre packages. For those curious, this is the "official" way to do this according to the release notes.
Nice little article! You should however mention:
ReplyDeleteadd-apt-repository needs to be run as sudo
next you need to run:
sudo apt-get update
and then:
sudo apt-get install *
Thanks for the comments! I updated the post to clarify those points.
ReplyDeleteThank you. Thank you. Thank you. I've been searching for the solution to this problem for 2 hours.
ReplyDeletethank you man !!!! mis respetos!!!
ReplyDeletethanks! saved my life today ;-)
ReplyDeleteinstalled java manually so far but got stuck by yuuguu that persisted to depend on sun-java6-jre. Installing it by ignoring unmet dependencies broke my updatability.
Thanks! That helped. Now if only they could make those repo's standard so I don't have to go looking for them with every install :@
ReplyDeleteThanx man!!!
ReplyDeleteVery helpful hint.
Bass D'Phar.
Thanks for the clue.
ReplyDeleteTo get "add-apt-repository" on the Lucid server versions I had to start with:
apt-get install python-software-properties
Thanx man!!!
ReplyDeletePut me on the list of those saying "Thanks!!"
ReplyDeleteYou said : Now it lives in a partner respository, so as root you'll need to run
ReplyDeleteQuestion is : How to login as root?
See the "sudo" command. Basically stick "sudo" in front of the commands I posted, or run "sudo -i" then type the commands.
ReplyDeleteThanks so much,
ReplyDeleteAlso note that the line is in /etc/apt/sources.list, so you can also just edit that file and remove the # before it so as to uncomment it out.
ReplyDeletewow thank you so much!
ReplyDelete^^
i'm really happy now!
Thanks, yet it did not work for me on Terminal, since I got:
ReplyDeleteE: Couldn't find package Desktop
How to fix it? Thanks.