ubuntu 下载速度太慢
来源:互联网 发布:为什么淘宝电脑便宜 编辑:程序博客网 时间:2024/04/30 04:38
问题:
使用apt-get时,更新的速度太慢,记得之前使用公司的virtual-box更新时一点都不慢
解决方式:
修改ubuntu的软件源
打开sources.list文件
$ sudo vim /etc/apt/sources.list (最好把原有的文件做个备份,将原有的文件改个名字,创建个新的文件 /etc/apt/sources.list),(备份命令 cp ,创建文件命令touch)
修改文件的内容为:
# # deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main restricted# deb cdrom:[Ubuntu-Server 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main restricted#mirrors.163.com deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to# newer versions of the distribution.deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricteddeb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted## Major bug fix updates produced after the final release of the## distribution.deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricteddeb-src http://us.archive.ubuntu.com/ubuntu/ trusty-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://us.archive.ubuntu.com/ubuntu/ trusty universedeb-src http://us.archive.ubuntu.com/ubuntu/ trusty universedeb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universedeb-src http://us.archive.ubuntu.com/ubuntu/ trusty-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://us.archive.ubuntu.com/ubuntu/ trusty multiversedeb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiversedeb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiversedeb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse## 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://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiversedeb http://security.ubuntu.com/ubuntu trusty-security main restricteddeb-src http://security.ubuntu.com/ubuntu trusty-security main restricteddeb http://security.ubuntu.com/ubuntu trusty-security universedeb-src http://security.ubuntu.com/ubuntu trusty-security universedeb http://security.ubuntu.com/ubuntu trusty-security multiversedeb-src http://security.ubuntu.com/ubuntu trusty-security 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 trusty partner# deb-src http://archive.canonical.com/ubuntu trusty partner## Uncomment the following two lines to add software from Ubuntu's## 'extras' repository.## This software is not part of Ubuntu, but is offered by third-party## developers who want to ship their latest software.# deb http://extras.ubuntu.com/ubuntu trusty main# deb-src http://extras.ubuntu.com/ubuntu trusty main使用 $ sudo apt-get update会发现速度好好多了。
【注意:】在复制粘贴之前最好按下insert键,因为直接按粘贴时,如果文字过长会发现部分内容会丢失
阅读全文
0 0
- ubuntu 下载速度太慢
- conda下载速度太慢
- [Android]SDK Manager下载速度太慢
- Ubuntu下git clone速度太慢
- 速度太慢
- 【转】iTunes下载速度太慢?两招帮你提速!
- maven下载速度太慢?Intellji修改maven镜像
- Ubuntu软件下载速度慢解决
- ubuntu ssh登入速度太慢的解决办法
- 下载太慢
- gradle下载太慢
- ubuntu下载太慢可以通过修改软件源解决。
- utorrent下载速度慢
- pip下载速度慢
- Cygwin下载速度慢
- 解决 ubuntu 下载安装软件速度很慢
- 新安装ubuntu安装软件时,下载速度慢解决方法
- 解决ubuntu下载的速度很慢问题
- python+selenium在Pycharm中使用alert报错问题解决
- 算法
- 线性基(bzoj 2460: [BeiJing2011]元素)
- windows bat ftp多文件上传
- 线性基学习笔记
- ubuntu 下载速度太慢
- 关键字 标识符 注释 常量和变量 运算符
- 获取app中的资源文件:反编译APK之---------apktool
- 深入理解Java虚拟机:JVM高级特性与最佳实践 第2版
- jspf和jsp的区别
- pom文件中maven-assembly-plugin插件学习
- test
- 用OGNL表达式取值栈中的值
- 【安全牛学习笔记】HTTPS攻击