Question

12.04 to 14.04 doesnt upgrade

tryd many times. didnt work sudo apt-get update sudo apt-get upgrade do-release-upgrade -d

root@Kangarooo:~# do-release-upgrade -d Checking for a new Ubuntu release Get:1 Upgrade tool signature [198 B] Get:2 Upgrade tool [1,148 kB] Fetched 1,148 kB in 0s (0 B/s) authenticate ‘trusty.tar.gz’ against ‘trusty.tar.gz.gpg’ extracting ‘trusty.tar.gz’ Hit http://us.archive.ubuntu.com trusty/universe i386 Packages Hit http://us.archive.ubuntu.com trusty/universe TranslationIndex Hit http://security.ubuntu.com trusty-security Release Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages Hit http://us.archive.ubuntu.com trusty-updates/main TranslationIndex Hit http://us.archive.ubuntu.com trusty-updates/universe TranslationIndex Hit http://us.archive.ubuntu.com trusty/universe Translation-en Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en Hit http://security.ubuntu.com trusty-security/universe amd64 Packages Hit http://security.ubuntu.com trusty-security/main amd64 Packages Hit http://security.ubuntu.com trusty-security/universe i386 Packages Hit http://security.ubuntu.com trusty-security/main i386 Packages Hit http://security.ubuntu.com trusty-security/main TranslationIndex Hit http://security.ubuntu.com trusty-security/universe TranslationIndex Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en Hit http://security.ubuntu.com trusty-security/main Translation-en Hit http://security.ubuntu.com trusty-security/universe Translation-en Fetched 1 B in 0s (0 B/s)

Error during update

A problem occurred during the update. This is usually some sort of network problem, please check your network connection and retry.

W:Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-i386_Packages Hash Sum mismatch , E:Some index files failed to download. They have been ignored, or old ones used instead.

Restoring original system state

Aborting Reading package lists… Done Building dependency tree Reading state information… Done Building data structures… Done === Command detached from window (Mon Apr 21 12:36:37 2014) === === Command terminated with exit status 1 (Mon Apr 21 12:36:37 2014) ===

** Affects: ubuntu-release-upgrader (Ubuntu) Importance: Undecided Status: New

– You received this bug notification because you are subscribed to the bug report. https://bugs.launchpad.net/bugs/1310716

Title: Server 12.04.04 upgrade to 14.04 didnt work

Status in “ubuntu-release-upgrader” package in Ubuntu: New

Bug description: tryd many times. didnt work sudo apt-get update sudo apt-get upgrade do-release-upgrade -d

root@Kangarooo:~# do-release-upgrade -d Checking for a new Ubuntu release Get:1 Upgrade tool signature [198 B] Get:2 Upgrade tool [1,148 kB] Fetched 1,148 kB in 0s (0 B/s) authenticate ‘trusty.tar.gz’ against ‘trusty.tar.gz.gpg’ extracting ‘trusty.tar.gz’ Hit http://us.archive.ubuntu.com trusty/universe i386 Packages Hit http://us.archive.ubuntu.com trusty/universe TranslationIndex Hit http://security.ubuntu.com trusty-security Release Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages Hit http://us.archive.ubuntu.com trusty-updates/main TranslationIndex Hit http://us.archive.ubuntu.com trusty-updates/universe TranslationIndex Hit http://us.archive.ubuntu.com trusty/universe Translation-en Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en Hit http://security.ubuntu.com trusty-security/universe amd64 Packages Hit http://security.ubuntu.com trusty-security/main amd64 Packages Hit http://security.ubuntu.com trusty-security/universe i386 Packages Hit http://security.ubuntu.com trusty-security/main i386 Packages Hit http://security.ubuntu.com trusty-security/main TranslationIndex Hit http://security.ubuntu.com trusty-security/universe TranslationIndex Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en Hit http://security.ubuntu.com trusty-security/main Translation-en Hit http://security.ubuntu.com trusty-security/universe Translation-en Fetched 1 B in 0s (0 B/s)

Error during update

A problem occurred during the update. This is usually some sort of network problem, please check your network connection and retry.

W:Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-i386_Packages Hash Sum mismatch , E:Some index files failed to download. They have been ignored, or old ones used instead.

Restoring original system state

Aborting Reading package lists… Done Building dependency tree Reading state information… Done Building data structures… Done === Command detached from window (Mon Apr 21 12:36:37 2014) === === Command terminated with exit status 1 (Mon Apr 21 12:36:37 2014) ===


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Remember to run a normal “apt-get update && apt-get upgrade” first. Then simply answer yes to the question: <br> <br><pre> <br>While scanning your repository information no mirror entry for the <br>upgrade was found. This can happen if you run an internal mirror or <br>if the mirror information is out of date. <br> <br>Do you want to rewrite your ‘sources.list’ file anyway? If you choose <br>‘Yes’ here it will update all ‘precise’ to ‘trusty’ entries. <br>If you select ‘No’ the upgrade will cancel. <br> <br>Continue [yN] <br></pre> <br> <br>The do-release-upgrade tool checks the list of official Ubuntu mirrors before running an upgrade. DigitalOcean’s mirror is an internal mirror so it is normal to see this prompt. I’ve upgraded a number of droplet from 12.04 to 14.04 with no issue. <br> <br>Looking at the extra information that you provided on the bug report, it looks like you have a virtualmin repository in you sources.list. That seems to be the real source of the problem where ubuntu-minimal can not be found. <br> <br>I just spun up two 12.04 droplets. One I immediately upgraded to 14.04. There were no issues at all. The next I installed virtualmin on. When I tried to upgrade it, I hit the same problem you described. I’d suggest opening a bug/support ticket with virtualmin. <br> <br>

Heres answer https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1310816 <br> <br>Your /etc/apt/sources.list file only has entries for the main component of the archive with http://mirrors.digitalocean.com/ubuntu/ which is not an official mirror of Ubuntu. Subsequently, the upgrade was unable to find the essential package ubuntu-minimal. You’ll need to either choose a different mirror or only use mirrors.digitalocean.com entries in your sources.list file and then respond Yes to the question about using an unofficial mirror and rewriting sources.list. <br> <br>YOu should make yourself as official mirror. No? Or mirror update requirements to meet. <br>https://wiki.ubuntu.com/Mirrors#Country_mirror_requirements

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.