我需要默认 /etc/apt/sources.list 的副本

我需要默认 /etc/apt/sources.list 的副本

我前段时间升级到了 RC,sources.list 有点乱,更新时出现很多 404 错误。有人能发一份 Maverick 的原始 sources.list 吗?

答案1

由于 10.10 现已不受支持,因此您必须使用服务器 old-releases.ubuntu.com 来处理所有事情。例如,如下一行:

deb http://es.archive.ubuntu.com/ubuntu/ maverick main restricted

应改为:

deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted

以下是完整的 /etc/apt/sources.list:

deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security multiverse

更新文件后:

sudo apt-get clean
sudo apt-get update

答案2

给你 ;)

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

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

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

确保问题出在 sources.list 上,而不是在独立 PPAs .list 上。如果您想知道问题究竟是什么,请尝试在图形工具(如 Synaptic 或 Update Manager)上更新您的软件包列表,而不是 gnome-terminal。它会告诉您哪个地址是错误的。

答案3

/etc/apt/sources.list

# deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Alpha i386 (20100803.1)]/ maverick main restricted
# 请参阅 http://help.ubuntu.com/community/UpgradeNotes 了解如何升级到
# 发行版的较新版本。

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

## 最终版本发布后产生的主要错误修复更新
## 分配。
deb http://gb.archive.ubuntu.com/ubuntu/ maverick-updates 主要受限
deb-src http://gb.archive.ubuntu.com/ubuntu/ maverick-updates 主要受限

## NB:这个存储库中的软件完全不受 Ubuntu 支持
## 团队。另外,请注意,宇宙中的软件将不会收到任何
## 来自 Ubuntu 安全团队的审查或更新。
deb http://gb.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ maverick universe
deb http://gb.archive.ubuntu.com/ubuntu/ maverick-updates 宇宙
deb-src http://gb.archive.ubuntu.com/ubuntu/ maverick-updates 宇宙

## NB:这个存储库中的软件完全不受 Ubuntu 支持
## 团队,并且可能不属于免费许可。请自行确认
## 您使用该软件的权利。另外请注意,
## multiverse 将不会收到来自 Ubuntu 的任何评论或更新
## 安全团队。
deb http://gb.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## 取消注释以下两行以从“backports”添加软件
## 存储库。
## NB:此存储库中的软件可能尚未经过测试
## 与主版本一样广泛,尽管它包括
## 一些应用程序的较新版本可能提供有用的功能。
## 另外,请注意,反向移植的软件将不会收到任何评论
## 或来自 Ubuntu 安全团队的更新。
# deb http://gb.archive.ubuntu.com/ubuntu/ maverick-backports 主要受限宇宙多元宇宙
# deb-src http://gb.archive.ubuntu.com/ubuntu/ maverick-backports 主要受限宇宙多元宇宙

## 取消注释以下两行以添加来自 Canonical 的软件
##‘合作伙伴’存储库。
## 该软件不是 Ubuntu 的一部分,而是由 Canonical 和
## 各自的供应商为 Ubuntu 用户提供服务。
deb http://archive.canonical.com/ubuntu 特立独行的合作伙伴
# deb-src http://archive.canonical.com/ubuntu 特立独行的合作伙伴

deb http://security.ubuntu.com/ubuntu maverick-security 主要受限
deb-src http://security.ubuntu.com/ubuntu maverick-security 主要受限
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

您可能还想清理您的/etc/apt/sources.list.d/目录。

相关内容