apt-get无法下载,一些网址Not Found 404
apt-get無法下載,網址報 Not Found 404,原因是apt軟件下載源有問題。
1.將/etc/apt/source.list里的內容替換。
? 在其它可以下載apt的ubuntu機器中拷貝過來覆蓋此文件,再執行apt-get update更新source list。
2.“軟件更新管理”->"設置"->“ubuntu軟件”->“下載自”中修改軟件下載源。
轉自:?http://blog.csdn.net/cjsycyl/article/details/32702745
有時會遇到能 ping 通外網,但是無法更新軟件的情況。
如: 正在讀取軟件包列表... 有錯誤!??
解決方法如下:
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
5.2安裝編譯環境的軟件可能會出現的問題
下列軟件包有未滿足的依賴關系:?libasound2:?破壞:?libasound2-plugins?(<?1.0.24-0ubuntu3)?但是?1.0.22-0ubuntu6?正要被安裝??libglib2.0-0:?破壞:?gnome-control-center?(<?1:3)?但是?1:2.30.0-0ubuntu4?正要被安裝??ppp:?破壞:?network-manager?(<=?0.8.0.999-1)?但是?0.8-0ubuntu3?正要被安裝E:?破損的軟件包
某些源有問題,為高版本?ubuntu的源?,刪除即可,如安裝高版本的git所用的源就是ubuntu?10.4之后的源,用在10.04上就可以會有問題,引起此提示。
在終端中執行:gedit?/etc/apt/source.list
把文件的最后?deb?http://ftp.de.debian.org/debian?sid?main?刪除,并保存退出
回到終端中執行:sudo?apt-get?update
再次重新安裝編譯環境的軟件
對于不同的版本使用的是不同的庫,如下,根據不同版本,替換名稱即可。
lucid(10.04) ??
Natty(11.04)
Oneiric(11.10)
Precise(12.04)
Quantal(12.10)
? ? ? ?Utopic(14.10)
? ? ? ?Vivid(15.04)
? ? ? ?Wily(15.10)
? ? ? ?Xenial(16.04)
ubuntu 10.04 更新源 sources.list(我用的是網易的源)
Ubuntu系統下更新 sources.list
在終端執行以下命令(第一條是備份現有服務器列表,第二條是使用Gedit編輯,您也可以使用自己喜愛的編輯器編輯。)
(如果你設置的是非中文環境,但需要系統提供中文支持,那么請按照以下情況執行命令:sudo apt-get install language-pack-zh,正常的升級方法是,選擇“System”->“系統管理”->“Language Support”,系統會自動加載所需語言文件。)
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list
從以下各服務器列表內容中選擇一段替換文件中的所有內容(請根據自己網絡環境設置更新服務器,以達到最快的速度。)
* Archive.ubuntu.com 更新服務器(歐洲):
#
deb http://archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://archive.ubuntu.org.cn/ubuntu-cn/ dapper main restricted universe multiverse
* Ubuntu.cn99.com 更新服務器(江蘇省常州市電信,推薦電信用戶使用。):?
deb http://ubuntu.cn99.com/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ dapper main restricted universe multiverse
* Mirror.lupaworld.com 更新服務器(浙江省杭州市電信,亞洲地區官方更新服務器,推薦全國用戶使用。):?
deb http://cn.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn dapper main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
* 上海市 上海交通大學 更新服務器(教育網,推薦校園網和網通用戶使用。)(目前已無法使用):?
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-updates main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ dapper main multiverse restricted universe
* 北京市清華大學 更新服務器(教育網,推薦校園網和網通用戶使用。):?
deb http://mirror9.net9.org/ubuntu/ dapper main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ dapper-backports main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ dapper-proposed main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ dapper-security main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu/ dapper-updates main multiverse restricted universe
deb http://mirror9.net9.org/ubuntu-cn/ dapper main multiverse restricted universe
* 中國 臺灣省臺灣大學 更新服務器(推薦網通用戶使用,電信PING平均響應速度41MS。)(強烈推薦,此源比較完整,較少出現同步問題)?
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-security main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-security main restricted universe multiverse
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ dapper main multiverse restricted universe
* Mirror.vmmatrix.net 更新服務器(上海市電信,推薦電信網通用戶使用。)(目前已無法使用):?
deb http://mirror.vmmatrix.net/ubuntu/ dapper main restricted universe multiverse
deb-src http://mirror.vmmatrix.net/ubuntu/ dapper main restricted universe multiverse
deb http://mirror.vmmatrix.net/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://mirror.vmmatrix.net/ubuntu/ dapper-updates main restricted universe multiverse
deb http://mirror.vmmatrix.net/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://mirror.vmmatrix.net/ubuntu/ dapper-backports main restricted universe multiverse
deb http://mirror.vmmatrix.net/ubuntu/ dapper-security main restricted universe multiverse
deb-src http://mirror.vmmatrix.net/ubuntu/ dapper-security main restricted universe multiverse
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ dapper main multiverse restricted universe
ubuntu.cnsite.org 更新服務器 (福建省福州市 電信):
deb http://ubuntu.cnsite.org/ubuntu/ dapper main restricted universe multiverse
deb-src http://ubuntu.cnsite.org/ubuntu/ dapper main restricted universe multiverse
deb http://ubuntu.cnsite.org/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://ubuntu.cnsite.org/ubuntu/ dapper-updates main restricted universe multiverse
deb http://ubuntu.cnsite.org/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://ubuntu.cnsite.org/ubuntu/ dapper-backports main restricted universe multiverse
deb http://ubuntu.cnsite.org/ubuntu/ dapper-security main restricted universe multiverse
deb-src http://ubuntu.cnsite.org/ubuntu/ dapper-security main restricted universe multiverse
deb http://ubuntu.cnsite.org/ubuntu-cn/ dapper main multiverse restricted universe
*
到以下網址可以自定義產生若干源:http://www.ubuntulinux.nl/source-o-matic 以下網址有極其全面的源,以供補充:http://italy.copybase.ch/blog/lista-repository- sourceslist-ottimizzata-per-ubuntu-kubuntu-linux/?
# 保存編輯好的文件,執行以下命令更新。
保存編輯好的文件,執行以下命令更新。
sudo apt-get update
sudo apt-get dist-upgrade
ubuntu 10.04 更新源 sources.list?
我也來湊湊人熱鬧,我是北京網通用戶,從網上搜集了很多,能用的不多,總結了下.
?
#uestc(成都市 電子科技大學更新服務器,推薦校園網和網通用戶使用)
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main multiverse restricted universe
deb http://ubuntu.uestc.edu.cn/ubuntu/ lucid-updates main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-backports main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-proposed main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-security main multiverse restricted universe
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ lucid-updates main multiverse restricted universe
#網易
deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted
#sjtu(上海交通大學更新服務器)
deb http://ftp.sjtu.edu.cn/ubuntu/ lucid main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ lucid-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ lucid-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ lucid-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ lucid-updates main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ lucid main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ lucid-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ lucid-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ lucid-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ lucid-updates main multiverse restricted universe
#SRT
deb http://ubuntu.srt.cn/ubuntu/ lucid main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-security main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-updates main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-backports main restricted universe multiverse
#cn99
deb http://ubuntu.cn99.com/ubuntu/ lucid main multiverse restricted universe
deb http://ubuntu.cn99.com/ubuntu/ lucid-backports main multiverse restricted universe
deb http://ubuntu.cn99.com/ubuntu/ lucid-proposed main multiverse restricted universe
deb http://ubuntu.cn99.com/ubuntu/ lucid-security main multiverse restricted universe
deb http://ubuntu.cn99.com/ubuntu/ lucid-updates main multiverse restricted universe
deb-src http://ubuntu.cn99.com/ubuntu/ lucid main multiverse restricted universe
deb-src http://ubuntu.cn99.com/ubuntu/ lucid-backports main multiverse restricted universe
deb-src http://ubuntu.cn99.com/ubuntu/ lucid-proposed main multiverse restricted universe
deb-src http://ubuntu.cn99.com/ubuntu/ lucid-security main multiverse restricted universe
deb-src http://ubuntu.cn99.com/ubuntu/ lucid-updates main multiverse restricted universe
總結
以上是生活随笔為你收集整理的apt-get无法下载,一些网址Not Found 404的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: eureka注册中心HA集群搭建
- 下一篇: 互联网晚报 | 4月11日 星期一 |