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

Asked by Jamal Sarraf on 2020-06-27

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:
2020-06-28
Last query:
2020-06-28
Last reply:
2020-06-28
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..

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

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

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?

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.

What is the output of:

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

Thanks

Jamal Sarraf (jsarraf) said : #8

Thanks Kai Kasurinen, that solved my question.

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.