分页: 1 / 1

6.10 apt源的设置格式是怎样

发表于 : 2006-12-26 9:34
linuxer_520
能否提供个实例,每次sudo apt-get install update都提示没找到包

发表于 : 2006-12-26 9:55
xiehuoli
sudo gedit /etc/apt/sources.list

deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse
在论坛的WIKI里面有详细设置
建议你以后有问题先搜索论坛。

发表于 : 2006-12-26 9:56
linuxer_520
非常谢谢

Re: 6.10 apt源的设置格式是怎样

发表于 : 2006-12-26 13:55
rainofchaos
linuxer_520 写了:能否提供个实例,每次sudo apt-get install update都提示没找到包
因为源里面没有 update 这个包所以提示没有找到 :D

应该是

代码: 全选

sudo apt-get update
然后

代码: 全选

sudo apt-get install [你要装的包]

Re: 6.10 apt源的设置格式是怎样

发表于 : 2006-12-26 15:05
linuxer_520
rainofchaos 写了:
linuxer_520 写了:能否提供个实例,每次sudo apt-get install update都提示没找到包
因为源里面没有 update 这个包所以提示没有找到 :D

应该是

代码: 全选

sudo apt-get update
然后

代码: 全选

sudo apt-get install [你要装的包]

哦,谢谢提醒 :lol:

发表于 : 2006-12-29 16:55
zhangweizj
找不到的话,你可以现用sudo apt-cache search搜索你需要找的包的名称,然后再使用sudo apt-get install进行安装