日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

apt-get无法下载,一些网址Not Found 404

發(fā)布時間:2025/3/15 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 apt-get无法下载,一些网址Not Found 404 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

apt-get無法下載,網(wǎng)址報 Not Found 404,原因是apt軟件下載源有問題。

1.將/etc/apt/source.list里的內(nèi)容替換。

? 在其它可以下載apt的ubuntu機器中拷貝過來覆蓋此文件,再執(zhí)行apt-get update更新source list。


2.“軟件更新管理”->"設置"->“ubuntu軟件”->“下載自”中修改軟件下載源。


轉(zhuǎn)自:?http://blog.csdn.net/cjsycyl/article/details/32702745



有時會遇到能 ping 通外網(wǎng),但是無法更新軟件的情況。
如: 正在讀取軟件包列表... 有錯誤!??
解決方法如下:
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安裝編譯環(huán)境的軟件可能會出現(xiàn)的問題

下列軟件包有未滿足的依賴關系:?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上就可以會有問題,引起此提示。

在終端中執(zhí)行:gedit?/etc/apt/source.list

把文件的最后?deb?http://ftp.de.debian.org/debian?sid?main?刪除,并保存退出

回到終端中執(zhí)行:sudo?apt-get?update

再次重新安裝編譯環(huán)境的軟件


對于不同的版本使用的是不同的庫,如下,根據(jù)不同版本,替換名稱即可。

lucid(10.04) ??

Natty(11.04)

Oneiric(11.10)

Precise(12.04)

Quantal(12.10)

? ? ? ?Trusty(14.04)

? ? ? ?Utopic(14.10)

? ? ? ?Vivid(15.04)

? ? ? ?Wily(15.10)

? ? ? ?Xenial(16.04)



ubuntu 10.04 更新源 sources.list(我用的是網(wǎng)易的源)


Ubuntu系統(tǒng)下更新 sources.list
在終端執(zhí)行以下命令(第一條是備份現(xiàn)有服務器列表,第二條是使用Gedit編輯,您也可以使用自己喜愛的編輯器編輯。)

(如果你設置的是非中文環(huán)境,但需要系統(tǒng)提供中文支持,那么請按照以下情況執(zhí)行命令:sudo apt-get install language-pack-zh,正常的升級方法是,選擇“System”->“系統(tǒng)管理”->“Language Support”,系統(tǒng)會自動加載所需語言文件。)


sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
sudo gedit /etc/apt/sources.list


從以下各服務器列表內(nèi)容中選擇一段替換文件中的所有內(nèi)容(請根據(jù)自己網(wǎng)絡環(huán)境設置更新服務器,以達到最快的速度。)

* 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 更新服務器(浙江省杭州市電信,亞洲地區(qū)官方更新服務器,推薦全國用戶使用。):?


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



* 上海市 上海交通大學 更新服務器(教育網(wǎng),推薦校園網(wǎng)和網(wǎng)通用戶使用。)(目前已無法使用):?


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



* 北京市清華大學 更新服務器(教育網(wǎng),推薦校園網(wǎng)和網(wǎng)通用戶使用。):?


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


* 中國 臺灣省臺灣大學 更新服務器(推薦網(wǎng)通用戶使用,電信PING平均響應速度41MS。)(強烈推薦,此源比較完整,較少出現(xiàn)同步問題)?


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 更新服務器(上海市電信,推薦電信網(wǎng)通用戶使用。)(目前已無法使用):?


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

*

到以下網(wǎng)址可以自定義產(chǎn)生若干源:http://www.ubuntulinux.nl/source-o-matic 以下網(wǎng)址有極其全面的源,以供補充:http://italy.copybase.ch/blog/lista-repository- sourceslist-ottimizzata-per-ubuntu-kubuntu-linux/?

# 保存編輯好的文件,執(zhí)行以下命令更新。

保存編輯好的文件,執(zhí)行以下命令更新。


sudo apt-get update
sudo apt-get dist-upgrade



ubuntu 10.04 更新源 sources.list?

我也來湊湊人熱鬧,我是北京網(wǎng)通用戶,從網(wǎng)上搜集了很多,能用的不多,總結了下.

?

#uestc(成都市 電子科技大學更新服務器,推薦校園網(wǎng)和網(wǎng)通用戶使用)
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

#網(wǎng)易
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的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。