Upgrading from 12.04LTS to 14.04LTS fails

Asked by Dorf06

Hello,

    I am trying to upgrade our server from 12.04 LTS to 14.04 LTS using do-release-upgrade. When I run the command I receive this error:

A fatal error occurred

Please report this as a bug and include the files
/var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in
your report. The upgrade has aborted.
Your original sources.list was saved in
/etc/apt/sources.list.distUpgrade.

Traceback (most recent call last):

File "/tmp/update-manager-x6lktm/trusty", line 10, in <module>
sys.exit(main())

File "/tmp/update-manager-x6lktm/DistUpgrade/DistUpgradeMain.py",
line 241, in main
save_system_state(logdir)

File "/tmp/update-manager-x6lktm/DistUpgrade/DistUpgradeMain.py",
line 134, in save_system_state
scrub_sources=True)

TypeError: save_state() got an unexpected keyword argument
'scrub_sources'
=== Command detached from window (Mon Jun 15 10:20:29 2015) ===
=== Command terminated with exit status 1 (Mon Jun 15 10:20:29 2015) ===

Here is the output of my main.log file:

2015-06-15 10:20:29,078 INFO Using config files '['./DistUpgrade.cfg.precise']'
2015-06-15 10:20:29,078 INFO uname information: 'Linux undhpcvideo 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64'
2015-06-15 10:20:29,078 INFO apt version: '0.8.16~exp12ubuntu10'
2015-06-15 10:20:29,078 INFO python version: '2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3]'
2015-06-15 10:20:29,078 INFO release-upgrader version '0.220.3' started
2015-06-15 10:20:29,079 INFO locale: 'en_US' 'UTF-8'
2015-06-15 10:20:29,175 DEBUG Using 'DistUpgradeViewText' view
2015-06-15 10:20:29,207 DEBUG aufsOptionsAndEnvironmentSetup()
2015-06-15 10:20:29,207 DEBUG using '/tmp/upgrade-rw-xOcQD5' as aufs_rw_dir
2015-06-15 10:20:29,207 DEBUG using '/tmp/upgrade-chroot-kX7J7u' as aufs chroot dir
2015-06-15 10:20:29,208 DEBUG enable dpkg --force-overwrite
2015-06-15 10:20:29,214 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2015-06-15 10:20:29,215 ERROR not handled exception:
Traceback (most recent call last):

  File "/tmp/update-manager-x6lktm/trusty", line 10, in <module>
    sys.exit(main())

  File "/tmp/update-manager-x6lktm/DistUpgrade/DistUpgradeMain.py", line 241, in main
    save_system_state(logdir)

  File "/tmp/update-manager-x6lktm/DistUpgrade/DistUpgradeMain.py", line 134, in save_system_state
    scrub_sources=True)

TypeError: save_state() got an unexpected keyword argument 'scrub_sources'

2015-06-15 10:20:29,215 DEBUG enabling apt cron job

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Have you made sure that your system is fully updated before trying the release upgrade?

Please provide the output of the following terminal commands:

uname -a
lsb_release -crid
apt-cache policy update-manager update-manager-core
sudo apt-get update
sudo apt-get dist-upgrade

Revision history for this message
Dorf06 (dorf06) said :
#2

Here is the info you requested:

Linux 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise

update-manager:
  Installed: (none)
  Candidate: 1:0.156.14
  Version table:
     1:0.156.14 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
update-manager-core:
  Installed: 1:0.156.14
  Candidate: 1:0.156.14
  Version table:
 *** 1:0.156.14 0
        500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

Ign http://archive.ubuntu.com precise InRelease
Hit http://archive.ubuntu.com precise Release.gpg
Hit http://archive.ubuntu.com precise Release
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://archive.ubuntu.com precise/restricted amd64 Packages
Hit http://archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Hit http://archive.ubuntu.com precise/universe i386 Packages
Hit http://archive.ubuntu.com precise/restricted i386 Packages
Hit http://archive.ubuntu.com precise/multiverse i386 Packages
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://archive.ubuntu.com precise/restricted TranslationIndex
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/multiverse Translation-en
Hit http://archive.ubuntu.com precise/restricted Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done

Calculating upgrade... Failed
The following packages have unmet dependencies:
 libopencv-core-dev : Breaks: libcv-dev (< 2.3.1-1) but 2.1.0-7build1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Ok, it seems that even in your current system you have inconsistencies in the package management.

Please provide the output of the commands

sudo dpkg --audit
apt-cache policy
apt-cache policy libopencv-core-dev libcv-dev
sudo apt-get install -f

Revision history for this message
Dorf06 (dorf06) said :
#4

dpkg --audit had no output

apt-cache policy:

Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://archive.ubuntu.com/ubuntu/ precise/universe Translation-en
 500 http://archive.ubuntu.com/ubuntu/ precise/restricted Translation-en
 500 http://archive.ubuntu.com/ubuntu/ precise/multiverse Translation-en
 500 http://archive.ubuntu.com/ubuntu/ precise/main Translation-en
 500 http://archive.ubuntu.com/ubuntu/ precise/multiverse i386 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=multiverse
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ precise/restricted i386 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=restricted
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=universe
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ precise/main i386 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=main
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ precise/multiverse amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=multiverse
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ precise/restricted amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=restricted
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=universe
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
     release v=12.04,o=Ubuntu,a=precise,n=precise,l=Ubuntu,c=main
     origin archive.ubuntu.com
Pinned packages:

apt-cache policy libopencv-core-dev libcv-dev:

libopencv-core-dev:
  Installed: (none)
  Candidate: 2.3.1-7
  Version table:
     2.3.1-7 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
libcv-dev:
  Installed: 2.1.0-7build1
  Candidate: 2.3.1-7
  Version table:
     2.3.1-7 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
 *** 2.1.0-7build1 0
        100 /var/lib/dpkg/status

sudo apt-get install -f:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgconf-2-4 gconf2-common tmux python-dbus-dev gconf-service python2.7-dev gconf-service-backend
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What is the output of

apt-get --simulate install libopencv-core-dev
apt-get --simulate install libcv-dev- libopencv-core-dev

Revision history for this message
Dorf06 (dorf06) said :
#6

NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgconf-2-4 gconf2-common liblapack3gf libhighgui2.1 tmux python-dbus-dev libcv2.1 libblas3gf libgfortran3 gconf-service python2.7-dev gconf-service-backend
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libavcodec-dev libavformat-dev libavutil-dev libcv-dev libdc1394-22-dev libilmbase-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libopencv-calib3d-dev libopencv-calib3d2.3 libopencv-core2.3 libopencv-features2d-dev libopencv-features2d2.3 libopencv-flann-dev
  libopencv-flann2.3 libopencv-gpu2.3 libopencv-highgui-dev libopencv-highgui2.3 libopencv-imgproc-dev libopencv-imgproc2.3 libopencv-legacy-dev libopencv-legacy2.3 libopencv-ml-dev libopencv-ml2.3 libopencv-objdetect-dev libopencv-objdetect2.3 libopencv-video-dev
  libopencv-video2.3 libopenexr-dev libraw1394-dev libswscale-dev libtiff4-dev libtiffxx0c2
Suggested packages:
  libfaad-dev libgsm1-dev libschroedinger-dev libspeex-dev libtheora-dev libvorbis-dev libraw1394-doc
Recommended packages:
  libraw1394-tools
The following packages will be REMOVED:
  libjpeg62-dev
The following NEW packages will be installed:
  libavcodec-dev libavformat-dev libavutil-dev libdc1394-22-dev libilmbase-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libopencv-calib3d-dev libopencv-calib3d2.3 libopencv-core-dev libopencv-core2.3 libopencv-features2d-dev libopencv-features2d2.3
  libopencv-flann-dev libopencv-flann2.3 libopencv-gpu2.3 libopencv-highgui-dev libopencv-highgui2.3 libopencv-imgproc-dev libopencv-imgproc2.3 libopencv-legacy-dev libopencv-legacy2.3 libopencv-ml-dev libopencv-ml2.3 libopencv-objdetect-dev libopencv-objdetect2.3
  libopencv-video-dev libopencv-video2.3 libopenexr-dev libraw1394-dev libswscale-dev libtiff4-dev libtiffxx0c2
The following packages will be upgraded:
  libcv-dev
1 upgraded, 34 newly installed, 1 to remove and 11 not upgraded.
Remv libjpeg62-dev [6b1-2ubuntu1]
Inst libtiffxx0c2 (3.9.5-2ubuntu1 Ubuntu:12.04/precise [amd64])
Inst libavutil-dev (4:0.8.1-0ubuntu1 Ubuntu:12.04/precise [amd64])
Inst libavcodec-dev (4:0.8.1-0ubuntu1 Ubuntu:12.04/precise [amd64])
Inst libavformat-dev (4:0.8.1-0ubuntu1 Ubuntu:12.04/precise [amd64])
Inst libopencv-core2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-flann2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-imgproc2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-highgui2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-features2d2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-calib3d2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-gpu2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-ml2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-objdetect2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libcv-dev [2.1.0-7build1] (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-core-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-imgproc-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-flann-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libswscale-dev (4:0.8.1-0ubuntu1 Ubuntu:12.04/precise [amd64]) []
Inst libjpeg-turbo8-dev (1.1.90+svn733-0ubuntu4 Ubuntu:12.04/precise [amd64]) []
Inst libjpeg8-dev (8c-2ubuntu7 Ubuntu:12.04/precise [amd64]) []
Inst libjpeg-dev (8c-2ubuntu7 Ubuntu:12.04/precise [all]) []
Inst libtiff4-dev (3.9.5-2ubuntu1 Ubuntu:12.04/precise [amd64]) []
Inst libilmbase-dev (1.0.1-3build2 Ubuntu:12.04/precise [amd64]) []
Inst libopenexr-dev (1.6.1-4.1 Ubuntu:12.04/precise [amd64]) []
Inst libraw1394-dev (2.0.7-1ubuntu1 Ubuntu:12.04/precise [amd64]) []
Inst libdc1394-22-dev (2.2.0-2 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-highgui-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-features2d-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-calib3d-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-objdetect-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-video2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-video-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-legacy2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-legacy-dev (2.3.1-7 Ubuntu:12.04/precise [amd64]) []
Inst libopencv-ml-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libtiffxx0c2 (3.9.5-2ubuntu1 Ubuntu:12.04/precise [amd64])
Conf libavutil-dev (4:0.8.1-0ubuntu1 Ubuntu:12.04/precise [amd64])
Conf libavcodec-dev (4:0.8.1-0ubuntu1 Ubuntu:12.04/precise [amd64])
Conf libavformat-dev (4:0.8.1-0ubuntu1 Ubuntu:12.04/precise [amd64])
Conf libopencv-core2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-flann2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-imgproc2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-highgui2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-features2d2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-calib3d2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-gpu2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-ml2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-objdetect2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-core-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-imgproc-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-flann-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libswscale-dev (4:0.8.1-0ubuntu1 Ubuntu:12.04/precise [amd64])
Conf libjpeg-turbo8-dev (1.1.90+svn733-0ubuntu4 Ubuntu:12.04/precise [amd64])
Conf libjpeg8-dev (8c-2ubuntu7 Ubuntu:12.04/precise [amd64])
Conf libjpeg-dev (8c-2ubuntu7 Ubuntu:12.04/precise [all])
Conf libtiff4-dev (3.9.5-2ubuntu1 Ubuntu:12.04/precise [amd64])
Conf libilmbase-dev (1.0.1-3build2 Ubuntu:12.04/precise [amd64])
Conf libopenexr-dev (1.6.1-4.1 Ubuntu:12.04/precise [amd64])
Conf libraw1394-dev (2.0.7-1ubuntu1 Ubuntu:12.04/precise [amd64])
Conf libdc1394-22-dev (2.2.0-2 Ubuntu:12.04/precise [amd64])
Conf libopencv-highgui-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-features2d-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-calib3d-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-objdetect-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-video2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-video-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-legacy2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-legacy-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-ml-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libcv-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgconf-2-4 gconf2-common liblapack3gf libhighgui2.1 tmux python-dbus-dev libcv2.1 libblas3gf libgfortran3 gconf-service python2.7-dev gconf-service-backend
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libopencv-calib3d2.3 libopencv-core2.3 libopencv-features2d2.3 libopencv-flann2.3 libopencv-gpu2.3 libopencv-highgui2.3 libopencv-imgproc2.3 libopencv-ml2.3 libopencv-objdetect2.3
The following packages will be REMOVED:
  libcv-dev
The following NEW packages will be installed:
  libopencv-calib3d2.3 libopencv-core-dev libopencv-core2.3 libopencv-features2d2.3 libopencv-flann2.3 libopencv-gpu2.3 libopencv-highgui2.3 libopencv-imgproc2.3 libopencv-ml2.3 libopencv-objdetect2.3
0 upgraded, 10 newly installed, 1 to remove and 11 not upgraded.
Remv libcv-dev [2.1.0-7build1]
Inst libopencv-core2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-flann2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-imgproc2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-highgui2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-features2d2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-calib3d2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-gpu2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-ml2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-objdetect2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Inst libopencv-core-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-core2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-flann2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-imgproc2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-highgui2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-features2d2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-calib3d2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-gpu2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-ml2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-objdetect2.3 (2.3.1-7 Ubuntu:12.04/precise [amd64])
Conf libopencv-core-dev (2.3.1-7 Ubuntu:12.04/precise [amd64])

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

The simulation seems to work, so you could execute the real command.

Try

sudo apt-get install libopencv-core-dev
sudo apt-get dist-upgrade

and copy/paste the output onto this question document.

Can you help with this problem?

Provide an answer of your own, or ask Dorf06 for more information if necessary.

To post a message you must log in.