ubuntu16.04 apt-get 速度慢问题
来源:互联网 发布:python3防止sql注入 编辑:程序博客网 时间:2024/05/19 15:19
今天在用虚拟机安装编译linux内核所需依赖库的时候,使用 apt-get 指令进行安装速度非常之不稳定,而且大多时候都很慢。原因是其默认源在国外,因此速度自然不会很快。于是换成阿里的源,速度明显快了很多(如果是自身网络问题那就没办法了),以下是换源的步骤。
1.打开终端,首先最好备份一下原来的source文件:sudo cp sources.list sources.list.bak 。
2.然后打开source文件,sudo gedit /etc/apt/source.list,将内容替换为:
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http:
//archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http:
//mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http:
//mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http:
//mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http:
//mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http:
//mirrors.aliyun.com/ubuntu/ xenial universe
deb http:
//mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http:
//mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http:
//mirrors.aliyun.com/ubuntu/ xenial-updates 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 #Added by software-properties
deb http:
//archive.canonical.com/ubuntu xenial partner
deb-src http:
//archive.canonical.com/ubuntu xenial partner
deb http:
//mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http:
//mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http:
//mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http:
//mirrors.aliyun.com/ubuntu/ xenial-security multiverse
3.执行更新:
sudo apt-
get
update
1 0
- ubuntu16.04 apt-get 速度慢问题
- sudo apt-get install wine 速度非常慢的解决方法
- ubuntu apt-get 速度慢 切换 阿里的源
- apt-get源列表解决apt-get是下载速度慢
- apt-get/pip/wget速度慢?花式加速apt-get/pip/wget下载
- Ubuntu14.04下apt下载速度慢
- ubuntu16.04apt-get错误解决
- Ubuntu16.04:sudo apt-get update
- Ubuntu16.04终端执行`sudo apt-get update`遇到appstream问题
- 【Ubuntu16】apt-get安装MariaDB
- Ubuntu上使用apt-get安装软件的速度问题
- ubuntu16.04无线Wifi上网速度慢的解决方法
- ubuntu16.04 apt-get update 失败解决。(虚拟机环境下)
- ubuntu:apt-get问题
- linux apt-get问题
- apt-get 相关问题
- ubuntu的apt-get下载慢
- apt-get install 下载太慢怎么办,用apt-fast!
- 循环队列以及full/empty条件的判断
- Intellij IDEA maven编译中文乱码
- java 通过SSL/TLS加密https建立连接
- 3.3(1.委托 2.事件 3.字典)
- adb shell 相关,持续更新
- ubuntu16.04 apt-get 速度慢问题
- 第五届蓝桥杯java程序设计 c组决赛试题 年龄巧合
- CJOJ 1217 【HAOI2005】路由选择问题
- Codeforces Round #408 (Div. 2) A.Buying A House【模拟】水题~
- UICollectionView拾遗
- 数据结构课下复习1
- swust.oj.1075
- 飞翔nyoj195
- Lightoj1111——Best Picnic Ever(dfs)