ubuntu 11.04 安装软件遇到的问题(2013.07.02)

作者遇到Ubuntu 11.04 Natty源更新失败问题,通过更换源解决了apt-get安装包的问题,并最终升级到Ubuntu 11.10。在新系统中选择合适的源进行软件安装和更新。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

这两天需要搭建一个编译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的源来进行软件的安装及更新。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值