无法找到任何包错误

无法找到任何包错误

在关闭我的问题(因为重复)之前,我想说我已经看过其他类似的问题,但没有找到任何合适的答案:(。

我有一个干净的 Ubuntu 10.10 设置,我正尝试通过 apt-get 命令安装软件包。但我做不到 - 显示 E:无法找到软件包错误。我正在尝试以下命令:

sudo apt-get install build-essential,sudo apt-get insatll update 等。

我查看了另一个问题,发现它依赖于 sources.list 文件 - 因此我发布了其内容:

#deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release amd64 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://il.archive.ubuntu.com/ubuntu/ maverick main restricted
deb-src http://il.archive.ubuntu.com/ubuntu/ maverick main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://il.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://il.archive.ubuntu.com/ubuntu/ maverick-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://il.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://il.archive.ubuntu.com/ubuntu/ maverick universe
deb http://il.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://il.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://il.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://il.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://il.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://il.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://il.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://il.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu maverick partner
# deb-src http://archive.canonical.com/ubuntu maverick partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu maverick main
deb-src http://extras.ubuntu.com/ubuntu maverick main

deb http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse

有人能帮帮我吗?谢谢!!

答案1

首先,Ubuntu 10.10 目前已完全不再受支持。这是一个旧版本的 Ubuntu,最好不要使用 - 您将不再获得任何安全更新。

其次

sudo apt-get install update

确实会给你一个错误(因为你告诉 apt 安装不存在的包“update”)。你想要做的是

sudo apt-get update
sudo apt-get upgrade

这将从存储库更新软件包列表(但由于 Ubuntu 10.10 已过时,因此可能没有太多需要更新的内容),并将安装在您的系统中找到的任何更新。

您可能还想在 Synaptic 中查看是否有要安装的软件包。如果不起作用,您可能需要更改下载镜像。为此,请转到更新管理器,点击“设置”,然后转到“Ubuntu 软件”选项卡并更改“下载自”框。如果您随后单击“其他”,则可以选择地球上的任何服务器。

答案2

您需要更新以下条目的来源列表

http://il.archive.ubuntu.com/ubuntu/

现在应该指向

http://old-releases.ubuntu.com/ubuntu/

对所有实例执行相同操作。

请记住,虽然您可以通过这种方式安装应用程序,但它们将是几年前的版本。

相关内容