修改源并更新 备份当前的源列表,以便日后需要时恢复: 在终端执行命令 sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup编辑源列表gedit /etc/apt/sources.list 从以下各服务器列表内容中选择一段替换文件中的所有内容,为防止非官方源中软件包不全的问题,请在sources.list文件中尾部添加一组官方源。 (1)Ubuntu.cn99.com更新服务器(江苏省常州市电信,推荐电信用户使用): deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse (2)中国台湾省台湾大学更新服务器deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-updates main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-updates main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-backports main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-backports main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-security main restricted universe multiverse deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-security main restricted universe multiverse deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-proposed main multiverse restricted universe deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-proposed main restricted universe multiverse 保存编辑好的文件,执行以下命令更新sudo apt-get update #这一步是更新你的源列表,换源后必须执行sudo apt-get dist-upgrade #这一步是更新软件,如果你对新版本软件的需求不是那么迫切,可以不执行
修改Linux 更新源
最新推荐文章于 2023-03-29 10:10:42 发布