Distro upgrade bug3

Asked by Laszlo Toth

HI All,
1. lsb_release -rd
Description: Ubuntu 18.04.5 LTS
Release: 18.04

2.sudo apt-cache policy pkgname
[sudo] password for laci:
N: Unable to locate package pkgname

3. I expected a smart distro upgrade to 20.04

4.During the upgrade process (18.04 LTS to 20.04 LTS)

I got the following error message:

Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

 This was likely caused by:
 * Unofficial software packages not provided by Ubuntu
Please use the tool 'ppa-purge' from the ppa-purge
package to remove software from a Launchpad PPA and
try the upgrade again.

If none of this applies, then please report this bug using the command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If you want to investigate this yourself the log files in '/var/log/dist-upgrade' will contain details about the upgrade. Specifically, look at 'main.log' and 'apt.log'

Regarding security the availability is under real threat.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubuntu-release-upgrader-core 1:18.04.38
ProcVersionSignature: Ubuntu 5.4.0-45.49~18.04.2-generic 5.4.55
Uname: Linux 5.4.0-45-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.17
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 2 18:55:46 2020
InstallationDate: Installed on 2020-01-28 (218 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to bionic on 2020-09-02 (0 days ago)
VarLogDistupgradeTermlog:

mtime.conffile..etc.update-manager.release-upgrades: 2020-08-27T08:41:43.692313

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubuntu-release-upgrader Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1893974.

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

Not a bug, but caused by local settings. Converting into a question.

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

Having installed software from foreign sources or PPAs will in some cases block the release upgrade process, because the Ubuntu upgrader cannot know about required peculiarities for upgrading these foreign packages.
You seem to be hitting such problem.

Your log clearly tells:

(quote)
Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

 This was likely caused by:
 * Unofficial software packages not provided by Ubuntu
Please use the tool 'ppa-purge' from the ppa-purge
package to remove software from a Launchpad PPA and
try the upgrade again.
(end of quote)

Solution:
Either uninstall all packages that were installed from a PPA (or other sources outside the official Ubuntu repositories), or downgrade these packages to the version in the standard Ubuntu repositories.

Execute the command
dpkg -l | grep '~bionic'
to see a (maybe incomplete) list of packages that were installed from PPAs
or install the package synaptic and execute the program synaptic to show installed packages by origin.

Based on the output in your bug report you have at least installed packages from ppa:ubuntugis/ppa and ppa:obsproject/obs-studio

Can you help with this problem?

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

To post a message you must log in.