Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: do-release-upgrade fails after 18.04.1 LTS

  1. #11
    Join Date
    Aug 2018
    Beans
    1

    Re: do-release-upgrade fails after 18.04.1 LTS

    hi tux43, today I ran do-release-upgrade in Ubuntu 16 and ended in the same situation as mentioned above (same unmet dependencies).

    What helped me:
    1. to use sudo dpkg --remove [package-name] to remove problematic packages found via sudo dpkg --configure -a (source: https://stackoverflow.com/a/35969176/557223 ). Some packages couldn't be removed as they were dependencies of another packages.
    2. to run sudo apt-get install -f (it started to working again, yay)
    3. to rename org.freedesktop.systemd1.service file as mentioned above and also mentioned in https://askubuntu.com/a/838673
    4. to run sudo apt-get update and dist-upgrade and autoremove
    5. to finally eat some food, since I was very hungry due to solving the issue

  2. #12
    Join Date
    Jan 2007
    Beans
    21

    Red face Re: do-release-upgrade fails after 18.04.1 LTS

    Quote Originally Posted by aysiu View Post
    Try renaming that file, and then fixing again:
    Code:
    sudo mv /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.bak
    sudo apt -f install
    Hello,

    I had the exact same issue on release upgrade and renaming
    /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service
    worked like a charm, thanks for that
    Last edited by jokker; November 4th, 2018 at 08:10 PM.

  3. #13
    Join Date
    Jan 2019
    Beans
    2

    Re: do-release-upgrade fails after 18.04.1 LTS

    Hello, i may have the same error, tried many way but i still can't fix the problem

    Code:
    sudo apt-get update
    Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
    Hit:2 http://dl.google.com/linux/chrome/deb stable Release
    Hit:3 https://dl.yarnpkg.com/debian stable InRelease
    Hit:5 https://deb.nodesource.com/node_10.x bionic InRelease
    Hit:7 https://download.docker.com/linux/ubuntu bionic InRelease
    Hit:8 http://vn.archive.ubuntu.com/ubuntu bionic InRelease
    Get:9 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
    Hit:10 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
    Hit:11 http://vn.archive.ubuntu.com/ubuntu bionic-updates InRelease
    Get:12 http://vn.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
    Hit:6 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
    Fetched 158 kB in 2s (92.0 kB/s)
    Error: Timeout was reached
    Traceback (most recent call last):
      File "/usr/lib/cnf-update-db", line 8, in <module>
        from CommandNotFound.db.creator import DbCreator
      File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module>
        import apt_pkg
    ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so: symbol _ZN9pkgSystem9LockInnerEv version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 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 24, in <module>
        import apt
      File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
        import apt_pkg
    ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so: symbol _ZN9pkgSystem9LockInnerEv version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
    
    
    Original exception was:
    Traceback (most recent call last):
      File "/usr/lib/cnf-update-db", line 8, in <module>
        from CommandNotFound.db.creator import DbCreator
      File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module>
        import apt_pkg
    ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so: symbol _ZN9pkgSystem9LockInnerEv version APTPKG_5.0 not defined in file libapt-pkg.so.5.0 with link time reference
    Reading package lists... Done
    E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
    E: Sub-process returned an error code
    Do anyone know hot to fix this problem ?

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •