kangarooo
By:
kangarooo

12.04 to 14.04 doesnt upgrade

April 21, 2014 22.2k views
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) ===
11 Answers
Remember to run a normal "apt-get update && apt-get upgrade" first. Then simply answer yes to the question:


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]


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.

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.

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.

eem.. its not possible to edit question? i posted too much info.
This seems like it was probably a temporary problem with the mirror being out of date. I'd just try update again latter. If it continues, let us know.
Yep still not do-release-upgrade -d BUT untill i do a update && dist-upgrade && upgrade
THEN now just it started working
do-release-upgrade -d
Hmmm did another image copy and update test.
Not working.


login as: root
root@188.226.178.13's password:
Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.8.0-29-generic x86_64)

* Documentation: https://help.ubuntu.com/

System information as of Mon Apr 21 18:59:48 EDT 2014

System load: 0.25 Processes: 107
Usage of /: 16.8% of 19.56GB Users logged in: 0
Memory usage: 47% IP address for eth0: 188.226.178.13
Swap usage: 0%

Graph this data and manage this system at:
https://landscape.canonical.com/

0 packages can be updated.
0 updates are security updates.

*** System restart required ***
No mail.
Last login: Mon Apr 21 18:58:06 2014 from 94.30.237.154
root@perfectall:~# sudo update
sudo: update: command not found
root@perfectall:~# sudo apt-get update
Hit http://mirrors.digitalocean.com precise Release.gpg
Hit http://mirrors.digitalocean.com precise-updates Release.gpg
Hit http://mirrors.digitalocean.com precise-backports Release.gpg
Hit http://mirrors.digitalocean.com precise-security Release.gpg
Hit http://software.virtualmin.com virtualmin-precise Release.gpg
Hit http://mirrors.digitalocean.com precise Release
Hit http://mirrors.digitalocean.com precise-updates Release
Hit http://mirrors.digitalocean.com precise-backports Release
Hit http://mirrors.digitalocean.com precise-security Release
Hit http://mirrors.digitalocean.com precise/main Sources
Hit http://mirrors.digitalocean.com precise/restricted Sources
Hit http://mirrors.digitalocean.com precise/universe Sources
Hit http://mirrors.digitalocean.com precise/multiverse Sources
Hit http://mirrors.digitalocean.com precise/main amd64 Packages
Hit http://mirrors.digitalocean.com precise/restricted amd64 Packages
Hit http://mirrors.digitalocean.com precise/universe amd64 Packages
Hit http://mirrors.digitalocean.com precise/multiverse amd64 Packages
Hit http://mirrors.digitalocean.com precise/main i386 Packages
Hit http://mirrors.digitalocean.com precise/restricted i386 Packages
Hit http://mirrors.digitalocean.com precise/universe i386 Packages
Hit http://mirrors.digitalocean.com precise/multiverse i386 Packages
Hit http://mirrors.digitalocean.com precise/main TranslationIndex
Hit http://mirrors.digitalocean.com precise/multiverse TranslationIndex
Hit http://mirrors.digitalocean.com precise/restricted TranslationIndex
Hit http://software.virtualmin.com virtualmin-universal Release.gpg
Hit http://mirrors.digitalocean.com precise/universe TranslationIndex
Hit http://mirrors.digitalocean.com precise-updates/main Sources
Hit http://mirrors.digitalocean.com precise-updates/restricted Sources
Hit http://mirrors.digitalocean.com precise-updates/universe Sources
Hit http://mirrors.digitalocean.com precise-updates/multiverse Sources
Hit http://mirrors.digitalocean.com precise-updates/main amd64 Packages
Hit http://mirrors.digitalocean.com precise-updates/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://mirrors.digitalocean.com precise-updates/universe amd64 Packages
Hit http://mirrors.digitalocean.com precise-updates/multiverse amd64 Packages
Hit http://mirrors.digitalocean.com precise-updates/main i386 Packages
Hit http://mirrors.digitalocean.com precise-updates/restricted i386 Packages
Hit http://mirrors.digitalocean.com precise-updates/universe i386 Packages
Hit http://mirrors.digitalocean.com precise-updates/multiverse i386 Packages
Hit http://mirrors.digitalocean.com precise-updates/main TranslationIndex
Hit http://mirrors.digitalocean.com precise-updates/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security Release
Hit http://mirrors.digitalocean.com precise-updates/restricted TranslationIndex
Hit http://mirrors.digitalocean.com precise-updates/universe TranslationIndex
Hit http://mirrors.digitalocean.com precise-backports/main Sources
Hit http://mirrors.digitalocean.com precise-backports/restricted Sources
Hit http://mirrors.digitalocean.com precise-backports/universe Sources
Hit http://mirrors.digitalocean.com precise-backports/multiverse Sources
Hit http://mirrors.digitalocean.com precise-backports/main amd64 Packages
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://mirrors.digitalocean.com precise-backports/restricted amd64 Packages
Hit http://mirrors.digitalocean.com precise-backports/universe amd64 Packages
Hit http://mirrors.digitalocean.com precise-backports/multiverse amd64 Packages
Hit http://mirrors.digitalocean.com precise-backports/main i386 Packages
Hit http://mirrors.digitalocean.com precise-backports/restricted i386 Packages
Hit http://mirrors.digitalocean.com precise-backports/universe i386 Packages
Hit http://mirrors.digitalocean.com precise-backports/multiverse i386 Packages
Hit http://mirrors.digitalocean.com precise-backports/main TranslationIndex
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://mirrors.digitalocean.com precise-backports/multiverse TranslationIndex
Hit http://mirrors.digitalocean.com precise-backports/restricted TranslationIndex
Hit http://mirrors.digitalocean.com precise-backports/universe TranslationIndex
Hit http://mirrors.digitalocean.com precise-security/main Sources
Hit http://mirrors.digitalocean.com precise-security/restricted Sources
Hit http://mirrors.digitalocean.com precise-security/universe Sources
Hit http://mirrors.digitalocean.com precise-security/multiverse Sources
Hit http://software.virtualmin.com virtualmin-precise Release
Hit http://mirrors.digitalocean.com precise-security/main amd64 Packages
Hit http://mirrors.digitalocean.com precise-security/restricted amd64 Packages
Hit http://mirrors.digitalocean.com precise-security/universe amd64 Packages
Hit http://mirrors.digitalocean.com precise-security/multiverse amd64 Packages
Hit http://mirrors.digitalocean.com precise-security/main i386 Packages
Hit http://mirrors.digitalocean.com precise-security/restricted i386 Packages
Hit http://mirrors.digitalocean.com precise-security/universe i386 Packages
Hit http://mirrors.digitalocean.com precise-security/multiverse i386 Packages
Hit http://mirrors.digitalocean.com precise-security/main TranslationIndex
Hit http://mirrors.digitalocean.com precise-security/multiverse TranslationIndex
Hit http://mirrors.digitalocean.com precise-security/restricted TranslationIndex
Hit http://mirrors.digitalocean.com precise-security/universe TranslationIndex
Hit http://mirrors.digitalocean.com precise/main Translation-en
Hit http://mirrors.digitalocean.com precise/multiverse Translation-en
Hit http://mirrors.digitalocean.com precise/restricted Translation-en
Hit http://mirrors.digitalocean.com precise/universe Translation-en
Hit http://mirrors.digitalocean.com precise-updates/main Translation-en
Hit http://mirrors.digitalocean.com precise-updates/multiverse Translation-en
Hit http://mirrors.digitalocean.com precise-updates/restricted Translation-en
Hit http://mirrors.digitalocean.com precise-updates/universe Translation-en
Hit http://mirrors.digitalocean.com precise-backports/main Translation-en
Hit http://mirrors.digitalocean.com precise-backports/multiverse Translation-en
Hit http://mirrors.digitalocean.com precise-backports/restricted Translation-en
Hit http://mirrors.digitalocean.com precise-backports/universe Translation-en
Hit http://mirrors.digitalocean.com precise-security/main Translation-en
Hit http://mirrors.digitalocean.com precise-security/multiverse Translation-en
Hit http://mirrors.digitalocean.com precise-security/restricted Translation-en
Hit http://mirrors.digitalocean.com precise-security/universe Translation-en
Hit http://software.virtualmin.com virtualmin-universal Release
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise-updates Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Hit http://us.archive.ubuntu.com precise-updates Release
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://software.virtualmin.com virtualmin-precise/main amd64 Packages
Hit http://software.virtualmin.com virtualmin-precise/main i386 Packages
Ign http://software.virtualmin.com virtualmin-precise/main TranslationIndex
Hit http://software.virtualmin.com virtualmin-universal/main amd64 Packages
Hit http://software.virtualmin.com virtualmin-universal/main i386 Packages
Ign http://software.virtualmin.com virtualmin-universal/main TranslationIndex
Ign http://software.virtualmin.com virtualmin-precise/main Translation-en_US
Ign http://software.virtualmin.com virtualmin-precise/main Translation-en
Ign http://software.virtualmin.com virtualmin-universal/main Translation-en_US
Ign http://software.virtualmin.com virtualmin-universal/main Translation-en
Reading package lists... Done
root@perfectall:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@perfectall:~# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@perfectall:~# sudo apt-get dist-upgrade sudo apt-get install update-manager-core^C
root@perfectall:~# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@perfectall:~# sudo apt-get install update-manager-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
update-manager-core is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@perfectall:~# sudo 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'
Updating repository information

Third party sources disabled

Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the 'software-properties' tool
or your package manager.

To continue please press [ENTER]

Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
Get:2 http://security.ubuntu.com trusty-security Release [58.5 kB]
Get:3 http://security.ubuntu.com trusty-security/universe amd64 Packages [14 B]
Get:4 http://security.ubuntu.com trusty-security/universe i386 Packages [14 B]
Get:5 http://security.ubuntu.com trusty-security/universe TranslationIndex [70 B]
Get:6 http://security.ubuntu.com trusty-security/universe Translation-en [14 B]
Get:7 http://us.archive.ubuntu.com trusty Release.gpg [933 B]
Get:8 http://us.archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:9 http://us.archive.ubuntu.com trusty Release [58.5 kB]
Get:10 http://us.archive.ubuntu.com trusty-updates Release [58.5 kB]
Get:11 http://us.archive.ubuntu.com trusty/universe amd64 Packages [5,859 kB]
Get:12 http://us.archive.ubuntu.com trusty/universe i386 Packages [5,866 kB]
Get:13 http://us.archive.ubuntu.com trusty/universe TranslationIndex [3,129 B]
Get:14 http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages [1,602 B]
Get:15 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [1,601 B]
Get:16 http://us.archive.ubuntu.com trusty-updates/universe TranslationIndex [71 B]
Get:17 http://us.archive.ubuntu.com trusty/universe Translation-en [4,088 kB]
Get:18 http://us.archive.ubuntu.com trusty-updates/universe Translation-en [720 B]
Fetched 16.0 MB in 6s (1,916 kB/s)

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

Invalid package information

After updating your package information, the essential package
'ubuntu-minimal' could not be located. This may be because you have
no official mirrors listed in your software sources, or because of
excessive load on the mirror you are using. See /etc/apt/sources.list
for the current list of configured software sources.
In the case of an overloaded mirror, you may want to try the upgrade
again later.


Restoring original system state

Aborting
g package lists... 4%
*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
=== Command terminated with exit status 1 (Mon Apr 21 19:02:21 2014) ===

Heres answer https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1310816

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.

YOu should make yourself as official mirror. No? Or mirror update requirements to meet.
https://wiki.ubuntu.com/Mirrors#Country_mirror_requirements
Heres maybe this info needs to be in mirrors
https://help.ubuntu.com/community/Rsyncmirror
So will it work for this 2nd server?
So it looks that problem is bad mirror of DigitalOcean

https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1310816

Hi,

I am experiencing the exact same problem....does anyone know a solution?

Thanks

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.

Have another answer? Share your knowledge.