Upgrade from 14.04 to 16.04 dependency issues

Bug #1572903 reported by Mario Costa
40
This bug affects 9 people
Affects Status Importance Assigned to Milestone
init-system-helpers (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

While upgrading from ubuntu 14.04 LTS to 16.04 LTS had errors regarding several packages, such as systemd-sysv and init package and others ...

Please refer to the attached logs.

Also the folowing errors:

sudo update-manager -d
[sudo] password for xxxxxxxx:
Checking for a new Ubuntu release
No bp log location saved, using default.
[000:000] Cpu: 6.69.1, x4, 2401Mhz, 7868MB
[000:001] Computer model: Not available
[000:001] Browser XEmbed support present: 1
[000:001] Browser toolkit is Gtk2.
[000:003] Using Gtk2 toolkit
No bp log location saved, using default.
[000:000] Cpu: 6.69.1, x4, 2401Mhz, 7868MB
[000:000] Computer model: Not available
[000:179] Warning(optionsfile.cc:30): Load: Could not open file, err=2
[000:179] No bp log location saved, using default.
[000:179] Cpu: 6.69.1, x4, 2401Mhz, 7868MB
[000:179] Computer model: Not available
[000:179] Browser XEmbed support present: 1
[000:179] Browser toolkit is Gtk2.
[000:179] Using Gtk2 toolkit
[000:138] Warning(optionsfile.cc:30): Load: Could not open file, err=2
[000:139] No bp log location saved, using default.
[000:139] Cpu: 6.69.1, x4, 2401Mhz, 7868MB
[000:139] Computer model: Not available
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:86: Warning: g_object_ref: assertion 'object->ref_count > 0' failed
  res = self.widgets.dialog_release_notes.run()
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:86: Warning: g_object_unref: assertion 'object->ref_count > 0' failed
  res = self.widgets.dialog_release_notes.run()
authenticate 'xenial.tar.gz' against 'xenial.tar.gz.gpg'
extracting 'xenial.tar.gz'
Traceback (most recent call last):
  File "/usr/share/apport/package_hook", line 19, in <module>
    import apport
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

Original exception was:
Traceback (most recent call last):
  File "/usr/share/apport/package_hook", line 19, in <module>
    import apport
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
Traceback (most recent call last):
  File "/usr/share/apport/package_hook", line 19, in <module>
    import apport
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

Original exception was:
Traceback (most recent call last):
  File "/usr/share/apport/package_hook", line 19, in <module>
    import apport
  File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
    from apport.report import Report
  File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
    import apport.fileutils
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 20, in <module>
    import apt
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ImportError: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/init.0.crash'

Revision history for this message
Mario Costa (mario-silva-costa) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in init-system-helpers (Ubuntu):
status: New → Confirmed
Revision history for this message
Mario Costa (mario-silva-costa) wrote :

Add no problems afterwards, just using dpkg --confgure all, I've ended with a stable system, and successful upgrade.

Revision history for this message
Konstantin (hi-angel-z) wrote :

The `dpkg --configure -a` didn't work for me. Upon configuring it throws the same errors it threw when failed to configure it, like:

octave: relocation error: octave: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference
dpkg: error processing package octave (--configure):
 subprocess installed post-installation script returned error exit status 127

And no stable system at all, DM doesn't even start, I'm trying fix it from chroot from live dvd, without a success yet.

Revision history for this message
Konstantin (hi-angel-z) wrote :

Okay, so, here's the workaround: download the libstdc++6 package from here http://packages.ubuntu.com/xenial/libstdc%2B%2B6 , both i386 and amd64 versions, then install them with dpkg -i.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.