之前apt-get命令不知何故出错,后来一直都没有能弄好。虽然在网上搜索了很多方法,但最后还是没能解决,都说是source.list的问题,换了很多源,结果:无效
漫漫很长时间,都是到debian下载源码,然后使用dpkg -i 安装
最近有份source code一直没有能找到,又想起那方便的apt-get。
感谢Rain同志贡献的source.list,居然成功运行了。
1. 保存source.list到/etc/apt/下
2. 清除原先的apt-get的无用错误的cache:sudo rm -rf /var/lib/apt/lists/*
3. 更新atp-get:sudo apt-get update
然后,然后真就ok了。
贴出source.list当个milestone:
# deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release i386 (20110427.1)]/ natty main restricted
# See for how to upgrade to
# newer versions of the distribution.
deb natty main restricted
deb-src natty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb natty-updates main restricted
deb-src natty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb natty universe
deb-src natty universe
deb natty-updates universe
deb-src natty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb natty multiverse
deb-src natty multiverse
deb natty-updates multiverse
deb-src natty-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb natty-backports main restricted universe multiverse
# deb-src natty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb natty partner
# deb-src natty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb natty main
deb-src natty main
阅读(961) | 评论(0) | 转发(0) |