ubuntu修改更新源(ubuntu更新数据源)
ubuntu12.04怎么改变更新源
1 、首先备份 Ubuntu12.04 源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表)
2 、修改更新源
sudo gedit /etc/apt/sources.list (打开 Ubuntu 12.04 源列表文件)
3 、把里面的列表替换成下面的列表
163 源
deb precise main restricted
deb-src precise main restricted
deb precise-updates main restricted
deb-src precise-updates main restricted
deb precise universe
deb-src precise universe
deb precise-updates universe
deb-src precise-updates universe
deb precise multiverse
deb-src precise multiverse
deb precise-updates multiverse
deb-src precise-updates multiverse
deb precise-backports main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse
deb precise-security main restricted
deb-src precise-security main restricted
deb precise-security universe
deb-src precise-security universe
deb precise-security multiverse
deb-src precise-security multiverse
deb precise main
deb-src precise main
sohu 源
deb precise main restricted
deb-src precise main restricted
deb precise-updates main restricted
deb-src precise-updates main restricted
deb precise universe
deb-src precise universe
deb precise-updates universe
deb-src precise-updates universe
deb precise multiverse
deb-src precise multiverse
deb precise-updates multiverse
deb-src precise-updates multiverse
deb precise-backports main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse
deb precise-security main restricted
deb-src precise-security main restricted
deb precise-security universe
deb-src precise-security universe
deb precise-security multiverse
deb-src precise-security multiverse
deb precise main
deb-src precise main
ubuntu.cn99.com 源(推荐) :
deb precise main restricted universe multiverse
deb precise-updates main restricted universe multiverse
deb precise-security main restricted universe multiverse
deb precise-backports main restricted universe multiverse
deb precise main restricted universe multiverse
教育网源
如果你是在校大学生,可以使用校园网 / 教育网,就是用教育网的资源吧,尤其是支持 ipv6 的,那更新速度就按兆算了。
# 电子科技大学
deb precise main restricted universe multiverse
deb precise-backports main restricted universe multiverse
deb precise-proposed main restricted universe multiverse
deb precise-security main restricted universe multiverse
deb precise-updates main restricted universe multiverse
deb-src precise main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse
deb-src precise-proposed main restricted universe multiverse
deb-src precise-security main restricted universe multiverse
deb-src precise-updates main restricted universe multiverse
# 中国科技大学
deb precise main restricted universe multiverse
deb precise-backports restricted universe multiverse
deb precise-proposed main restricted universe multiverse
deb precise-security main restricted universe multiverse
deb precise-updates main restricted universe multiverse
deb-src precise main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse
deb-src precise-proposed main restricted universe multiverse
deb-src precise-security main restricted universe multiverse
deb-src precise-updates main restricted universe multiverse
# 北京理工大学
deb precise main multiverse restricted universe
deb precise-backports main multiverse restricted universe
deb precise-proposed main multiverse restricted universe
deb precise-security main multiverse restricted universe
deb precise-updates main multiverse restricted universe
deb-src precise main multiverse restricted universe
deb-src precise-backports main multiverse restricted universe
deb-src precise-proposed main multiverse restricted universe
deb-src precise-security main multiverse restricted universe
deb-src precise-updates main multiverse restricted universe
Docker指定安装版本Ubuntu、启动以及更改源
使用Docker指定安装13.10版本的Ubuntu镜像,并运行:
最近遇到docker run不起来Ubuntu的镜像,后面才发现是自己少加了-it这个参数,运行其他的mysql之类的镜像都没需要这个参数就起来了,不太清楚为什么。
查询了一下docker run的参数也没找出来原因,还以为是-it的还有什么功能我不知道。。。。
运行起来Ubuntu的容器之后又遇到一个问题:没办法在Ubuntu里面安装任何软件,连apt-get update都没办法运行,因为:
到此就可以愉快正常地使用13.10的Ubuntu了。
关于这个老版本的Ubuntu的更新源的问题,只需要把saucy换成对应版本Ubuntu的名字就行了。
比如11.04的Ubuntu叫做代号:"Natty Narwhal" ,然后那里就可以将saucy换成natty
最近一直在用docker,加深了对docker的理解,虽然还没到写出很完美的dockerfile的那种地步,但是对Docker是什么比当初有了更深一点的理解,最起码镜像和容器概念已经清楚了,补充几条命令叭。
ubuntu14.04怎么更换源
方法一:图形界面操作更新源
1
点击右上角的”搜索“图标,在搜索框中输入update,在显示的应用列表中,点击”SoftwareUpdates(软件更新)“。
2
在弹出的”SoftwareUpdates“窗口中,选择”Ubuntu Software“,你可以看到”Download from(下载源)“是”Server for United States(美国服务器)“。点击”Server for United States“下拉菜单,选择”Other...(其他)“。
3
在弹出”Choose a Download Server(选择下载服务器)“窗口中向上拉,找到China(中国),然后,选择中国的服务器,这里可以选择教育源,网易、阿里等等。(我在这里选的是163(网易)的),然后点击”Choose Server(选择服务)“按钮。
4
然后,弹出”Authenticate(认证)“窗口,输入系统密码(ubuntu上由于安全性安装软件,需要输入密码),然后点击”Authenticate(认证)“按钮。
5
此时,你会发现”SoftwareUpdates“窗口中的”Download from(下载源)“已经变成你设置的中国源。点击”Close(关闭)“按钮。
6
然后,会弹出一个提示,大概意思是”安装软件和更新添加的源或修改源,必须要重新加载可用软件的信息“,点击”Reload(重载)“按钮。进入”Updating cache(更新缓存)“界面,等待更新完过后,下载源就真正变成中国的了。以后下载东西就更快了。
END
方法/步骤2
(1)首先备份官方源,以免设置错误可恢复。
(2)用编辑器打开 /etc/apt/sources.list文件。
(3)删除原有的源,在编辑器中添加新源。如图所示:
4
(4)添加的源有很多,可根据自己的情况选择。
Ubuntu怎么修改apt-get更新源
1、复制原文件备份
sudo cp /etc/apt/source.list /etc/apt/source.list.bak
2、编辑源列表文件
sudo vim /etc/apt/source.list
3、将原来的列表删除,添加如下内容
deb vivid main restricted universe multiverse
deb vivid-security main restricted universe multiverse
deb vivid-updates main restricted universe multiverse
deb vivid-proposed main restricted universe multiverse
deb vivid-backports main restricted universe multiverse
deb-src vivid main restricted universe multiverse
deb-src vivid-security main restricted universe multiverse
deb-src vivid-updates main restricted universe multiverse
deb-src vivid-proposed main restricted universe multiverse
deb-src vivid-backports main restricted universe multiverse
4、运行sudo apt-get update
5、运行sudo apt-get upgrade