Ubuntu14.04 desktop使用网易163镜像源

Wesley13
• 阅读 718

修改/etc/apt/sources.list

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

或者下载

http://mirrors.163.com/.help/sources.list.trusty替换/etc/apt/sources.list

具体步骤:

默认ubuntu14.04 destktop版没有安装wget 可先安装下wget

sudo apt-get install wget

然后切换到/etc/apt目录下

cd /etc/apt

将系统默认的配置文件重命名

sudo mv /etc/apt/sources.list /etc/apt/sources.list.default

然后将下载的sources.list.trusty,放到/etc/apt/sources.list

sudo wget http://mirrors.163.com/.help/sources.list.trusty

重命名

sudo mv sources.list.trusty sources.list

更新软件源列表

sudo apt-get update

参考资料

http://mirrors.163.com/.help/ubuntu.html

点赞
收藏
评论区
推荐文章
Wesley13 Wesley13
3年前
Ubuntu更换snap国内镜像源
1.1进入apt的源文件列表所在文件夹   cd/etc/apt 1.2 备份sources.list源文件   sudocpsources.listsources.list\_back 1.3 进入阿里云镜像站,找到ubuntu的镜像列表    https://developer.aliyun.com/
Wesley13 Wesley13
3年前
ubuntu 16.04 跑 docker
Ubuntu的软件源配置文件是 /etc/apt/sources.list换国内的,不然会疯。下面是清华大学滴:默认注释了源码镜像以提高aptupdate速度,如有需要可自行取消注释debhttps://mirrors.tuna.tsinghua.edu.cn/ubuntu/xenialmainrestric
Stella981 Stella981
3年前
Linux安装软件、python开发环境
软件安装与卸载更新Ubuntu软件下载地址1\.寻找国内镜像源所谓的镜像源:可以理解为提供下载软件的地方,比如Android手机上可以下载软件的91手机助手;iOS手机上可以下载软件的AppStore2\.备份Ubuntu默认的源地址sudocp/etc/apt
Stella981 Stella981
3年前
Redhat 6 升级 openssl
本文涉及rpm源码包下载地址:http://mirrors.163.com/centos/6/os/x86\_64/Packages安装之前配置环境变量/etc/profile增加以下几行exportC_INCLUDE_PATH/usr/local/include:$C_INCLUDE_PATHexportLD_LIBRA
Stella981 Stella981
3年前
Dockerfile创建tomcat和jdk,并发布java项目
1.准备好需要的jdk和tomcatkun@ubuntu:~$cdtomcatdocker/kun@ubuntu:~/tomcatdocker$lltotal245232drwxrwxrx4kunkun4096May611:34./drwx4ku
Stella981 Stella981
3年前
CentOS yum安装Oracle10g
1.配置网易163的yum源:1.1下载yum安装文件 注意,如果下载时找不到文件,就登录到:http://mirrors.163.com/centos/6/os/x86\_64/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2
Wesley13 Wesley13
3年前
Ubuntu apt更换为阿里源
apt源配置在/etc/apt/sources.list,首先备份一下:cd/etc/apt/cpsources.listsources.list.bak然后修改sources.list为:debhttp://mirrors.aliyun.com/ubuntu/xenialmainrest
Stella981 Stella981
3年前
CentOS服务器安装笔记(二)
6系统初始化6.1更新软件源(可选,本次安装未使用)可以更新自带的yum源为国内的搜狐和网易源,但实际测试自带的源速度很快(400600K/s),因此本步骤可选。安装步骤1、下载repo文件下载地址:http://mirrors.163.com/.help/CentOS6Base163.repo(http
Wesley13 Wesley13
3年前
ubuntu16.04 国内源(网易、阿里)
ubuntu16.04网易源debhttp://mirrors.163.com/ubuntu/xenialmainrestricteduniversemultiversedebhttp://mirrors.163.com/ubuntu/xenialsecuritymainrestricted
Wesley13 Wesley13
3年前
Ubuntu16.04安装docker
1.更换镜像(1)备份原来的源sudocp/etc/apt/sources.list/etc/apt/sources.list.bakcup(2)编辑sources.listssudovim/etc/apt.sources.list添加如下内容:debhttp://mirrors.aliyun.com/ubuntu