How to remove microsoft repo

Kernels & Hardware, configuring network, installing services

How to remove microsoft repo

Postby xedni » 2020-06-12 20:48

I'm trying to remove a microsoft repo but I've not been able to do it, either via the terminal or through the software sources dialog. Could somebody kindly advise as to how to remove it please?

The offender is: https://packages.microsoft.com/repos/ms-teams stable InRelease

The terminal command I used was: sudo add-apt-repository --remove https://packages.microsoft.com/repos/ms-teams
xedni
 
Posts: 47
Joined: 2014-02-07 07:53
Location: Polska

Re: How to remove microsoft repo

Postby Head_on_a_Stick » 2020-06-12 20:56

Find the offending file with
Code: Select all
grep -v '^$\|^#' /etc/apt/sources.list{,.d/*}

Then remove the file or comment out the repository line(s) and update your sources.

Be sure to also remove the Teams package itself, it might install a cron job to replace the source if it is deleted just like Google's Chome .deb package does.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12159
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to remove microsoft repo

Postby xedni » 2020-06-12 21:05

Head_on_a_Stick wrote:Find the offending file with
Code: Select all
grep -v '^$\|^#' /etc/apt/sources.list{,.d/*}

Then remove the file or comment out the repository line(s) and update your sources.

Be sure to also remove the Teams package itself, it might install a cron job to replace the source if it is deleted just like Google's Chome .deb package does.


Cool, thank you very much.
xedni
 
Posts: 47
Joined: 2014-02-07 07:53
Location: Polska


Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable