Ubuntu – Upgrade hangs on ttf-mscorefonts-installer

package-managementupgrade

I am trying to upgrade from 11.10 to 12.04 and the upgrade seems to be stuck downloading ttf-mscorefonts. Is there a way to bypass this?

Output from /var/log/dist-upgrade

    Installing new version of config file /etc/xdg/autostart/print-applet.desktop ...
    Setting up ubuntu-wallpapers-precise (0.34.1) ...
    Setting up ubuntu-wallpapers (0.34.1) ...
    Setting up adium-theme-ubuntu (0.3.2-0ubuntu1) ...
    Setting up update-manager-core (1:0.156.14) ...
    Installing new version of config file /etc/update-manager/release-upgrades ...
    Setting up update-notifier-common (0.119ubuntu8.1) ...
    ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe
    -- 0:precise -- time-stamp -- Apr/27/12  8:15:21 --
    -- 0:precise -- time-stamp -- Apr/27/12  8:20:10 --


    -- 0:precise -- time-stamp -- Apr/27/12  8:22:01 --
    -- 0:precise -- time-stamp -- Apr/27/12  8:55:14 --



    phiri@PHRLIG001:/var/log/dist-upgrade$ lsb_release -a
    LSB Version:    core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
    Distributor ID: Ubuntu
    Description:    Ubuntu 12.04 LTS
    Release:    12.04
    Codename:   precise
    phiri@PHRLIG001:/var/log/dist-upgrade$ 

Best Answer

I've got the exact same issue, the upgrade hung off while downloading ms-core-fonts from sourceforge. After 2 hours waiting for the process to continue, I decided to kill the process downloading the package.

So I just ran "sudo htop" then F5 to see the tree of process, I started from the main process responsible for the upgrade to precise and searched for the one reponsible for the download. I killed this one, then the process skips the ms-core-font download part then continues and finishes the updrage to precise.

If you don't have the htop, just try ps -ejHf and find the package-data-downloader and kill it.

root     29696 11731 29696 29696  0 22:46 pts/2    00:00:04           /usr/bin/dpkg --force-overwrite --status-fd 56 --configure dmsetup libdevmapper1.02.1 libfreetype6 g
root     22330 29696 29696 29696  0 23:02 pts/2    00:00:00             /bin/sh /var/lib/dpkg/info/update-notifier-common.postinst configure 0.117ubuntu3.2
root     22332 22330 29696 29696  0 23:02 pts/2    00:00:00               /usr/bin/python /usr/lib/update-notifier/package-data-downloader
Related Question