Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-04-07 02:39:35

timeshift
Member
Registered: 2022-08-21
Posts: 31

How to get rid of Ubuntu Pro advertisement when updating apt?

Every time I install new package versions from the terminal I get ubuntu pro advertisement as in the following example:

Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  imagemagick libavcodec-extra libjs-jquery-ui libavdevice58 ffmpeg
  libopenexr25 libpostproc55 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
  libavcodec-extra58 libavutil56 imagemagick-6.q16 libswscale5
  libmagickcore-6.q16-6 libswresample3 imagemagick-6-common libavformat58
  libavfilter7
Learn more about Ubuntu Pro at https://ubuntu.com/pro

Thanks to anyone who can give me a hand to make this ad disappear.


xubuntu 22.04.3 LTS
xfce version 4.16

Offline

#2 2023-04-07 03:05:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

Not an Ubuntu user so can't test, but does this help?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-04-07 03:19:53

timeshift
Member
Registered: 2022-08-21
Posts: 31

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

Thanks for the help @ToZ, I have run the following command:

sudo pro config set apt_news=false

I just have to wait for new versions of packages to be released to see if I have been successful.

Last edited by timeshift (2023-04-07 03:21:08)


xubuntu 22.04.3 LTS
xfce version 4.16

Offline

#4 2023-04-10 19:27:40

timeshift
Member
Registered: 2022-08-21
Posts: 31

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

Thanks for the help @Toz, unfortunately it didn't work what the link recommends. If there are any other recommendations I appreciate it.


xubuntu 22.04.3 LTS
xfce version 4.16

Offline

#5 2023-04-10 21:23:00

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

Does the following help?

sudo rm /etc/update-motd.d/88-esm-announce
sudo systemctl disable ubuntu-advantage.service

Ref: https://askubuntu.com/questions/1434512 … dating-apt


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2023-04-11 11:41:13

robson75
Member
From: Poland
Registered: 2023-03-30
Posts: 13

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

https://ubuntu.pl/forum/viewtopic.php?f=146&t=186278

Remedy: open as root, backing up /usr/lib/python3/dist-packages/uaclient/messages.py
we look for SS_LEARN_MORE and TRY_UBUNTU_PRO_BETA , cut out the text itself in quotes and enjoy the ad-free terminal.

Last edited by robson75 (2023-04-11 15:00:02)


Arch Linux Xfce - 64Bit Linux User #621110 GitHub

Offline

#7 2023-04-12 04:31:06

zub
Member
Registered: 2023-01-18
Posts: 30

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

I was reading about some other users' experience with Ubuntu's marketing efforts. Tres obnoxious. Witholding security updates for any reason is not a good direction. Everyone's gotta pay the bills but I don't think this is going to work out. I'm setting up a little server soon and I think I'll give Debian a try.

Offline

#8 2023-04-12 22:12:12

herbie643
Member
Registered: 2013-04-05
Posts: 137

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

Offline

#9 2023-04-13 23:13:53

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 812

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

i don't get this with Xubuntu 20.04.  That may be because it is Xubuntu or because it is 20.04.  if i were faced with wanting to suppress output like this, i would make a wrapper script that filters it away.  it probably needs a different name to keep it simple.  this sample code is UNTESTED.  it is here for thinking about.

#!/bin/bash
if [[ -n "$APT" ]]; then
    echo this command is running itself in a loop - try a different name
    exit 1
fi    
export APT=1
exec "$@"|fgrep -v 'Ubuntu Pro'

Last edited by Skaperen (2023-04-13 23:14:37)

Offline

#10 2023-04-19 00:30:46

timeshift
Member
Registered: 2022-08-21
Posts: 31

Re: How to get rid of Ubuntu Pro advertisement when updating apt?

Many thanks to @ToZ and @robson75 for helping by giving tips to solve this big problem, however, I have to say that it didn't work. I stopped by the forum just to let you know about this inconvenience.

As for @herbie643 I tell him that's where I got the question from and posted it, I mean I had already visited askubuntu.com regarding this issue.

To @Skaperen: I will use this script from a virtual machine. If something favorable or otherwise unfavorable happens I will communicate it.


xubuntu 22.04.3 LTS
xfce version 4.16

Offline

Board footer

Powered by FluxBB