7

I recently upgraded my Ubuntu from 19.04 to 20.04. And as always, the first thing that happens is that all third party software sources are disabled.

I'm sure there are good reasons to do that and I don't mind going back in and re-enabling them afterwards. But it is such a trivial and half way mechanical task that I can't imagine that some tool doesn't exist to help user here.

Software sources dialog

Basically such a tool would check all disabled software sources with a comment like "Disabled by upgrade to.." (the exact wording eludes me) then look at the deb source, go out and check which Ubuntu release is the most recent under the "dist" folder, and enter that name in the Distribution field.

Do anyone know of such a tool?

2 Answers2

9

You no longer need to get them disabled. 3 methods got added as of 18.10:

An option to update-manager was added to keep PPAs enabled: AllowThirdParty = yes. Create a file ending in .cfg in /etc/update-manager/release-upgrades.d/ and add this:

[Sources]
AllowThirdParty = yes

You can also enable specific PPAs in the same file using

[ThirdPartyMirrors]
{unique_name} = {url}

The value for {url} is the URL of the PPA you want to keep enabled and can be found in /etc/apt/sources.list.d/.

There was also an environment variable added for command line usage:

RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 update-manager
RELEASE_UPGRADER_ALLOW_THIRD_PARTY=1 do-release-upgrade

That basically is a one-time option to keep 3rd party PPAs enabled.

Walf
  • 452
Rinzwind
  • 309,379
4

You could use y-ppa-manager, it is a software for PPA management.

Info: http://www.webupd8.org/2010/11/y-ppa-manager-easily-search-add-remove.html

Launchpad: https://launchpad.net/~webupd8team/+archive/ubuntu/y-ppa-manager

Lorenz Keel
  • 9,511