apt-get update 错误:无法在 Meta-index 文件中找到预期的条目 contrib/source/Sources

apt-get update 错误:无法在 Meta-index 文件中找到预期的条目 contrib/source/Sources

我犯了一个可怕的错误,删除了 gtk(以及所有链接的数据包,包括 gnome)。之后,我恢复了我的 GUI 和 sudo apt-get install ubuntu-desktop大多数关键数据包,但现在当我尝试执行以下操作时出现错误sudo apt-get update

Hit http://repo.yandex.ru maverick Release.gpg
Hit http://ru.archive.ubuntu.com maverick Release.gpg
Ign http://repo.yandex.ru/ubuntu/ maverick/main Translation-en
Ign http://repo.yandex.ru/ubuntu/ maverick/main Translation-en_US
Ign http://repo.yandex.ru/ubuntu/ maverick/main Translation-ru
Ign http://repo.yandex.ru/ubuntu/ maverick/non-free Translation-en
Ign http://ru.archive.ubuntu.com/ubuntu/ maverick/contrib Translation-en
Ign http://ru.archive.ubuntu.com/ubuntu/ maverick/contrib Translation-en_US
Ign http://ru.archive.ubuntu.com/ubuntu/ maverick/contrib Translation-ru
Ign http://ru.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://ru.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Hit http://ru.archive.ubuntu.com/ubuntu/ maverick/main Translation-ru
Ign http://repo.yandex.ru/ubuntu/ maverick/non-free Translation-en_US
Ign http://repo.yandex.ru/ubuntu/ maverick/non-free Translation-ru
Hit http://repo.yandex.ru maverick Release                 
Ign http://ru.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://ru.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Hit http://ru.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-ru
Hit http://ru.archive.ubuntu.com maverick Release                                
Hit http://repo.yandex.ru maverick/main i386 Packages      
Hit http://repo.yandex.ru maverick/non-free i386 Packages
Hit http://ru.archive.ubuntu.com maverick/main Sources
W: Failed to fetch http://ru.archive.ubuntu.com/ubuntu/dists/maverick/Release  Unable to find expected entry  contrib/source/Sources in Meta-index file (malformed Release file?)

E: Some index files failed to download, they have been ignored, or old ones used instead.

我已经发布sudo apt-get clean all但没有任何改变。

/etc/apt/sources.list好像:

deb http://ru.archive.ubuntu.com/ubuntu/ maverick main contrib restricted  
deb-src http://ru.archive.ubuntu.com/ubuntu/ maverick main contrib restricted  
deb http://repo.yandex.ru/ubuntu/ maverick main non-free

sudo apt-get updatecontrib无需deb 记录即可正常工作

有没有什么办法可以解决这个问题?

我正在使用 ubuntu 10.10。

答案1

contrib对于官方 ubuntu 镜像来说不是有效的部分,因此contrib/source/Sources无法找到神秘的消息。

repo.yandex.ru不是官方列出的https://launchpad.net/ubuntu/+archivemirrorsnon-free该镜像的部分不包含任何二进制文件或源。如果您想使用 Yandex 镜像,请使用mirror.yandex.ru

此外,您的存储库源列表丢失,security.ubuntu.com这可能会导致安全更新延迟。

您至少应该将存储库源设置为:

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

此列表中缺少很多软件包,我建议您使用新安装时提供的列表,将以下文本保存为/etc/apt/sources.list

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ru.archive.ubuntu.com/ubuntu/ maverick-updates main restricted
deb-src http://ru.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://ru.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://ru.archive.ubuntu.com/ubuntu/ maverick universe
deb http://ru.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://ru.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://ru.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://ru.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://ru.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://ru.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://ru.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

相关内容