TransWikia.com

I was unable to update to Ubuntu 20 from Ubuntu 18.04

Ask Ubuntu Asked by Greek Sachdeva on February 20, 2021

When I was updating suddenly the process aborted with the 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'. 


Restoring original system state

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

Please help me with update to Ubuntu 20.04 from 18.04.

3 Answers

Just

  • Go to Software & Updates
  • Go to Ubuntu software
  • In the Download from menu select main server

Then try to update Ubuntu. It worked very well for me.

Correct answer by Greek Sachdeva on February 20, 2021

I was having the same issue, and this answer helped me. In short you only have to:

  1. sudo apt install synaptic - if you don't already have it installed
  2. open synaptic, go to Status and remove all obsolete packages from the list
  3. upgrade ubuntu as usual

The only drawback is that you'll lose some packages you may use, but you can take a screenshot before the uninstall and get them back after the upgrade.

Answered by gmolnar on February 20, 2021

You have to remove third party repository. You can do it using one of two method:

Using the GUI (Software & Updates):

  1. Open Software & Updates app.
  2. Switch to Other Software tab.
  3. Uncheck all checkboxes (it will prompt for password first time).
  4. Retry upgrade to 20.04.

Using terminal:

  1. Issue this command on terminal:

    cd /etc/apt/sources.list.d
    
  2. Using an editor like nano or vi comment all uncommented line (put a # character at the beginning of line) in all files. (You need to use sudo) (You have to open all files one by one) (Uncommented line indicates those lines which don't start with a # character.)

  3. Retry upgrade to 20.04.

Answered by Akib Azmain on February 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP