Can't uninstall Edge
By Jessica Wood •
I have tried using:
sudo apt purge microsoft-edge-dev
sudo apt remove microsoft-edge-dev
sudo apt purge microsoft-edge
sudo apt remove microsoft-edgeBut I get the errors Package microsoft-edge-dev is not installed, so not removed and Unable to locate package microsoft-edge.
Edge is still in my favourites bar and opens normally.
14 Answers
You can use APT's support for wildcards, uninstalling all versions of Edge you might have:
sudo apt purge 'microsoft-edge-*' 2 Depending on what you installed, try:
sudo apt purge microsoft-edge-stableor
sudo apt purge microsoft-edge-betaor
sudo apt purge microsoft-edge-canary 1 This happens if you mis-spell the package name. Try running
apt list --installed | grep edge or
apt list --installed | grep microsoft 0 If you're using Ubuntu 19.10 or newer, or Debian Bullseye or newer, you can check if you have anything installed and named like microsoft with:
apt list ~i~nmicrosoftSimilarly, you can remove (any) with:
apt purge ~i~nmicrosoftThis uses the new syntax (apt 2.0) that lists:
~i: installed packages~n<pattern>: packages whose names match the given RegEx pattern (partial match, not full match). We're using~nmicrosofthere so any package havingmicrosoftin its name gets selected.
For example, on my workstation with Ubuntu 20.04:
ubuntu@iBug-Server:~$ apt list ~i~nmicrosoft
Listing... Done
microsoft-edge-stable/stable 96.0.1054.53-1 amd64 [upgradable from: 96.0.1054.43-1]
packages-microsoft-prod/focal,now 1.0-ubuntu20.04.1 all [installed]
ubuntu@iBug-Server:~$ More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"