这两天需要搭建一个编译Android4.0.3的软件环境,遇到了很恼人的问题:
1. 换了n多的源,总是出现错误 (这些源是从一年前的帖子上面弄过来的)
# apt-get install <packagename>
Reading package lists... Done
Building dependency tree... Done
Package aptitude is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package <packagename> has no installation candidate
要不就是:
Err http://security.ubuntu.com natty-security/restricted i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com natty-security/universe i386 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com natty-security/multiverse i386 Packages
404 Not Found [IP: 91.189.91.14 80]
原来ubuntu11.04 natty 已经不被支持了(不被支持就这么彻底~)
经高人指点换了源:
deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
进行 sudo apt-get update 之后便可以了,但是为了安装更多的软件,我按照update package manager的提醒将系统进行了升级,升级到11.10
安装完之后就可以选择ubuntu 11.10的源来进行软件的安装及更新。