修改Linux 更新源

来源:互联网 发布:如何搭建数据库 编辑:程序博客网 时间:2024/05/18 01:57
修改源并更新备份当前的源列表,以便日后需要时恢复:在终端执行命令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 multiversedeb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiversedeb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiversedeb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse (2)中国台湾省台湾大学更新服务器deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy main restricted universe multiversedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy main restricted universe multiversedeb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-updates main restricted universe multiversedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-updates main restricted universe multiversedeb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-backports main restricted universe multiversedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-backports main restricted universe multiversedeb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-security main restricted universe multiversedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-security main restricted universe multiversedeb http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-proposed main multiverse restricted universedeb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ gutsy-proposed main restricted universe multiverse保存编辑好的文件,执行以下命令更新sudo apt-get update    #这一步是更新你的源列表,换源后必须执行sudo apt-get dist-upgrade   #这一步是更新软件,如果你对新版本软件的需求不是那么迫切,可以不执行

原创粉丝点击