-
Ubuntu源
2018-03-05 22:47:51修改Ubuntu源的方式 一点说明 阿里源 清华大学源 西安电子科技大学源 使用官方的Ubuntu源速度非常的慢,每次修改软件源的时候都要上网搜,所以干脆写个文章存下来,自己找起来也方便,Mark一下。 修改Ubuntu...使用官方的Ubuntu源速度非常的慢,每次修改软件源的时候都要上网搜,所以干脆写个文章存下来,自己找起来也方便,Mark一下。
修改Ubuntu源的方式
- 首先备份默认源文件sources.list为sources.list.bak
sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak
- 新建名为sources.list的文件,并且根据自己的需要选择下面不同的源使用
一点说明
以 xenial 为例,其它版本替换成相应版本号即可(可以用
lsb_release -a
查看当前版本代号)。
请根据需要去掉 deb-src 以及 backports 和 proposed-updates 前面的注释阿里源
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse # deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse # deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse # deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
清华大学源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main multiverse restricted universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main multiverse restricted universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main multiverse restricted universe # deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main multiverse restricted universe # deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe # deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main multiverse restricted universe
西安电子科技大学源
西电源仅校园网内可用:
deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial main restricted universe multiverse #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial main restricted universe multiverse deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-security main restricted universe multiverse #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-security main restricted universe multiverse deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-updates main restricted universe multiverse #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-updates main restricted universe multiverse #deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-backports main restricted universe multiverse #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-backports main restricted universe multiverse #deb http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-proposed main restricted universe multiverse #deb-src http://linux.xidian.edu.cn/mirrors/ubuntu/ xenial-proposed main restricted universe multiverse
- 首先备份默认源文件sources.list为sources.list.bak
-
ubuntu源详解 and 实现自己的ubuntu源 - [linux应用程序]
2013-07-29 19:33:09ubuntu源详解 and 实现自己的ubuntu源 - [linux应用程序] 2011-11-26 一直对linux源不太清楚,只是在网上直接找到对应源镜像,复制到本地使用,现在开始探索源: 一:简介 linux内核对应各种各样的操作...ubuntu源详解 and 实现自己的ubuntu源 - [linux应用程序]
2011-11-26
-
修改Ubuntu源列表
2017-03-29 21:20:58修改Ubuntu源列表目录测试环境Ubuntu 16.04.2 amd64修改源列表Step1: 找到源列表文件。 文件位置:/etc/apt/source.list NOTE: 在修改之前记得先备份一份, cp /etc/apt/source.list /etc/apt/source.list....修改Ubuntu源列表
测试环境
Ubuntu 16.04.2 amd64
修改源列表
Step1: 找到源列表文件。
文件位置:/etc/apt/sources.listNOTE: 在修改之前记得先备份一份,
cp /etc/apt/sources.list /etc/apt/sources.list.backup
Step2: 修改源列表。
中国科技大学的源一般使用起来比较快,直接选择中科大的源。
删除source.list文件中的源,将下面的直接复制过去。# USTC (University of Science and Technology of Thina) # xenial is ubuntu 16.04 version deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
NOTE: Ubuntu 16.04的代号为xenial,所以上面全部是xenial,如果是其他版本的Ubuntu,也是同样的道理,只不过修改代号就可以了。但是在修改源之前,先到服务器上查看是否有相关的源列表。
上图为中科大Ubuntu各个版本源列表,还有一部分未列出。step3: 更新源。
sudo apt-get update
各个源比较
ping测试 结果 ping mirrors.ustc.edu.cn 最短 = 36ms, 最长 = 95ms, 平均 = 62ms ping cn.archive.ubuntu.com 最短 = 51ms, 最长 = 188ms, 平均 = 117ms ping mirrors.163.com 最短 = 144ms, 最长 = 228ms, 平均 = 178ms ping archive.ubuntu.com 最短 = 401ms, 最长 = 470ms, 平均 = 429ms 根据自己的情况而定,优先选择延迟小的源。
从上面的情况来看,USTC的源速度最快。补充知识
源后面的main restricted universe multiverse是什么意思?
main: 完全的自由软件。
restricted: 不完全的自由软件。
universe: Ubuntu官方不提供支持与补丁,全靠社区支持。
multiverse: 非自由软件,完全不提供支持和补丁。Ubuntu版本代号信息
代号 版本 precise 12.04 trusty 14.04 vivid 15.04 wily 15.10 xenial 16.04 yakkety 16.10 zesty 17.04 首先确认安装版本,(每个安装版本源是不一样的)。
-
ubuntu源设置
2011-08-20 19:20:33ubuntu源设置 更新源方法: 1. 打开终端。单击主菜单中的“应用程序 - 附件 - 终端”。 2. 修改更新服务器列表。请在终端中执行下面的两条命令: sudo cp /etc/apt/sources.list /etc/apt/sources.lubuntu源设置
更新源方法:
1. 打开终端。单击主菜单中的“应用程序 - 附件 - 终端”。
2. 修改更新服务器列表。请在终端中执行下面的两条命令:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
#备份原来的软件列表,会要求输入密码
sudo gedit /etc/apt/sources.list
#用gedit打开sources.list文件
在接下来在打开的文本编辑器中,把看到的内容全部删掉,在上面Ubuntu11.04源列表里选择一组对于你来说速度最快的更新服务器列表。粘贴到你所看到的窗口中。这里推荐台湾源和网易源,更新软件的速度很快!
4. 关闭文本编辑器。
5. 更新软件包列表。执行下面的命令:
sudo apt-get update
6. 安装系统更新
打开“系统->系统管理->更新管理器”,安装更新。完成后若系统提示重新启动,请重新启动系统。
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://archive.ubuntu.com/ubuntu/ lucid main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://archive.ubuntu.com/ubuntu/ lucid universe
deb http://archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner
deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
#网易163更新服务器:
deb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse -
ubuntu源换成清华源_Ubuntu替换国内源(清华源)
2020-12-24 10:06:18第一步在清华大学开源镜像站找到自己的linux系统版本我的是Ubuntu 18.04LTS:# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释deb ... -
Ubuntu源列表的备份及恢复
2018-09-10 17:11:21Ubuntu源列表的备份方法: sudo cp /etc/apt/sources.lst /etc/apt/sources.list_backup 做一下备份,如果以后源列表无意毁坏了,可以恢复一下, 如下: sudo cp /etc/apt/sources.list_backup /etc/... -
关于ubuntu源的选择问题
2016-07-07 17:20:57关于ubuntu源的选择问题, 可能在网上随便找个源就贴到source.list中去, 导致不能更新,下载软件。 简单的说下里面的规则,不全,后续补 --- ligf@hot ~ $ lsb_release -a No LSB modules are ... -
Ubuntu源配置
2018-03-30 15:15:42Ubuntu软件-> 下载自:-> 其他站点 点击 选择最佳服务器(将通过连接测试确定最佳镜像)多测试几次,每次的结果可能都不一样,选择阿里的源就可以,国内比较好用的源。把 可从互联网下载 下面的除了... -
更换Ubuntu源为清华源
2018-10-20 16:31:21第一步:打开终端(ctrl+alt+T),备份原有的软件源 sudo cp /etc/apt/sources.list /etc/apt/sources.list....第三步:在网上找到与自己Ubuntu对应的源,将文件内容进行替换,然后保存 网址:https://mirrors.... -
更改Ubuntu源
2018-07-12 12:26:59修改源列表Step1: 找到源列表文件。 文件位置:/etc/apt/sources.list NOTE: 在修改之前记得先备份一份, cp /etc/apt/sources.list /etc/apt/sources.list.backupStep2: 修改源列表。 中国科技大学的源一般使用起来... -
Ubuntu 源 16.04 比较全的源 Ubuntu software 里面软件较全
2016-11-19 20:10:00deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main restricted #Added by software-properties deb http://mirror.neu.edu.cn/ubuntu/ xenial main restricted deb-src http://mirror.neu.edu.cn/ubuntu -
ubuntu源配置文件/etc/apt/sources.list 不存在问题
2020-06-29 15:02:34ubuntu源配置文件 /etc/apt/sources.list 不存在问题 进入/etc/apt目录, cd /etc/apt ls 若没有sources.list,进行2步 用gedit编辑sources.list sudo gedit /etc/apt/sources.list # ...在阿里云镜像中找到与... -
ubuntu源的区分
2017-04-13 16:18:56使用ubuntu的时候,由于网络原因,大家经常会把源改为国内的163或者阿里云的镜像源,但是在改源的同时,需要注意一下不同版本的系统,用的源也是有区别的。ubuntu不同版本的命名ubuntu每一个版本都有一个代号,根据... -
ubuntu源更改
2013-06-27 10:14:01ubuntu下不能安装rpm命令的 需要改/etc/apt/sources.list , 11.04版本已经不支持natty,但可以使用old-releases源 deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe ... -
ubuntu 源仓库说明
2016-06-23 11:19:15ubuntu网易源: deb ... -
yum源/ubuntu源的制作与配置
2019-06-24 13:54:29一、制作/配置yum源 1.1 制作yum源 进入rpm包所在的文件夹中,执行如下命令,生成repodata文件夹。 createrepo ./ 1.2 配置yum源 进入/etc/yum.repos.d/*.repo文件,编辑内容可参考如下: [centos7.x] name=7... -
Ubuntu源问题(换源软件源更新源)
2015-10-04 13:39:21问题一: 执行命令 sudo apt-get update ...W: Failed to fetch http://mirrors.sohu.com/ubuntu/dists/precise/universe/i18n/Index No Hash entry in Release file /var/lib/apt/lists/partial/mirrors.sohu -
老版本Ubuntu源
2011-11-09 15:23:39今天因为项目需要安装Ubuntu8.10,...从朋友那里得知,源列表如下面设置才能更新: deb http://old-releases.ubuntu.com/ubuntu/ intrepid main multiverse restricted universe deb http://old-releases.ubuntu.com/u -
Debian以及Ubuntu源设置
2019-06-14 16:59:41在使用Debian和Ubuntu时,经常为了软件源烦恼,最近发现了一个网页,可以根据国家来设置源的地址,效果还不错。 Debian: http://debgen.simplylinux.ch/ Ubuntu: http://repogen.simplylinux.ch/ 打开就可以... -
Ubuntu源没法更新解决办法
2018-03-30 17:10:43在http://repogen.simplylinux.ch/创建新的sources.list:1. 选择国家2.选择相邻的ubuntu版本3. 选择"Ubuntu Branches"4. 生成sources.list5. 把得到内容替换到/etc/apt/sources.list... -
Ubuntu16.04 vim安装及使用和添加国内Ubuntu源
2018-11-12 16:24:04添加国内Ubuntu源 首先备份源列表 sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup 打开sources.list文件修改,可添加163和阿里云的的源,修改/etc/apt/sources.list文件在头部添加如下內容... -
Ubuntu源使用总结
2011-11-23 23:06:19最近换工作,第一次接触到Ubuntu,由于使用的Ubuntu上面没有安装ssh服务。所以我开始动手安装openssh-server服务,第一次我是csdn上面下载了一篇手把手教我安装ssh服务,里面包括三个包,第一个我不知道,第二三个包... -
Ubuntu源和scim安装等 pinyin ubuntu拼音
2009-10-14 09:11:00因为ubuntu自带的源速度不是很快,所以需要替换掉那些源。去官方网站上找到以下这些源:源地址例如我选用了中科大的源:deb ... -
装了yum没有适合的Ubuntu源 转载
2016-12-14 23:12:26http://forum.ubuntu.org.cn/viewtopic.php?t=466393 首先,如果是因为看到了一篇基于redhat系的...然后直接回答你的问题:可以的,ubuntu的源里就有yum 但是装了yum没有源可以用,用Fedora等等的源很可能搞出问题 -
Ubuntu下修改ubuntu源,完成Redis Desktop Manager的安装,
2016-06-18 19:58:19Redis Desktop Manager,这个...再说安装过程ubuntu10+以上,才支持额。 方法一 双击安装即可,如果安装不上,说明缺少依赖组建,按照第二种方法即可。 方法二 1. sudo dpkg -i redis-desktop-manager_0.8.3-120_amd6 -
ubuntu源更新出错的解决方法
2013-06-20 08:27:35把 ubuntu的源换了163的后,执行 aptitude update.出错: 1. W: Failed to fetch bzip2:/var/lib/apt/lists/partial/mirrors.sohu.... -
安装VIM出错和更新Ubuntu源
2014-07-28 15:36:39近日在ubuntu-12.04.1下安装vim时遇到如下问题: garfield@ubuntu:~$ sudapt-get install vimstReading package lists... DoneBuilding dependency tree Reading state information... DoneSome packages could ...