无法使用 apt-get 更新或安装

无法使用 apt-get 更新或安装

我的系统是 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 月起已终止生命周期。如果您仍想安装该版本的软件包,则需要将软件包源指向 resources.list 中的 old-releases.ubuntu.com。

但是,我强烈地建议升级到 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.comold-releases.ubuntu.com.

由于您在sources.list 中找不到任何内容,因此我希望在sources.list.d 中应该有一些内容。 (我没有使用 Linux Mint,所以我无法确认。)

相关内容