how to remove MS TEAM from the Ubuntu Terminal update after been Removed thru Ubuntu Software

Asked by Jamal Sarraf

I did remove MS TEAM using Ubuntu Software.
But every time I run the Terminal's command :
sudo apt-get update,
I can still see the following :
Hit:5 https://packages.microsoft.com/repos/ms-teams stable InRelease

Is there a way to remove MS TEAM from the Ubuntu Terminal update?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Kai Kasurinen
Solved:
Last query:
Last reply:
Revision history for this message
Jamal Sarraf (jsarraf) said :
#1

I tried the command:
sudo apt-get --purge remove ms-teams

But this is what I got:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ms-teams

But it did not work..

Revision history for this message
Jamal Sarraf (jsarraf) said :
#2

I also tried:
sudo apt-get purge --auto-remove ms-teams

and I got the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ms-teams

Revision history for this message
Jamal Sarraf (jsarraf) said :
#3

when I run:
dpkg --list

I can not see any trace of: MS_TEAMS

whay then when runing:

sudo apt-get update

I keep seeing the MS-TEAMS showing

Revision history for this message
Jamal Sarraf (jsarraf) said :
#4

And also when trying to run:
apt-get --purge autoremove $(dpkg --get-selections | grep ms-teams | awk '{ print $1}')

I got the following

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Revision history for this message
Best Kai Kasurinen (kai-kasurinen) said :
#5

sudo rm /etc/apt/sources.list.d/teams.list /etc/apt/trusted.gpg.d/microsoft.gpg

--

files installed on package postinstall configure and not removed.

Revision history for this message
Kai Kasurinen (kai-kasurinen) said :
#6
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

What is the output of:

sudo egrep -i -R 'team|micro' /etc/apt/*

Thanks

Revision history for this message
Jamal Sarraf (jsarraf) said :
#8

Thanks Kai Kasurinen, that solved my question.

Revision history for this message
Jamal Sarraf (jsarraf) said :
#9

Thank you > Kai Kasurinen (kai-kasurinen) < the problem was solved instantly by the command:

sudo rm /etc/apt/sources.list.d/teams.list /etc/apt/trusted.gpg.d/microsoft.gpg

--

Thanks for the help of > actionparsnip (andrew-woodhead666) < and Sorry I did not get the chance to use your command the problem was solved by the 1st suggestion of.