I am trying to upgrade from 16 LTS with a command

sudo do-release-upgrade

but it failes with

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'.

What she wants and how to satisfy her? I tried to remove all packages from launchpad.net but it didn't help.

  • 1
    Try to also remove the PPAs themselves and not only the program packages, that you installed from there: So first remove those program packages, then remove the PPAs. – sudodus Aug 9 '20 at 15:06
  • I don't understand, what it means. Suppose my list file has a line deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main. How to convert it to ppa:dhor/myway? – Dims Aug 9 '20 at 17:03

Referring to your comment about ppa:dhor/myway

The following command line can be used to remove the PPA (the option -r causes removal),

sudo add-apt-repository -r ppa:dhor/myway
sudo apt-get update

Your comment about .../webupd8team/java/ubuntu xenial main

deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main

corresponds to (can be removed with)

sudo add-apt-repository -r ppa:webupd8team/java
sudo apt-get update

Please notice that this PPA is discontinued.

  • What is ppa:dhor/myway? – Dims Aug 9 '20 at 17:10
  • If you have it, I would guess that you know what it is. I have not used it, but you can see this link – sudodus Aug 9 '20 at 17:12
  • I guess I don't have it. How to know these names for my PPAs? – Dims Aug 9 '20 at 17:14
  • Can you see in the output of sudo apt update, if there is any [other] PPA? – sudodus Aug 9 '20 at 17:16
  • Sorry thank you very much! – Dims Aug 9 '20 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.