使用自定义源将 10.04LTS 升级到 10.10

使用自定义源将 10.04LTS 升级到 10.10

我正在尝试使用指向非官方镜像的自定义 sources.list 文件从 10.04 LTS 升级到 10.10*。镜像确实有 maverick,但升级时我得到了以下输出:

boatzart@somecomputer: > sudo do-release-upgrade
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tool
Done downloading            
extracting 'maverick.tar.gz'
authenticate 'maverick.tar.gz' against 'maverick.tar.gz.gpg' 
tar: Removing leading `/' from member names

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Building data structures... Done 
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 

Updating repository information
WARNING: Failed to read mirror file

No valid mirror found 

While scanning your repository information no mirror entry for the 
upgrade was found. This can happen if you run a internal mirror or if 
the mirror information is out of date. 

Do you want to rewrite your 'sources.list' file anyway? If you choose 
'Yes' here it will update all 'lucid' to 'maverick' entries. 
If you select 'No' the upgrade will cancel. 

Continue [yN] y
 WARNING: Failed to read mirror file
96% [Working] 
Checking package manager
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 

Calculating the changes

Calculating the changes

Could not calculate the upgrade 

An unresolvable problem occurred while calculating the upgrade: 
The package 'update-manager-kde' is marked for removal but it is in 
the removal blacklist. 

This can be caused by: 
* Upgrading to a pre-release version of Ubuntu 
* Running the current pre-release version of Ubuntu 
* Unofficial software packages not provided by Ubuntu 

If none of this applies, then please report this bug against the 
'update-manager' package and include the files in 
/var/log/dist-upgrade/ in the bug report. 


Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 

以下是 /var/log/dist-upgrade/main.log 中的相关部分:

2010-11-18 14:05:52,117 DEBUG The package 'update-manager-kde' is marked for removal but it's in the removal blacklist
2010-11-18 14:05:52,136 ERROR Dist-upgrade failed: 'The package 'update-manager-kde' is marked for removal but it is in the removal blacklist.'
2010-11-18 14:05:52,136 DEBUG abort called

*我位于南加州大学内,出于某种奇怪的原因,在我的实验室内,任何持续下载到大学外任何地方的速度都会被限制在 5kbps。因此,我需要使用以下 sources.list:

deb http://mirrors.usc.edu/pub/linux/distributions/ubuntu/ lucid main restricted universe multiverse
deb http://mirrors.usc.edu/pub/linux/distributions/ubuntu/ lucid-updates main restricted universe multiverse
deb http://mirrors.usc.edu/pub/linux/distributions/ubuntu/ lucid-backports main restricted universe multiverse
deb http://mirrors.usc.edu/pub/linux/distributions/ubuntu/ lucid-security main restricted universe multiverse

我尝试向 sources.list 添加另外四个条目,s/lucid/maverick/但没有帮助。

有人知道如何解决这个问题吗?谢谢!

答案1

我以前使用本地镜像时遇到过这个问题。我记得对我有用的是:

  • 如果你是镜像,请添加并输入/etc/hostsus.archive.ubuntu.com 的地址
  • 更改/etc/apt/sources.list为指向 us.archive.ubuntu.com
  • sudo apt-get update
  • sudo do-release-upgrade

此时,apt 和 do-release-upgrade 应该认为它们正在与 us.auc 对话,并且希望它能够起作用。

这确实要求 mirrors.usc 不关心在 http get 中发送什么“site”标头。

答案2

我通过更新 sources.list 文件以仅包含本地存档 URL 并执行以下两个命令,轻松实现了此目的:

sudo apt-get update

sudo do-release-upgrade

效果非常好,几分钟内就下载了 650MB 的更新。实际安装花费的时间更长。

答案3

相关内容