Cobra Forum

Linux Community Discussions => Ubuntu, Linux and OS Chat => Topic started by: kalpana on Nov 08, 2023, 03:47 AM

Title: How to remove the blatant Ubuntu PRO advertising during apt-get upgrade
Post by: kalpana on Nov 08, 2023, 03:47 AM
In /usr/lib/python3/dist-packages/uaclient/messages.py:

grep for 'Try Ubuntu Pro beta', which as of today, 2022-10-13 matches on the following lines:

Code:
lib/python3/dist-packages/uaclient/messages.py:1014:Try Ubuntu Pro beta with a free personal subscription on up to 5 machines.
lib/python3/dist-packages/uaclient/messages.py:1039:Try Ubuntu Pro beta with a free personal subscription on up to 5 machines.

Then just change the assignments for variables SS_LEARN_MORE and TRY_UBUNTU_PRO_BETA to empty strings (i.e., ''):
Code:
1014:SS_LEARN_MORE = ''
1033:TRY_UBUNTU_PRO_BETA = '' # Note: Line number adjusted as a result of the change at line 1014