LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Unable to upgrade 12.04 to 14.04 desktop (https://www.linuxquestions.org/questions/ubuntu-63/unable-to-upgrade-12-04-to-14-04-desktop-4175541944/)

satimis 05-08-2015 12:27 AM

Unable to upgrade 12.04 to 14.04 desktop
 
Hi all,

I encountered following problems on running Update Manager to upgrade to 14.04

Code:

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.

and

Code:

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

 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 using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.

Upgrade stopped automatically. Please help.

Thanks

Regards
satimis

evo2 05-08-2015 04:17 AM

Hi,

so do any of the suggested reasons apply to you? Can you provide us with any more information?

Evo2.

satimis 05-08-2015 05:22 AM

Quote:

Originally Posted by evo2 (Post 5359502)
Hi,

so do any of the suggested reasons apply to you? Can you provide us with any more information?

Evo2.

Hi,

This box have been running 12.04 for long time. I haven't upgraded it to 14.04 because Virtualbox is running on it. I'm worrying whether running upgrade to 14.04 will cause problem to Virtualbox.

About 2 days ago I ran;
Code:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

There was no problem encountered. It just came to my notice that on starting VM following warning popup.

Code:

Failed to open a session for the virtual machine homeub1404.
The virtual machine 'homeub1404' has terminated unexpectedly during startup with exit code 1 (0x1).

Details
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Machine
Interface:
IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}

and

Code:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

VM fails to start.

I wonder whether I have to proceed upgrading to 14.04 first before sorting out the problem re startubg VM

Regards
satimis

sudowtf 05-08-2015 08:40 AM

Virtualbox uses kernel drivers that will indeed need reconfiguration for any new kernel. So both regular updates and distribution updates could cause Virtualbox issues that are usually easily resolvable.

You probably have dkms already, but if not, perform:
Code:

sudo apt-get install dkms virtualbox-dkms
For the upgrade, in the "Software & Updates" gui, on the "Updates" tab, you may need to change the last item "Notify me of a new Ubuntu version" to "For long-term support versions".

You may need to perform:
Code:

sudo do-upgrade-release -d

satimis 05-08-2015 10:31 AM

Quote:

Originally Posted by sudowtf (Post 5359593)
Virtualbox uses kernel drivers that will indeed need reconfiguration for any new kernel. So both regular updates and distribution updates could cause Virtualbox issues that are usually easily resolvable.

You probably have dkms already, but if not, perform:
Code:

sudo apt-get install dkms virtualbox-dkms
For the upgrade, in the "Software & Updates" gui, on the "Updates" tab, you may need to change the last item "Notify me of a new Ubuntu version" to "For long-term support versions".

You may need to perform:
Code:

sudo do-upgrade-release -d

Hi,

Thanks for your advice.

I encountered a serious problem. I forgot to mention the VirturalBox was download on Oracle Virtualbox website.

Performed following steps.

$ apt-cache policy dkms
Code:

dkms:
  Installed: 2.2.0.3-1ubuntu3.2
  Candidate: 2.2.0.3-1ubuntu3.2
  Version table:
 *** 2.2.0.3-1ubuntu3.2 0
        500 http://hk.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
    2.2.0.3-1ubuntu3 0
        500 http://hk.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

$ apt-cache policy virtualbox-dkms
Code:

virtualbox-dkms:
  Installed: (none)
  Candidate: 4.1.12-dfsg-2ubuntu0.9
  Version table:
    4.1.12-dfsg-2ubuntu0.9 0
        500 http://hk.archive.ubuntu.com/ubuntu/ precise-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/universe amd64 Packages
    4.1.12-dfsg-2 0
        500 http://hk.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages

$ sudo apt-get install virtualbox-dkms
Code:

......
depmod....

DKMS: install completed.
 * Stopping VirtualBox kernel modules
  ...done.
 * Starting VirtualBox kernel modules
  ...done.
Setting up virtualbox-qt (4.1.12-dfsg-2ubuntu0.9) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

VirtualBox starts but all VMs gone. I think I have to add them back one by one. Any suggestion? Thanks

I'll do upgrade later after restoring all VMs

Regards
satimis

sudowtf 05-08-2015 11:26 AM

oh crap; sorry.

you need to decide if you want the repo version or the download, not both. for upgrade simplicity, i prefer repos.

in the virtualbox gui, you can use the menu "Machine"->"Add" and go find your .vbox files.

satimis 05-08-2015 11:44 AM

Quote:

Originally Posted by sudowtf (Post 5359677)
oh crap; sorry.

you need to decide if you want the repo version or the download, not both. for upgrade simplicity, i prefer repos.

in the virtualbox gui, you can use the menu "Machine"->"Add" and go find your .vbox files.

I think for convenience it would be better going back to the download version. Because I have more than 20 VMs

Besides just tried adding VM back and found unable to install Guest Addition.

tail /var/log/vboxadd-install.log
Code:

  MODULE_GENERIC_TABLE(type##_device,name)
  ^
/tmp/vbox.0/VBoxGuest-linux.c:216:1: note: in expansion of macro ‘MODULE_DEVICE_TABLE’
 MODULE_DEVICE_TABLE(pci, g_VBoxGuestPciId);
 ^
make[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Regards
satimis

satimis 05-08-2015 07:33 PM

Hi all,

I have another thought.

On account of the problems in re;
1) Upgrade 12.04 to 14.04
2) Virtualbox Manager
I'm considering to make a clean installation of Ubuntu 14.04

Hardware configuration
SSD 120G - for OS Ubuntu 12.04
2T WD HDD - for data storage
1T WD HDD - for VM folder

$ sudo fdisk -l
Code:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cde8a

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048      499711      248832  83  Linux
/dev/sda2          501758  234440703  116969473    5  Extended
/dev/sda5          501760  234440703  116969472  8e  Linux LVM

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00064d3a

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *        2048      499711      248832  83  Linux
/dev/sdb2          501758  3907028991  1953263617    5  Extended
/dev/sdb5          501760  391124991  195311616  83  Linux
/dev/sdb6      391127040  393078783      975872  82  Linux swap / Solaris
/dev/sdb7      393080832  3907028991  1756974080  83  Linux

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
/dev/sdb1  *        2048      499711      248832  83  Linux
/dev/sdb2          501758  3907028991  1953263617    5  Extended
/dev/sdb5          501760  391124991  195311616  83  Linux
/dev/sdb6      391127040  393078783      975872  82  Linux swap / Solaris
/dev/sdb7      393080832  3907028991  1756974080  83  Linux

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c92e3

  Device Boot      Start        End      Blocks  Id  System
/dev/sdc1            2048  1953523711  976760832  83  Linux

Disk /dev/mapper/localhost-root: 85.5 GB, 85513469952 bytes
255 heads, 63 sectors/track, 10396 cylinders, total 167018496 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/localhost-root doesn't contain a valid partition table

Disk /dev/mapper/localhost-swap_1: 34.3 GB, 34259075072 bytes
255 heads, 63 sectors/track, 4165 cylinders, total 66912256 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/localhost-swap_1 doesn't contain a valid partition table

From my recollection, several year before I used the SSD in combination with 2T WD HDD to install the OS - Ubuntu 12.04 and added the 1T WD HDD later for holding the VMs.

For safety reason before making a clean installation of Ubuntu 14.04 I'll disconnect the cables of both 2T and 1T HDDs. After a successful installation I'll reconnect the cables and install Virturalbox download from Oracle Virtualbox website.

Suggestion and comment would be appreciated. Thanks

Regards
satimis


All times are GMT -5. The time now is 08:24 AM.