您的位置:首页 > 其它

ubuntu更新软件源

2017-05-24 14:04 309 查看
1、首先备份Ubuntu 11.04源列表

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表。有备无患嘛)

2、改动更新源

sudo gedit /etc/apt/sources.list (打开Ubuntu 11.04源列表文件)

3、将以下的代码粘贴进去(“#”开头的那一行为凝视。能够直接复制进文件里)

#台湾源

deb http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse

deb-src http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse

deb http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted

deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted

deb http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted

deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted

#网易 Ubuntu 11.04 源(速度非常快)

deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse

deb-src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse

deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted

deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted

deb-src http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted

#骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin

deb http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse

deb-src http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse

deb http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted

deb-src http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted

deb http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted

deb http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted

deb-src http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted

deb http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted

deb-src http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted

deb-src http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted

#大家能够自己依据自己的版本号设置一下,不一定局限于ubuntu 11.04,以下列出一些校内更新源。

#电子科技大学

deb http://ubuntu.uestc.edu.cn/ubuntu/ natty main restricted universe multiverse

deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse

deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse

deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-security main restricted universe multiverse

deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty main restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-security main restricted universe multiverse

deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse

#中国科技大学

deb http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ natty-backports restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse

deb-src http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse

#北京理工大学

deb http://mirror.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe

deb http://mirror.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe

deb http://mirror.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe

deb http://mirror.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe

deb http://mirror.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe

deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

#兰州大学

deb ftp://mirror.lzu.edu.cn/ubuntu/ natty main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-security main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe

#上海交通大学

deb http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

最后运行

sudo apt-get update
sudo apt-get dist-upgrade

官方採集的源列表https://launchpad.net/ubuntu/+archivemirrors
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: