3

I'm trying to upgrade to 10.10 from 10.04 LTS using a custom sources.list file that points to an unofficial mirror*. The mirror does have maverick, but I get the following output when upgrading:

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 

Here is the relevant section from /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

*I'm located inside of USC, and for some crazy reason any sustained downloads to anywhere outside of the University are throttled down to 5kbps inside of my lab. Because of this I need to use the following 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

I've tried adding four more entries to the sources.list with s/lucid/maverick/ but that didn't help.

Does anyone know how to fix this? Thanks!

1
  • Are you running Kubuntu or Ubuntu? Do you have kubuntu-desktop and ubuntu-desktop installed? Nov 20, 2010 at 1:11

3 Answers 3

1

I've hit this before when using a local mirror. What I recall worked for me was:

  • add and entry in /etc/hosts for us.archive.ubuntu.com with the address if you mirror
  • change /etc/apt/sources.list to point to us.archive.ubuntu.com
  • sudo apt-get update
  • sudo do-release-upgrade

at this point, apt and do-release-upgrade should think they're talking to us.a.u.c, and hopefully it will work.

this does require that mirrors.usc does not care what 'site' header is sent in the http get.

1
  • this also doesn't work if you have a mirror where the /ubuntu is not in the server root, as the server in the question does.
    – Spudd86
    Apr 28, 2011 at 14:38
1

I managed to this quite simply by updating the sources.list file to include only the local archive url and executing the following two comands:

sudo apt-get update

sudo do-release-upgrade

Worked like a charm and 650MB of updates downloaded within minutes. The actual installation took much longer.

-1

See this http://www.howtoforge.com/how-to-upgrade-ubuntu-10.04-lucid-lynx-to-10.10-maverick-meerkat-desktop-and-server

1
  • This is basically what I've been doing before. I get a warning message box that says "No valid mirror found" and then one that says "Could not calculate the upgrade" just like the CLI version in the original post.
    – rcv
    Nov 18, 2010 at 22:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .