Question
12.04 to 14.04 doesnt upgrade
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
While scanning your repository information no mirror entry for the
upgrade was found. This can happen if you run an 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 'precise' to 'trusty' entries.
If you select 'No' the upgrade will cancel.
Continue [yN]
Hello, long dead thread but I have been upgrading a bunch of old Ubuntu VM’s up the chain: 10.04 to 12.04 and onto 14.04 etc… I found a few answers and will compile them here.
I saw the error mentioned in this thread and it was tied to 3rd party packages. The fix was:
Create or edit an existing file named unauth.cfg. It should be located in /etc/update-manager/release-upgrades.d/
In that file put this, it can be the only thing in it.
[Distro]
AllowUnauthenticated=yes
No service restart is needed, just do your upgrade commands again.
Next was old releases that had been retired (like 10.04, btw you cannot upgrade to 12.04 from Maverick, it isn’t supported). The fix for this is to edit the sources.list file and replace all repositories (country_code.archive.ubuntu.com, archive.ubuntu.com, security.ubuntu.com) with old-releases. Verify the ftp site is still valid before using but the command should look like this:
sudo sed -i -re ’s/([a-z]{2}.)?us.archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ /etc/apt/sources.list
You can see above I was using us.archive… but it could be ca.archive…, cn.archive… or just archive.ubuntu.com etc… You can examine the file if you don’t know what repository you use by looking at:
/etc/apt/sources.list
It doesn’t hurt anything to run the command multiple times as it only changes what is specified or doesn’t do anything if they aren’t found.
This fix also lead to another issue, out of data GPG keys. The fix for this is:
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 40976EAF437D05B5
Where the hex # is the one in the error message as it won’t always be 40976EAF437D05B5 that I received and used in the example above. Though this key is quite common.
Finally I ran into an issue I haven’t solved but from what I read it is tied to either a kernel version problem or a grub problem. On reboot after upgrading to trusty the bootloader hangs with a blinking cursor and or a colored box. Suggestions like apt-get clean, editing grub with acpi=force did not work for me. People have claimed success by using shift to get into the grub loader interface and choosing and older kernel. I cannot get into it on the VM’s so cannot verify.