ERROR Dist-upgrade failed when upgrading from Ubuntu 20.04 to 22.04

st flag

I am trying to upgrade from Ubuntu 20.04 to 22.04 yet when running the sudo do-release-upgrade I get the 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'.

I checked /var/log/dist-upgrade/main.log which contains the following message:

ERROR Dist-upgrade failed: 'Broken packages after upgrade: evolution-data-server, gnome-control-center, libgirepository-1.0-1, ubuntu-desktop'

I'm not familiar with these packages and they look necessary. Is it safe to run ppa-purge or sudo apt remove on them? How should I proceed from here?

guiverc avatar
cn flag
The `evolution-data-server` package is only essential if you want/need to use the GNOME desktop, as it's a backend server used by it, it's **not** part of the GNOME MUA `evolution`. If your packages are from 3rd party repositories, you should revert to the Ubuntu repository packages and not just remove them (if you want those features/functions available when you get to *jammy*)
Sabnock01 avatar
st flag
How do I revert them?
guiverc avatar
cn flag
`ppa-purge` is usually used for that purpose, maybe helpful, but I've not used that tool in (>5) years so I'd prefer not to advise. If I've made many package changes from 3rd party, I usually opt to non-destructively re-install (ie. *Upgrade via re-install*)
I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.