Cannot upgrade to ubuntu 18.04 from 16.04

Asked by Raj Khandor on 2018-10-03

I am running Ubuntu 16.04 .
Everytime I turn on the system it says system problem detected .
So I tried to upgrade it, but even that fails.

Terminal Output :

raj@raj-lenovo-ideapad-320-15isk:~$ sudo do-release-upgrade
[sudo] password for raj:
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,258 kB]
Fetched 1,259 kB in 0s (0 B/s)
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit http://archive.ubuntu.com/ubuntu xenial InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done

Updating repository information
Hit http://archive.ubuntu.com/ubuntu bionic InRelease
Hit http://security.ubuntu.com/ubuntu bionic-security InRelease
Fetched 0 B in 0s (0 B/s)

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done

Calculating the changes

Calculating the changes

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.

Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
2018-10-03
Last query:
2018-10-03
Last reply:
2018-10-03
Manfred Hampl (m-hampl) said : #1

Usually the files in /var/log/dist-upgrade/ provide details.

What is the output of
cat /var/log/dist-upgrade/main.log
tail -n 50 /var/log/dist-upgrade/apt.log

Raj Khandor (hackslash123) said : #2

raj@raj-lenovo-ideapad-320-15isk:~$ cat /var/log/dist-upgrade/main.log
2018-10-03 17:46:14,641 INFO Using config files '['./DistUpgrade.cfg.xenial']'
2018-10-03 17:46:14,641 INFO uname information: 'Linux raj-lenovo-ideapad-320-15isk 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 08:59:23 UTC 2018 x86_64'
2018-10-03 17:46:15,035 INFO apt version: '1.2.27'
2018-10-03 17:46:15,035 INFO python version: '3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609]'
2018-10-03 17:46:15,038 INFO release-upgrader version '18.04.26' started
2018-10-03 17:46:15,051 INFO locale: 'en_IN' 'ISO8859-1'
2018-10-03 17:46:15,120 INFO screen could not be run
2018-10-03 17:46:15,767 DEBUG Using 'DistUpgradeViewText' view
2018-10-03 17:46:15,834 DEBUG enable dpkg --force-overwrite
2018-10-03 17:46:15,871 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2018-10-03 17:46:18,547 DEBUG lsb-release: 'xenial'
2018-10-03 17:46:18,548 DEBUG _pythonSymlinkCheck run
2018-10-03 17:46:18,549 DEBUG openCache()
2018-10-03 17:46:18,549 DEBUG No such plugin directory: ./plugins
2018-10-03 17:46:18,549 DEBUG plugins for condition 'PreCacheOpen' are '[]'
2018-10-03 17:46:18,549 DEBUG plugins for condition 'bionicPreCacheOpen' are '[]'
2018-10-03 17:46:18,549 DEBUG plugins for condition 'from_xenialPreCacheOpen' are '[]'
2018-10-03 17:46:18,550 DEBUG quirks: running PreCacheOpen
2018-10-03 17:46:18,550 DEBUG running Quirks.PreCacheOpen
2018-10-03 17:46:19,179 DEBUG /openCache(), new cache size 85691
2018-10-03 17:46:19,179 DEBUG need_server_mode(): run in 'desktop' mode, (because of pkg 'ubuntu-desktop')
2018-10-03 17:46:19,179 DEBUG checkViewDepends()
2018-10-03 17:46:19,180 DEBUG running doUpdate() (showErrors=False)
2018-10-03 17:46:22,398 DEBUG openCache()
2018-10-03 17:46:23,053 DEBUG /openCache(), new cache size 85691
2018-10-03 17:46:23,054 DEBUG doPostInitialUpdate
2018-10-03 17:46:23,054 DEBUG plugins for condition 'PostInitialUpdate' are '[]'
2018-10-03 17:46:23,054 DEBUG plugins for condition 'bionicPostInitialUpdate' are '[]'
2018-10-03 17:46:23,054 DEBUG plugins for condition 'from_xenialPostInitialUpdate' are '[]'
2018-10-03 17:46:23,054 DEBUG quirks: running bionicPostInitialUpdate
2018-10-03 17:46:23,054 DEBUG running Quirks.bionicPostInitialUpdate
2018-10-03 17:46:29,593 DEBUG MetaPkgs: ubuntu-desktop
2018-10-03 17:46:32,349 DEBUG Foreign:
2018-10-03 17:46:32,350 DEBUG Obsolete: brackets codeblocks-contrib-common codeblocks-headers codeblocks-libwxcontrib0 codeblocks-wxcontrib-dev codeblocks-wxcontrib-headers gcc-7-base gcc-7-base:i386 gcc-8-base gcc-8-base:i386 google-chrome-stable launchpad-getkeys libdrm-common libinput-bin libllvm6.0 libqmi-glib5 libsnapd-glib1 neofetch snapd-login-service virtualbox-5.2 wxsmith-dev wxsmith-headers xserver-xorg-hwe-16.04 xserver-xorg-input-all-hwe-16.04 xserver-xorg-input-evdev-hwe-16.04 xserver-xorg-input-synaptics-hwe-16.04 xserver-xorg-input-wacom-hwe-16.04 xserver-xorg-video-all-hwe-16.04 xserver-xorg-video-amdgpu-hwe-16.04 xserver-xorg-video-ati-hwe-16.04 xserver-xorg-video-fbdev-hwe-16.04 xserver-xorg-video-intel-hwe-16.04 xserver-xorg-video-nouveau-hwe-16.04 xserver-xorg-video-qxl-hwe-16.04 xserver-xorg-video-radeon-hwe-16.04 xserver-xorg-video-vesa-hwe-16.04 xserver-xorg-video-vmware-hwe-16.04 y-ppa-manager
2018-10-03 17:46:32,350 DEBUG updateSourcesList()
2018-10-03 17:46:32,409 DEBUG rewriteSourcesList() with mirror_check
2018-10-03 17:46:32,410 DEBUG ['ubuntu-minimal', 'ubuntu-standard']
2018-10-03 17:46:32,410 DEBUG Checking pkg: ubuntu-minimal
2018-10-03 17:46:32,411 DEBUG BaseMetaPkg 'ubuntu-minimal' has no candidate.origins
2018-10-03 17:46:32,603 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu xenial main'
2018-10-03 17:46:32,603 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu bionic main' updated to new dist
2018-10-03 17:46:32,603 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu xenial main universe #Added by software-properties'
2018-10-03 17:46:32,603 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu bionic main universe #Added by software-properties' updated to new dist
2018-10-03 17:46:32,603 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu xenial universe'
2018-10-03 17:46:32,603 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu bionic universe' updated to new dist
2018-10-03 17:46:32,603 DEBUG examining: 'deb http://security.ubuntu.com/ubuntu/ xenial-security main universe'
2018-10-03 17:46:32,603 DEBUG entry 'deb http://security.ubuntu.com/ubuntu/ bionic-security main universe' updated to new dist
2018-10-03 17:46:32,604 DEBUG running doUpdate() (showErrors=True)
2018-10-03 17:46:42,267 DEBUG openCache()
2018-10-03 17:46:42,267 DEBUG failed to SystemUnLock() (E:Not locked)
2018-10-03 17:46:42,987 DEBUG /openCache(), new cache size 90151
2018-10-03 17:46:42,987 DEBUG need_server_mode(): run in 'desktop' mode, (because of pkg 'ubuntu-desktop')
2018-10-03 17:46:43,711 ERROR Dist-upgrade failed: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'
2018-10-03 17:46:43,715 DEBUG abort called
2018-10-03 17:46:43,716 DEBUG openCache()
2018-10-03 17:46:43,716 DEBUG failed to SystemUnLock() (E:Not locked)
2018-10-03 17:46:46,291 DEBUG /openCache(), new cache size 85691

raj@raj-lenovo-ideapad-320-15isk:~$ tail -n 50 /var/log/dist-upgrade/apt.log
  Considering python-scipy:amd64 3 as a solution to libpython2.7-stdlib:amd64 23
  Upgrading python-scipy:amd64 due to Breaks field in libpython2.7-stdlib:amd64
Investigating (7) python-scipy [ amd64 ] < 0.17.0-1 -> 0.19.1-2ubuntu1 > ( universe/python )
Broken python-scipy:amd64 Depends on libgfortran4 [ amd64 ] < none -> 7.3.0-16ubuntu3 > ( libs ) (>= 7)
  Considering libgfortran4:amd64 0 as a solution to python-scipy:amd64 3
  MarkKeep python-scipy [ amd64 ] < 0.17.0-1 -> 0.19.1-2ubuntu1 > ( universe/python ) FU=0
  Holding Back python-scipy:amd64 rather than change libgfortran4:amd64
Investigating (7) libopenblas-base [ amd64 ] < 0.2.18-1ubuntu1 -> 0.2.20+ds-4 > ( universe/libs )
Broken libopenblas-base:amd64 Depends on libgfortran4 [ amd64 ] < none -> 7.3.0-16ubuntu3 > ( libs ) (>= 7)
  Considering libgfortran4:amd64 0 as a solution to libopenblas-base:amd64 0
  MarkKeep libopenblas-base [ amd64 ] < 0.2.18-1ubuntu1 -> 0.2.20+ds-4 > ( universe/libs ) FU=0
  Holding Back libopenblas-base:amd64 rather than change libgfortran4:amd64
Investigating (8) libblas3 [ amd64 ] < 3.6.0-2ubuntu2 -> 3.7.1-4ubuntu1 > ( libs )
Broken libblas3:amd64 Breaks on libopenblas-base [ amd64 ] < 0.2.18-1ubuntu1 -> 0.2.20+ds-4 > ( universe/libs ) (< 0.2.20+ds-3~)
  Considering libopenblas-base:amd64 0 as a solution to libblas3:amd64 34
  Upgrading libopenblas-base:amd64 due to Breaks field in libblas3:amd64
Investigating (8) libpython2.7-stdlib [ amd64 ] < 2.7.12-1ubuntu0~16.04.3 -> 2.7.15~rc1-1 > ( python )
Broken libpython2.7-stdlib:amd64 Breaks on python-scipy [ amd64 ] < 0.17.0-1 -> 0.19.1-2ubuntu1 > ( universe/python ) (< 0.18.1-2ubuntu3)
  Considering python-scipy:amd64 3 as a solution to libpython2.7-stdlib:amd64 23
  Upgrading python-scipy:amd64 due to Breaks field in libpython2.7-stdlib:amd64
Investigating (8) python-scipy [ amd64 ] < 0.17.0-1 -> 0.19.1-2ubuntu1 > ( universe/python )
Broken python-scipy:amd64 Depends on libgfortran4 [ amd64 ] < none -> 7.3.0-16ubuntu3 > ( libs ) (>= 7)
  Considering libgfortran4:amd64 0 as a solution to python-scipy:amd64 3
  MarkKeep python-scipy [ amd64 ] < 0.17.0-1 -> 0.19.1-2ubuntu1 > ( universe/python ) FU=0
  Holding Back python-scipy:amd64 rather than change libgfortran4:amd64
Investigating (8) libopenblas-base [ amd64 ] < 0.2.18-1ubuntu1 -> 0.2.20+ds-4 > ( universe/libs )
Broken libopenblas-base:amd64 Depends on libgfortran4 [ amd64 ] < none -> 7.3.0-16ubuntu3 > ( libs ) (>= 7)
  Considering libgfortran4:amd64 0 as a solution to libopenblas-base:amd64 0
  MarkKeep libopenblas-base [ amd64 ] < 0.2.18-1ubuntu1 -> 0.2.20+ds-4 > ( universe/libs ) FU=0
  Holding Back libopenblas-base:amd64 rather than change libgfortran4:amd64
Investigating (9) libblas3 [ amd64 ] < 3.6.0-2ubuntu2 -> 3.7.1-4ubuntu1 > ( libs )
Broken libblas3:amd64 Breaks on libopenblas-base [ amd64 ] < 0.2.18-1ubuntu1 -> 0.2.20+ds-4 > ( universe/libs ) (< 0.2.20+ds-3~)
  Considering libopenblas-base:amd64 0 as a solution to libblas3:amd64 34
  Upgrading libopenblas-base:amd64 due to Breaks field in libblas3:amd64
Investigating (9) libpython2.7-stdlib [ amd64 ] < 2.7.12-1ubuntu0~16.04.3 -> 2.7.15~rc1-1 > ( python )
Broken libpython2.7-stdlib:amd64 Breaks on python-scipy [ amd64 ] < 0.17.0-1 -> 0.19.1-2ubuntu1 > ( universe/python ) (< 0.18.1-2ubuntu3)
  Considering python-scipy:amd64 3 as a solution to libpython2.7-stdlib:amd64 23
  Upgrading python-scipy:amd64 due to Breaks field in libpython2.7-stdlib:amd64
Investigating (9) python-scipy [ amd64 ] < 0.17.0-1 -> 0.19.1-2ubuntu1 > ( universe/python )
Broken python-scipy:amd64 Depends on libgfortran4 [ amd64 ] < none -> 7.3.0-16ubuntu3 > ( libs ) (>= 7)
  Considering libgfortran4:amd64 0 as a solution to python-scipy:amd64 3
  MarkKeep python-scipy [ amd64 ] < 0.17.0-1 -> 0.19.1-2ubuntu1 > ( universe/python ) FU=0
  Holding Back python-scipy:amd64 rather than change libgfortran4:amd64
Investigating (9) libopenblas-base [ amd64 ] < 0.2.18-1ubuntu1 -> 0.2.20+ds-4 > ( universe/libs )
Broken libopenblas-base:amd64 Depends on libgfortran4 [ amd64 ] < none -> 7.3.0-16ubuntu3 > ( libs ) (>= 7)
  Considering libgfortran4:amd64 0 as a solution to libopenblas-base:amd64 0
  MarkKeep libopenblas-base [ amd64 ] < 0.2.18-1ubuntu1 -> 0.2.20+ds-4 > ( universe/libs ) FU=0
  Holding Back libopenblas-base:amd64 rather than change libgfortran4:amd64
Done
Log time: 2018-10-03 17:46:46.063782

Best Manfred Hampl (m-hampl) said : #3

I see two possible paths for you:

1. You should add the "xenial-updates" repositories and perform a full package upgrade on xenial.
It seems that you do not have the newest versions of the packages for xenial. Such package upgrade might be the solution for the "system problem detected" message after each boot, or may solve the dependency problem for the release upgrade.

2. Based on your output I suggest that you uninstall python-scipy and libgfortran4 (and the packages depending on these two), and then re-try the release upgrade.

Raj Khandor (hackslash123) said : #4

Thanks Manfred Hampl, that solved my question.