2014-01-03
Ubuntu
- Ubuntu 13.10 安裝 sun-java6-jdk 的方法 - 原本 add-apt-repository 是放在 python-software-properties 套件中,13.10 則是改放在 software-properties-common 套件中
if [ ! -x /usr/bin/add-apt-repository ]; then sudo apt-get -f -y install software-properties-common fi if [ ! -x /usr/bin/java ]; then echo "---- [1] Installing Sun Java JDK 6 ........ ----" sudo add-apt-repository -y 'deb http://free.nchc.org.tw/debian squeeze non-free' sudo apt-get update cat << EOF | sudo /usr/bin/debconf-set-selections sun-java6-bin shared/accepted-sun-dlj-v1-1 select true sun-java6-jdk shared/accepted-sun-dlj-v1-1 select true sun-java6-jre shared/accepted-sun-dlj-v1-1 select true EOF sudo apt-get -y --force-yes install sun-java6-jdk sun-java6-plugin sudo add-apt-repository -r 'deb http://free.nchc.org.tw/debian squeeze non-free' fi
Last modified 11 years ago
Last modified on Jan 3, 2014, 1:19:41 AM