重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

Ubuntu12.04如何更新源-创新互联

这篇文章主要介绍Ubuntu12.04如何更新源,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

创新互联建站公司2013年成立,是专业互联网技术服务公司,拥有项目网站设计制作、成都网站建设网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元临沂做网站,已为上家服务,为临沂各地企业和个人服务,联系电话:13518219792

使用国外源太慢了,修改为国内源会快很多。这里就为大家分享一下修改方法,需要的朋友可以参考一下

1.sudo gedit /etc/apt/sources.list

编辑你的源列表,将原来的内容全部删除或者做一下备份

sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份当前的源列表)

添加下面列表中最适合你的源(注意不要全部添加),选择一个最合适你的即可,复制到你的列表中,然后保存列表。

2.sudo apt-get update 更新源列表信息

可以在运行“sudo apt-get update ”时查看一下错误信息,把不能连接的源删除再重新运行“sudo apt-get update ”。

3.sudo apt-get upgrade 升 级或者用ubuntu自带的更新管理器升级也可

Ubuntu 12.04 源列表:

163源( 选 ):

deb /tupian/20230522/ precise main restricted
deb-src /tupian/20230522/ precise main restricted
deb /tupian/20230522/ precise-updates main restricted
deb-src /tupian/20230522/ precise-updates main restricted
deb /tupian/20230522/ precise universe
deb-src /tupian/20230522/ precise universe
deb /tupian/20230522/ precise-updates universe
deb-src /tupian/20230522/ precise-updates universe
deb /tupian/20230522/ precise multiverse
deb-src /tupian/20230522/ precise multiverse
deb /tupian/20230522/ precise-updates multiverse
deb-src /tupian/20230522/ precise-updates multiverse
deb /tupian/20230522/ precise-backports main restricted universe multiverse
deb-src /tupian/20230522/ precise-backports main restricted universe multiverse
deb /tupian/20230522/ precise-security main restricted
deb-src /tupian/20230522/ precise-security main restricted
deb /tupian/20230522/ precise-security universe
deb-src /tupian/20230522/ precise-security universe
deb /tupian/20230522/ precise-security multiverse
deb-src /tupian/20230522/ precise-security multiverse
deb /tupian/20230522/ precise main
deb-src /tupian/20230522/ precise main

sohu源:

deb http://mirrors.sohu.com/ubuntu/ precise main restricted
deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted
deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
deb http://mirrors.sohu.com/ubuntu/ precise universe
deb-src http://mirrors.sohu.com/ubuntu/ precise universe
deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
deb http://mirrors.sohu.com/ubuntu/ precise multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted
deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted
deb http://mirrors.sohu.com/ubuntu/ precise-security universe
deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe
deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse
deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse
deb /tupian/20230522/ precise main
deb-src /tupian/20230522/ precise main

ubuntu.cn99.com源(推荐):

deb /tupian/20230522/ precise main restricted universe multiverse
deb /tupian/20230522/ precise-updates main restricted universe multiverse
deb /tupian/20230522/ precise-security main restricted universe multiverse
deb /tupian/20230522/ precise-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ precise main restricted universe multiverse

教育网源

如果你是在校大学生,可以使用校园网/教育网,就是用教育网的资源吧,尤其是支持ipv6的,那更新速度就按兆算了。

电子科技大学:

deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

中国科技大学:

deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

北京交大:

deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

4、更新源(在终端里敲如下命令)

sudo apt-get update

安装Ubuntu18.04后,使用国外源太慢了,修改为国内源会快很多。

修改阿里源为Ubuntu 18.04默认的源

备份/etc/apt/sources.list
#备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak

在/etc/apt/sources.list文件前面添加如下条目
#添加阿里源

deb /tupian/20230522/ bionic main restricted universe multiverse
deb /tupian/20230522/ bionic-security main restricted universe multiverse
deb /tupian/20230522/ bionic-updates main restricted universe multiverse
deb /tupian/20230522/ bionic-proposed main restricted universe multiverse
deb /tupian/20230522/ bionic-backports main restricted universe multiverse
deb-src /tupian/20230522/ bionic main restricted universe multiverse
deb-src /tupian/20230522/ bionic-security main restricted universe multiverse
deb-src /tupian/20230522/ bionic-updates main restricted universe multiverse
deb-src /tupian/20230522/ bionic-proposed main restricted universe multiverse
deb-src /tupian/20230522/ bionic-backports main restricted universe multiverse

最后执行如下命令更新源
##更新
sudo apt-get update
sudo apt-get upgrade

另外其他几个国内源如下:
中科大源

##中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

163源

##163源
deb /tupian/20230522/ bionic main restricted universe multiverse
deb /tupian/20230522/ bionic-security main restricted universe multiverse
deb /tupian/20230522/ bionic-updates main restricted universe multiverse
deb /tupian/20230522/ bionic-proposed main restricted universe multiverse
deb /tupian/20230522/ bionic-backports main restricted universe multiverse
deb-src /tupian/20230522/ bionic main restricted universe multiverse
deb-src /tupian/20230522/ bionic-security main restricted universe multiverse
deb-src /tupian/20230522/ bionic-updates main restricted universe multiverse
deb-src /tupian/20230522/ bionic-proposed main restricted universe multiverse
deb-src /tupian/20230522/ bionic-backports main restricted universe multiverse

清华源

##清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

以上是“Ubuntu12.04如何更新源”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注创新互联行业资讯频道!


分享文章:Ubuntu12.04如何更新源-创新互联
分享路径:http://cqcxhl.com/article/cdegjp.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP