今天再一次尝试Ubuntu系统,安装的是Ubuntu12.04LTS
麻烦的是 Ubuntu默认是不开启root用户的,需要使用:su passwd root 来启用root
然后自己想搭建Android开发环境,需要安装JAVA JDK,在root权限下:
apt-get install sun-java6-jdk
但是找不到下载源,通过google,找到了源:
感谢:http://www.2cto.com/os/201203/121724.html
http://blog.youkuaiyun.com/cangzhubai/article/details/5693021
1、添加这个源:
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse"
2、sudo apt-get update
3、sudo apt-get install sun-java6-jdk
然后就会出现下载安装sun-java6-jdk。。。有点久
相关:
https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/UbuntuDesktop
在Ubuntu12.04 Desktop Release Notes中提到:
Java Toolchain
The default run time for Java is OpenJDK 6b24 (IcedTea 1.11.1). OpenJDK 7u3 (IcedTea 2.1) is available in the archive as well.
但是没有给出替代的下载源
在Ubuntu10.04 Desktop Release Notes中提到:
https://wiki.ubuntu.com/LucidLynx/ReleaseNotesSun Java moved to the Partner repository
For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.
If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Repository. You can configure your system to use this repository via command-line:
add-apt-repository "deb http://archive.canonical.com/ lucid partner"