为什么linux使用apt-get命令下载软件的时候速度这么慢

2024-11-29 19:16:31
推荐回答(3个)
回答1:

网速问题,或者是源的问题,本人之前都遇到过这个问题,用过这个多的源之后感觉 雨林木风 的源比较快 4m的网速可以达到400k左右,建议试一下这个源 如果你的版本是ubuntu 8.04(hardy),请添加以下内容 deb http://archive.ylmf.net/ubuntu/hardy main restricted deb-src http://archive.ylmf.net/ubuntu/hardy main restricted deb http://archive.ylmf.net/ubuntu/hardy-updates main restricted deb-src http://archive.ylmf.net/ubuntu/hardy-updates main restricted deb http://archive.ylmf.net/ubuntu/hardy universe deb-src http://archive.ylmf.net/ubuntu/hardy universe deb http://archive.ylmf.net/ubuntu/hardy-updates universe deb-src http://archive.ylmf.net/ubuntu/hardy-updates universe deb http://archive.ylmf.net/ubuntu/hardy multiverse deb-src http://archive.ylmf.net/ubuntu/hardy multiverse deb http://archive.ylmf.net/ubuntu/hardy-updates multiverse deb-src http://archive.ylmf.net/ubuntu/hardy-updates multiverse 如果你的版本是ubuntu 8.10(intrepid),请添加以下内容 deb http://archive.ylmf.net/ubuntu/intrepid main restricted deb-src http://archive.ylmf.net/ubuntu/intrepid main restricted deb http://archive.ylmf.net/ubuntu/intrepid-updates main restricted deb-src http://archive.ylmf.net/ubuntu/intrepid-updates main restricted deb http://archive.ylmf.net/ubuntu/intrepid universe deb-src http://archive.ylmf.net/ubuntu/intrepid universe deb http://archive.ylmf.net/ubuntu/intrepid-updates universe deb-src http://archive.ylmf.net/ubuntu/intrepid-updates universe deb http://archive.ylmf.net/ubuntu/intrepid multiverse deb-src http://archive.ylmf.net/ubuntu/intrepid multiverse deb http://archive.ylmf.net/ubuntu/intrepid-updates multiverse deb-src http://archive.ylmf.net/ubuntu/intrepid-updates multiverse 如果你的版本是ubuntu 9.04(jaunty),请添加以下内容 deb http://archive.ylmf.net/ubuntu/jaunty main restricted deb-src http://archive.ylmf.net/ubuntu/jaunty main restricted deb http://archive.ylmf.net/ubuntu/jaunty-updates main restricted deb-src http://archive.ylmf.net/ubuntu/jaunty-updates main restricted deb http://archive.ylmf.net/ubuntu/jaunty universe deb-src http://archive.ylmf.net/ubuntu/jaunty universe deb http://archive.ylmf.net/ubuntu/jaunty-updates universe deb-src http://archive.ylmf.net/ubuntu/jaunty-updates universe deb http://archive.ylmf.net/ubuntu/jaunty multiverse deb-src http://archive.ylmf.net/ubuntu/jaunty multiverse deb http://archive.ylmf.net/ubuntu/jaunty-updates multiverse deb-src http://archive.ylmf.net/ubuntu/jaunty-updates multiverse 如果你的版本是ubuntu 9.10(karmic),请添加以下内容 deb http://archive.ylmf.net/ubuntu/karmic main restricted deb-src http://archive.ylmf.net/ubuntu/karmic main restricted deb http://archive.ylmf.net/ubuntu/karmic-updates main restricted deb-src http://archive.ylmf.net/ubuntu/karmic-updates main restricted deb http://archive.ylmf.net/ubuntu/karmic universe deb-src http://archive.ylmf.net/ubuntu/karmic universe deb http://archive.ylmf.net/ubuntu/karmic-updates universe deb-src http://archive.ylmf.net/ubuntu/karmic-updates universe deb http://archive.ylmf.net/ubuntu/karmic multiverse deb-src http://archive.ylmf.net/ubuntu/karmic multiverse deb http://archive.ylmf.net/ubuntu/karmic-updates multiverse deb-src http://archive.ylmf.net/ubuntu/karmic-updates multiverse

回答2:

用apt-get下载软件快慢取决于网速以及软件源,如果软件源本身速度不行,可以通过更改软件源来解决下载速度慢的问题。
1、首先,备份一下Ubuntu 12.10 原来的源地址列表文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
2、然后进行修改
sudo gedit /etc/apt/sources.list
可以在里面添加资源地址,下面是网上找到的网易的源(163源,无论是不是教育网,速度都很快)
deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
3、添加好后保存,再输入 sudo apt-get update 就可以更新了。

回答3:

网络问题啊