How to Install Ubuntu Desktop Components (and to check if you have them)

When you install Ubuntu with Raspberry PI Imager, the installed image doesn’t come with Ubuntu desktop components. You can check if your Ubuntu installation has them by this command:

dpkg -l ubuntu-desktop

If you see the following, you don’t have them:

dpkg-query: no packages found matching ubuntu-desktop

You can install them by:

sudo apt update
sudo apt install ubuntu-desktop