brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Prompt= decides which new Ubuntu releases you get offered

Ubuntu
~/tips/tip-ubuntu-release-upgrade-prompt

grep ^Prompt /etc/update-manager/release-upgrades

Stay on long term support releases, or switch the upgrade offers off.

A server does not need to be told about every new release. One line in a config file decides what the upgrade tool offers.

grep ^Prompt /etc/update-manager/release-upgrades

There are three values. lts only offers upgrades from one long term support release to the next. normal offers any newer release, including the short lived ones. never offers no release upgrades at all.

To change it:

sudo sed -i 's/^Prompt=.*/Prompt=never/' /etc/update-manager/release-upgrades

Check the line again afterwards with the same grep.

My choice is lts for nearly everything. never makes sense for a box running software that is certified or tested for exactly one release, so nobody upgrades it by accident.

This does not affect normal package updates and security fixes, which keep arriving through apt. It also does not extend support. A release you stay on will reach the end of its standard support at some point, and with never you get no reminder, so put the date in a calendar. When you later want to move on, set it back to lts and then run do-release-upgrade.

Further reading: Ubuntu wiki: Upgrades, Switch between LTS and interim release

More Ubuntu tips sudo apt install ppa-purge sudo tee /etc/update-motd.d/60-disk >/dev/null <<'EOF' ubuntu-bug openssh-server sudo update-alternatives --config editor pro status All Ubuntu tips (8) All topics

Link