文档章节

Ubuntu 14.04 更新源

MyPy
 MyPy
发布于 2014/04/21 15:11
字数 369
阅读 20593
收藏 23

1、备份源

# sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2、编辑源文件/etc/apt/sources.list,并添加以下地址

# sudo gedit /etc/apt/sources.list
网易163源:
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

搜狐源:

deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse

oschina源:

deb http://mirrors.oschina.net/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.oschina.net/ubuntu/ trusty-backports main restricted universe multiverse
deb http://mirrors.oschina.net/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.oschina.net/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.oschina.net/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.oschina.net/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.oschina.net/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.oschina.net/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.oschina.net/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.oschina.net/ubuntu/ trusty-updates main restricted universe multiverse

3、 更新源索引,使新源生效

# sudo apt-get update


© 著作权归作者所有

共有 人打赏支持
MyPy
粉丝 1
博文 24
码字总数 6486
作品 0
武汉
程序员
私信 提问
加载中

评论(7)

donhui
donhui
这些源都是从哪里获取的呢?
ZmmFly
ZmmFly
奇怪。。。我这里osc的源比163的快。。。
xyxzfj
xyxzfj

引用来自“xyxzfj”的评论

添加所有的源还是选择一个源?可否添加所有源?貌似还是无法安装vim、apache2等工具。
$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'vim' has no installation candidate

引用来自“MyPy”的评论

用 apt-get install vim-gnome 试一下
使用4楼(自己)的方法更新了源,就可以了。仍然谢谢!
xyxzfj
xyxzfj
网易提供的源的完整版本如下:
http://mirrors.163.com/.help/sources.list.trusty
包含了http://mirrors.163.com/的源,还在后面加上了http://archive.ubuntu.com/的源。原来多个源可以同时加入。
MyPy
MyPy

引用来自“xyxzfj”的评论

添加所有的源还是选择一个源?可否添加所有源?貌似还是无法安装vim、apache2等工具。
$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'vim' has no installation candidate
用 apt-get install vim-gnome 试一下
xyxzfj
xyxzfj
添加所有的源还是选择一个源?可否添加所有源?貌似还是无法安装vim、apache2等工具。
$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'vim' has no installation candidate
s
skyvoice
79
Unbuntu Apt-fast

Apt-fast 是一款替代 apt-get 提升下载速度的软件,安装软件时,通过增加线程使下载软件速度加快。 Apt-fast 已经更新到1.6.4版本,引入配置“对话框”,在其安装过程中,一步步对话框选择设...

行走的螃蟹
2016/07/11
12
0
上传文件到linux - ubuntu

我们经常需要将本地的文件上传到远程的Ubuntu 14.04服务器上,或者把远程Ubuntu 14.04服务器上的文件下载到本地,这就需要用到vsftpd来搭建FTP服务,现在介绍一下如何在Ubuntu 14.04上安装和...

岸芷汀兰
2015/06/19
0
1
Ubuntu 远程登录服务器--ssh的安装和配置

工具/原料 Ubuntu 14.04 SecureCRT下载|SecureCRT下载(支持SSH终端仿真器)V8.0.2. http://www.xiazaiba.com/html/1735.html 方法/步骤 更新源列表 打开"终端窗口",输入"sudo apt-get updat...

glen_xu
2016/09/23
4
0
开源论坛之discourse搭建

快2个月没写博客,最近一个是忙着开发docker平台,另外一个是接手了公司私有云,所以比较忙。 公司最近有个新项目,想弄个技术的问答论坛,挑选了半天,选择ruby语言的discourse,这个是完全...

dl528888
2015/12/09
0
0
Centos7配置ubuntu本地仓库

方案一:利用光盘来制作 以web方式部署ubuntu本地仓库 首先在centos7虚拟机(192.168.80.200)上挂载ubuntu16.04 server版本的光盘 sudo mount /dev/cdrom /mnt 然后搭建web服务(略) 拷贝/...

vanche
2017/07/28
0
0

没有更多内容

加载失败,请刷新页面

加载更多

Confluence 6 教程:在 Confluence 中导航

当你对 Confluence 有所了解后,你会发现 Confluence 使用起来非常简单。这个教程主要是针对你使用的 Confluence 界面进行一些说明,同时向你展示在那里可以进行一些通用的任务和操作。 空间...

honeymose
9分钟前
1
0
sed, awk 练习

1. sed打印某行到某行之间的内容 2. sed 转换大小写 将单词首字母转化大写 将所有小写转化大写 3. sed 在某一行最后面添加一个数字 4. 删除某行到最后一行 解析: {:a;N;$!ba;d} :a : 是...

Fc丶
今天
2
0
babel6升级到7,jest-babel报错:Requires Babel "^7.0.0-0", but was loaded with "6.26.3".

自从将前端环境更新到babel7,jest-babel之前是基于babel6的,执行时候就会报:Requires Babel "^7.0.0-0", but was loaded with "6.26.3". 很烦,因为连续帮好几台电脑修复这个问题,所以记...

曾建凯
今天
1
0
探索802.11ax

802.11ax承诺在真实条件下改善峰值性能和最差情况。 如何改善今天的Wi-Fi? 在决定如何改进当前版本以外的Wi-Fi时,802.11ac,IEEE和Wi-Fi联盟调查了Wi-Fi部署和行为,以确定更广泛使用的障碍...

linuxprobe16
今天
2
0
使用linux将64G的SDCARD格式化为FAT32

一、命令如下: sudo fdisk -lsudo mkfs.vfat /dev/sda -Isudo fdisk /dev/sda Welcome to fdisk (util-linux 2.29.2). Changes will remain in memory only, until you decide to wri......

mbzhong
今天
4
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部