我的系統是 linux mint 16 - 64 位,當我運行時sudo apt-get update
,它以以下錯誤結束:
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/binary-i386/Packages 404 Not Found
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
當我嘗試運行時sudo apt-get install apache2
,出現以下錯誤:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
apache2 : Depends: apache2-bin (= 2.4.6-2ubuntu2.2) but it is not going to be installed
Depends: apache2-data (= 2.4.6-2ubuntu2.2) but it is not going to be installed
bluez-cups : Depends: cups
language-pack-en-base : Depends: locales (>= 2.3.6) but it is not going to be installed
language-pack-gnome-en-base : Depends: locales (>= 2.3.6) but it is not going to be installed
lsb-cxx : Depends: lsb-core (>= 4.1+Debian11ubuntu4)
lsb-graphics : Depends: lsb-core (>= 4.1+Debian11ubuntu4)
lsb-languages : Depends: lsb-core (>= 4.1+Debian11ubuntu4)
lsb-multimedia : Depends: lsb-core (>= 4.1+Debian11ubuntu4)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
當我運行時sudo apt-get -f install
,它給出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
alien at debugedit gcc-4.8-base:i386 lib32z1 libc6-i386 libgdict-1.0-6
libgdict-common libgsoap3 libjpeg62 librpmbuild3 librpmsign1 libvncserver0
lsb-security ncurses-term pax rpm
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
evince evince-common libevdocument3-4 libevview3-3
Suggested packages:
nautilus apparmor
The following packages will be REMOVED:
bluez-cups language-pack-en language-pack-en-base language-pack-gnome-en
language-pack-gnome-en-base lsb-cxx lsb-desktop lsb-graphics lsb-languages
lsb-multimedia
The following packages will be upgraded:
evince evince-common libevdocument3-4 libevview3-3
4 upgraded, 0 newly installed, 10 to remove and 14 not upgraded.
4 not fully installed or removed.
Need to get 904 kB of archives.
After this operation, 17.3 MB disk space will be freed.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
evince libevdocument3-4 libevview3-3 evince-common
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ saucy/main evince amd64 3.10.0-0ubuntu2
404 Not Found
Err http://archive.ubuntu.com/ubuntu/ saucy/main libevdocument3-4 amd64 3.10.0-0ubuntu2
404 Not Found
Err http://archive.ubuntu.com/ubuntu/ saucy/main libevview3-3 amd64 3.10.0-0ubuntu2
404 Not Found
Err http://archive.ubuntu.com/ubuntu/ saucy/main evince-common all 3.10.0-0ubuntu2
404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/evince/evince_3.10.0-0ubuntu2_amd64.deb 404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/evince/libevdocument3-4_3.10.0-0ubuntu2_amd64.deb 404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/evince/libevview3-3_3.10.0-0ubuntu2_amd64.deb 404 Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/evince/evince-common_3.10.0-0ubuntu2_all.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我的sources.list
似乎不是應該的樣子:
#deb cdrom:[Linux Mint 16 _petra_ - Release amd64 20131126]/ saucy contrib main non-free
deb http://deb.torproject.org/torproject.org saucy main
deb http://download.virtualbox.org/virtualbox/debian vivid contrib
如何更正我的更新和安裝?我想由於無法到達伺服器而出現了一些問題archive.ubuntu.com/
,但儘管如此,我們可以做些什麼嗎?
答案1
如圖所示,Ubuntu Saucy Salamander (13.10) 已於 2014 年 7 月停產這裡。您收到錯誤是因為找不到文件(輸出末尾的錯誤 404apt-get update
表示未找到文件)。
如果您查看儲存庫http://archive.ubuntu.com/ubuntu/dists/您會注意到saucy
那裡沒有列出 - 因此會出現 404 錯誤。
答案2
您仍然使用 Saucy 有什麼原因嗎?此版本自 2014 年 7 月起已停止使用。
但是,我強烈地建議升級到 Ubuntu 的最新版本。目前的 LTS 版本是 14.04 Trusty,目前的非 LTS 版本是 15.10 Wily。
以下是如何將 EoL 發行版升級到最新且受支援的版本的指南。https://help.ubuntu.com/community/EOLUpgrades/
答案3
如果您確實想執行此操作,儘管其他答案中存在所有警告,您可以嘗試使用 root 權限打開 /etc/apt/sources.list 和 /etc/apt/sources.list.d/ 中的所有文字檔案並替換每次提到LANGUAGECODE.archive.ubuntu.com
與old-releases.ubuntu.com
.
由於您在sources.list 中找不到任何內容,因此我希望在sources.list.d 中應該有一些內容。 (我沒有使用 Linux Mint,所以我無法確認。)