This one is just for me … =)
Thanks to weiqigao:
Here’s the steps I took to get Sun JDK 6 to my Debian GNU/Linux 4.0 system (the right way):
- Add a line to /etc/apt/sources.list:
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 200704 07-12:15]/ etch contrib main deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 20070407 -12:15]/ etch contrib main deb http://ftp.debian.org/debian/ etch main non-free deb-src http://ftp.debian.org/debian/ etch main non-free deb http://security.debian.org/ etch/updates main contrib non-free deb-src http://security.debian.org/ etch/updates main contrib non-free deb http://www.debian-multimedia.org etch main deb http://www.dipconsultants.com/debian etch main ### unstable ####### deb http://ftp.debian.org/debian/ unstable main non-free
- Add a line to /etc/apt/apt.conf.d/70debconf:
// Pre-configure all packages with debconf before they are installed. // If you don't like it, comment it out. DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";}; APT::Cache-Limit "100000000";
- Created /etc/apt/preferences:
Package: * Pin: release a=stable Pin-Priority: 700 Package: * Pin: release a=unstable Pin-Priority: 600
- Run apt-get update
- Install the eight sun-java6-* packages
- sun-java6-bin
- sun-java6-demo
- sun-java6-doc
- sun-java6-fonts
- sun-java6-javadb
- sun-java6-jdk
- sun-java6-jre
- sun-java6-source
with
[[email protected]]# feta install <package-name>s