Remove Ubuntu Pro messages when using APT

How to remove Ubuntu Pro messages in APT.

This is something that has been bothering me for a while, but it was only today that I decided to take a look at this. On Ubuntu 23.04 (and possibly in previous versions as well), when you use APT to update or install some packages, you often get an annoying message like this:

#
# You can verify the status of security fixes using the `pro fix` command.
# E.g., a recent Ruby vulnerability can be checked with: `pro fix USN-6219-1`
# For more detail see: https://ubuntu.com/security/notices/USN-6219-1
#

I don't want or need useless information on my terminal, and removing it is quite simple. Just run the following command:

sudo pro config set apt_news=false

Now you're back to the regular APT behaviour.