Ubuntu下载软件包网速过慢的解决方法
1.问题:我们下载好的Ubantu,发现网速太慢了,下载一个软件包下载了几个小时都不一定得
2.什么原因造成的呢?
因为我们安装好ubuntu双系统\单系统后,默认的软件更新源是国外的,
我们可以打开源目录看看:
先切换到目录:cd /etc/apt
查看/编辑目录:sudo vi sources.list
我们可以发现:里面的源都是关于cn.archive.ubuntu.com
这个就是国外的软件更新源
3.怎么解决呢?
国外的软件更新源在国内使用速度很慢,需要更换成国内的源,这样才能正常安装和更新软件。
怎么更换呢?
打开终端命令行界面中,先将sources.list文件备份一个,更新源服务器地址就是存在这个文件里面的,所以主要就是对这个文件进行编辑就可以了,也是很简单的。
1.先切换到目录:cd /etc/apt
2.备份源(防止意外或后续需要)
输入:sudo cp sources.list sources.list.old
3.编辑源:sudo vi sources.list
4.将文件中内容全部删除
5.更换源,有一下几种源可以选择,推荐阿里云
(1)、阿里云
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
(2)、清华大学
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
(3)、中科大
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
6、复制其中一种粘贴完后,保存退出。然后别忘了更新缓存。
输入:sudo apt-get update
更新缓存需要一点时间,更新完就可以了。
执行sudo apt-get update后续出现的问题,如没出现请忽略:
如输入:sudo apt-get update后出现这些信息
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Unknown Multi-Arch type 'no' for package 'libxapian-dev'
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: Unknown Multi-Arch type 'no' for package 'kwin'
W: Unknown Multi-Arch type 'no' for package 'kwin-dev'
W: Unknown Multi-Arch type 'no' for package 'kwin-wayland'
W: Unknown Multi-Arch type 'no' for package 'kwin-x11'
W: Unknown Multi-Arch type 'no' for package 'libkf5sysguard-dev'
W: Ignoring Provides line with DepCompareOp for package php-psr-http-message-implementation
W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation
W: Ignoring Provides line with DepCompareOp for package php-seclib
W: Ignoring Provides line with DepCompareOp for package php-sabre-http
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Unknown Multi-Arch type 'no' for package 'libxapian-dev'
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: Unknown Multi-Arch type 'no' for package 'kwin-dev'
W: Unknown Multi-Arch type 'no' for package 'kwin-wayland'
W: Unknown Multi-Arch type 'no' for package 'kwin-x11'
W: Unknown Multi-Arch type 'no' for package 'libkf5sysguard-dev'
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Ignoring Provides line with DepCompareOp for package xserver-xorg
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Unknown Multi-Arch type 'no' for package 'compiz-core'
W: Unknown Multi-Arch type 'no' for package 'compiz-gnome'
W: Ignoring Provides line with DepCompareOp for package xserver-xorg
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: 您可能需要运行 apt-get update 来解决这些问题
怎么办呢?
执行如下命令:sudo apt-get install -f apt
再次输入:sudo apt-get update
OK,问题解决
Ubuntu下载软件包网速过慢的解决方法相关推荐
- 安装win10正式版后网速变慢的解决方法
安装win10正式版的用户越来越多,产生的问题也越来越多.最近,就有一些win10正式版用户反映自己在安装了win10正式版系统后,上网速度变的越来越慢了.这该怎么办呢?接下来,小编就向大家分享安装w ...
- antimalware service executable占用内存过高_Win10系统svchost.exe进程占用内存和网速过高的解决方法...
我们在使用Windows10系统的过程中,不少用户一旦发现电脑异常,例如异常卡顿,就会查看一下任务管理器,是否有进程过高占用了CPU.内存.网络等,而在任务管理器中发现了一个名称为"svch ...
- ubuntu 下载速度快但网页打开慢的解决方法
ubuntu 下载速度快但网页打开慢的解决方法 这几乎是一篇转贴的文章,但是为了让更多喜欢Linux的朋友可以尽快解决网络的问题,我希望把这作为首页发布. 我最近由于工作的需要,把之前的基于兴趣而安装 ...
- win10系统更新后网速变慢的解决方法
最近有很多用户更新win10系统之后,发现网速变慢了,每次打开网页的时候解析速度都特别的慢,这很有可能是win10周年更新中"接收窗口自动调节级别"选项导致的,在默认的情况下,该选 ...
- vmware中ubuntu有线网络网速只有10Mb/s解决办法
问题描述 下载东西时发现网速总是几百K,检查网络设置发现有线网络速度只有 10Mb/s,但宿主机为千兆网卡. 解决方法 尝试过网上的: ethtool -s ens33 speed 1000 dupl ...
- 家里宽带使用有线连接网速很快但是使用无线连接网速很慢的解决方法
背景:家里宽带连接正常,第一次使用有线连接测试下载速度有80Mbps左右,第二次使用wifi间隔一堵墙连接测试下载速度只有10Mbps左右,第三次在放置无线路由器的房间里测试发现下载速度能达到40Mb ...
- ubuntu实时显示网速cpu占用和内存占用率
ubuntu实时显示网速cpu占用和内存占用率 大家在使用ubuntu的时候,有没有想让它实时显示网速,内存占用率,或者cpu占用率呢?现在我就教大家怎么实现,就像下面这样 1. 添加indicato ...
- 如何使用iperf的图形化软件Jperf,并实现windows和Ubuntu之间的网速检测?
PS:翻了很多的Blog,调试了很多次,才会用Jperf这个软件在windows和Ubuntu之间测试网速.!应该说是实现了这样的效果吧. 还没踩坑或已经入坑的小伙伴们,请于此脱坑咯 总结下思路: 在 ...
- 如何在Ubuntu搭建LibreSpeed网速测试服务器
如何在Ubuntu搭建LibreSpeed网速测试服务器 一.安装apache2 php服务 sudo apt install apache2 php 二.下载LibreSpeed git clone ...
- ubuntu系统服务器网速测试方法
ubuntu如何测试网速,安装speedtest-cli即可.具体为: 1.sudo apt install speedtest-cli 2.speedtest-cli 运行speedtest-cli ...
最新文章
- C++ 智能指针(unique_ptr / shared_ptr)代码实现
- sdut 2137 数据结构实验之求二叉树后序遍历和层次遍历
- Jquery中使用Validate插件使表单验证更加简单
- 邯郸学院计算机专业是本科还是专科,邯郸学院是大学吗 是本科还是专科
- mysql-3 检索数据(1)
- gimp修改图片部分区域的对比度
- HBase之重试机制
- Python线程类首先是一个类
- ThreadLocal 内存泄漏问题
- 大三学生独自破解逆天AI模型:我只是把撩妹的时间,都用来研究机器学习了...
- 【算法】经典的ML算法(后续结合工作实践完善心得)
- 王者荣耀ai视频战报ai剪辑生成方法
- 一个废物大学生对于视频爬取的小小的总结
- PS学习笔记(88天和我一起学会PS)(8/88)
- iOSRGB常用的色值
- 稿费一般多少钱一千字_写网络小说能挣多少钱,稿费都是怎么算的?
- Nginx 负载均衡动静分离配置
- PS Tray Factory win7 系统托盘 软件用法
- 用树莓派DIY波士顿机器狗,帮你省下50万:教程开源,人人皆可上手
- DBoW、VLAD、NetVLAD、NeXtVLAD资料整理
热门文章
- android edge 去广告,edge浏览器怎么去广告? edge浏览器去广告插件adsafe的使用方法...
- 大数据 银行业应用案例_银行业市场分析大数据项目
- 肢解诺兰的逻辑:当科幻背离科学
- mysql怎么增加字数_数据库字段如何设置最大字数
- linux系统支持什么输入法,Linux系统常用输入法框架
- Studio 3T使用教程,本人详细介绍连接Mongodb过程
- HTTP协议:工作原理
- python下载urllib3_使用urllib3下载网页
- C++文件操作之写文件
- Redis 雪崩、穿透、击穿