Site Tools


Table of Contents

A note on repositories

For some reason I have noticed a tendency for Ubuntu users to add 3rd party repositories to their installations. This is not how apt works, and should never be done. This 'feature' has fallen into abuse for the most part. To get later versions of packaged you either use snaps (or some equivalent) or you use backports in apt. Adding a 3rd party repository can degrade security, stability or both. It also causes your Linux install to fall out of the straight and narrow path, much like the dwarves who left the path in Mirkwood where their fate was almost sealed by such folly, we must be ever vigilant against doing such things. Please review “the software and updates” package and the “other software” section and ensure you don't have any 3rd party repositories. If you do, review why you have them, remove the software you installed from them and then remove them, and instead get the software via snap if you need it.

You will also never mix sources from different versions of Debian or Ubuntu. For example you will never add the unstable sources at the same time as testing or stable or something weird like that. Packages can have different names and all sorts of massive problems can happen. Please never do this. If you pick testing, then thats all you get. If you pick stable, then thats all you get. Mix and matching sources = a broken install.

There are a couple exceptions, for example, the ppa graphics driver team for Ubuntu provide newer graphics drivers (FOR UBUNTU ONLY) that you might need to support your Graphics hardware. This repository can be left if required. Another example is the edge browser from Microsoft which can be safely added as a repository as its distro version agnostic (it does not contain a codename like jammy or bookworm as its not designed for a specific version of a distro).

Upgrading from stable to the next testing release

This is very easy. Both Ubuntu and Debian have a single file to modify, assuming you have not added 3rd party repositories, and a couple of commands can then bring your install to the testing version. On Ubuntu this is Ubuntu+1 and on Debian this is Debian testing.

As you have already configured Timeshift, this is safe since you can just roll back if anything breaks. See the Timeshift section on how to do this (and configure if you have not yet don that).

Assuming you are on Debian Stable (as of writing it is called bullseye) and you want to change to Bookworm (the testing version), or assuming you are on Ubuntu Impish and want to change to Jammy you just edit one file and change the names appropriately. Eg:

sudo sudo nano /etc/apt/sources.list

I replaced 'bullseye' with 'bookworm' and 'impish' with 'jammy' in the two screenshots. Ensure you change all instances of the name and scroll all the way through the file to change every instance:

If a line had something like 'impish-updates' I changed it to 'jammy-updates' and so on and so on.

Next just update:

sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot

If all goes well, you are now in the testing release. Easy!

You an also cleanup any old packages you don't need anymore with:

sudo apt-get autoremove


Notes: If anyone has any other notes or useful commands or things about Apt or Sources in general, add them here.

start/upgrade.txt · Last modified: 2022/05/17 19:10 by peter