Ubuntu国内源

ubuntu12.04添加国内软件源(163、sohu、ustc),编辑sources.list文件 
sudo nano /etc/apt/sources.list 
添加如下内容,保存然后sudo apt-get update
如果是其它ubuntu版本,只需把precise改为相应的版本的名字。hardy(8.04),lucid(10.04),maverick(10.10),oneiric(11.10),quantal(12.10),precise(12.04)

#163 
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse 
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse 
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse 
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse 
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse 
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse 
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse 
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse 
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse 
deb-src http://mirrors.163.com/ubuntu/precise-backports main restricted universe multiverse 
#sohu 
deb http://mirrors.sohu.com/ubuntu/ precise main restricted universe multiverse 
deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted universe multiverse 
deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted universe multiverse 
deb http://mirrors.sohu.com/ubuntu/ precise-proposed main restricted universe multiverse 
deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse 
deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted universe multiverse 
deb-src http://mirrors.sohu.com/ubuntu/ precisec-security main restricted universe multiverse 
deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted universe multiverse 
deb-src http://mirrors.sohu.com/ubuntu/ precise-proposed main restricted universe multiverse 
deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse 
#ustc 
deb http://mirrors.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse 
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse 
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse 
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse 
deb http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse 
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse 
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse 
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse 
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse 
deb-src http://mirrors.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

时间: 2024-10-12 01:01:05

Ubuntu国内源的相关文章

让Ubuntu使用阿里云国内源,解决下载速度慢问题。

阿里云镜像官方地址 http://mirrors.aliyun.com/ 软件包管理中心(推荐) 在软件包管理中心"软件源"中选择"中国的服务器"下mirros.aliyun.com即可自动使用 在终端中修改方法: sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup            #备份当前也就是默认官方的源列表 sudo gedit /etc/apt/sources.list        

Ubuntu更改国内源,设置固定IP和DNS

一 更改国内源 1 首先备份官方源,以免设置错误可恢复. $ sudo cp /etc/apt/sources.list /etc/apt/sources.list.back 2 用编辑器打开 /etc/apt/sources.list文件. $ sudo nano /etc/apt/sources.list 3 删除原有的源,在编辑器中添加新源(阿里源).如图所示: deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted uni

Ubuntu 18.04修改默认源为国内源

安装Ubuntu 18.04后,使用国外源太慢了,修改为国内源会快很多. 修改阿里源为Ubuntu 18.04默认的源 备份/etc/apt/sources.list#备份cp /etc/apt/sources.list /etc/apt/sources.list.bak 在/etc/apt/sources.list文件前面添加如下条目#添加阿里源deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multi

Ubuntu armhf 版本国内源

Ubuntu armhf 版本国内源: deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universedeb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universedeb http://mirrors.ustc.edu.cn/ubuntu-ports/ x

Ubuntu 18.04 修改默认源为国内源

1.备份/etc/apt/sources.list #备份 cp /etc/apt/sources.list /etc/apt/sources.list.bak 2.在/etc/apt/sources.list文件前面添加如下条目 #添加阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-s

docker/kubernetes国内源/镜像源解决方式

最近在使用kubeadm时,被各种连接不上搞到崩溃.费了很多力气,基本都解决了.这里统一整理了国内的一些镜像源,apt源,kubeadm源等,以便查阅. 国内镜像源 Azure China提供了目前用过的质量最好的镜像源.无论是速度还是覆盖范围.而且都支持匿名拉取,也就是不需要登录.这点特别友好. 这里,我开发了一个小的脚本azk8spull,这个脚本可以自动根据镜像名称进行解析,转换为azure的mirror镜像源域名.并进行拉取.拉取完成后会自动进行tag重命名为原本的镜像名.该脚本已经开源

ruby 编译安装,gem国内源ruby.taobao.org

centos6.6final 一.安装依赖包(使用默认CENTOS更新源): # yum install openssl* openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel 二.关闭iptables和SELINUX # service iptables stop # setenforce 0 # vi /etc/sysconfig/selin

Maven国内源设置

Maven国内源设置 目前国外的maven源访问非常慢,作为一个Java开发者,是一件很痛苦的事,而国内的maven源,oschina已经关闭,目前最好的方式,就是使用阿里云的镜像: <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/&

7.6 yum更换国内源 7.7 yum下载rpm包 7.8/7.9 源码包安装

7.6 yum更换国内源 7.7 yum下载rpm包 7.8/7.9 源码包安装 扩展 1. 配置yum源优先级 http://ask.apelearn.com/question/7168 2. 把源码包打包成rpm包 http://www.linuxidc.com/Linux/2012-09/70096.htm # 7.6  yum更换国内源 ![mark](http://oqxf7c508.bkt.clouddn.com/blog/20170812/154757717.png?imagesl