ubuntu改更新源(ubuntu怎么更新源)
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是什么比当初有了更深一点的理解,最起码镜像和容器概念已经清楚了,补充几条命令叭。
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
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
如何给ubuntu更改最快的更新源
方法/步骤
1.打开设置》》软件和更新,
2.下载自:下拉菜单,选择其他站点
3.你可以选择最佳服务器,也可以指定你满意的服务器。
4.选择之后要求输入密码
5.选择关闭,之后会重新自动执行更新命令(sudo apt-get update)6.更新完成
6.更新完成
ubuntu 如何更新软件源
首先打开终端
先做个备份
1.sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 备份更新源设置
2.sudo gedit /etc/apt/sources.list
编辑你的源列表,将原来的内容全部删除,添加下面列表中最适合你的源(注意不要全部添加),选择一个最合适你的即可,复制到你的列表中,然后保存列表。
(加入源地址)
3.sudo apt-get update 更新源列表信息
可以在运行“sudo apt-get update ”时查看一下错误信息,把不能连接的源删除再重新运行“sudo apt-get update ”。
4.sudo apt-get upgrade 升级
ubuntu 16.04怎么更新软件源
下面是更换步骤:
1 备份原来的更新源
cp /etc/apt/sources.list /etc/apt/sources.list.backup
如果提示权限不够就输入下面两行,先进入到超级用户,再备份
sudo -s
cp /etc/apt/sources.list /etc/apt/sources.list.backup
2 修改更新源
打开sources.list (这就是存放更新源的文件)
gedit /etc/apt/sources.list
将下面所有内容复制,粘贴并覆盖sources.list文件中的所有内容