Install Microsoft Edge Browser (Stable) in Ubuntu / Debian via Official Repository

Last updated: March 28, 2023

Microsoft Edge web browser finally adds Linux support after more than a year of dev and beta tests. Here’s how to correctly add the Microsoft repository and install Edge browser in Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Debian 11, and their based systems.

After this tutorial, you should be able to open the latest stable Edge from start menu (activities overview). And, with the Microsoft repository it allows to keep it up-to-date by receiving updates via “Software Updater”.

How to Install Microsoft Edge in Ubuntu:

For those who don’t want to struggle with Linux commands, just download the latest version of .deb package from THIS PAGE, then double-click to install via “Software Install”.

1. Download & install the GPG Key:

Before adding the repository, you need to first download & install the GPG key so system will accept signatures from Microsoft.

Press Ctrl+Alt+T on keyboard to open terminal. When it opens, paste the command below and hit Enter to run:

wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg

The command will download the key from Microsoft, then convert it into encrypted GPG, and finally store the file under “/usr/share/keyrings/” directory.

Download, convert, & install the key

IMPORTANT: After downloaded the key, terminal may stuck with blinking cursor! It’s waiting for you to type user password for sudo command, because the “[sudo] password for $USER:” prompt is somehow not displayed. Just type your password (no feedback) and hit Enter.

2. Add Microsoft Edge repository:

After installing the GPG key, run the command below one by one to add the repository to your system.

a.) Remove old repository if any via command:

sudo rm /etc/apt/sources.list.d/microsoft-edge*.list

b.) Add the stable repository:

sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge.list'

The command will create and write the source line into “/etc/apt/sources.list.d/microsoft-edge.list” file, signed by the key installed via step above.

Add microsoft repo, sign the key

3. Finally refresh package cache and install Edge browser:

After all, update the system package cache via command:

sudo apt update

And install the web browser:

sudo apt install microsoft-edge-stable

Once installed, search for and open it from activities overview screen and enjoy!

How to Remove Edge & its repository:

With the repository, it allows to receive updates for Edge using “Software Updater” utility. If you want to remove it, open terminal and run command to delete the source file:

sudo rm /etc/apt/sources.list.d/microsoft-edge.list

Also, remove the key file if you want:

sudo rm /usr/share/keyrings/microsoft.gpg

To remove the Edge web browser, run command:

sudo apt remove --autoremove microsoft-edge-stable

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

11 responses to Install Microsoft Edge Browser (Stable) in Ubuntu / Debian via Official Repository

  1. sudo apt install microsoft-edge-dev
    peter@ThinkPad:~$ sudo apt install microsoft-edge-dev
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package microsoft-edge-dev

    Cannot install edge. Any ideas? ALREADY DID update

  2. Thank you! I appreciated your explanation of each step, and I very much appreciated that it worked!!!

  3. It works perfectly.
    The explanations were perfect. The instructions crystal clear.
    It’s only right (and polite) to thank you for this.
    Best wishes.

  4. Is there a version for arch=arm64 ?? I.E. Running Ubuntu on a Raspberry PI 4 with 8GB of RAM, Ubuntu 21.10 is very nice if you have installed systemd-zram to make swap a memory only option.

  5. Running ubuntu 20.04
    Folowed al steps.
    Getting this error

    All packages are up to date.
    W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.microsoft.com/repos/edge stable InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
    W: Failed to fetch https://packages.microsoft.com/repos/edge/dists/stable/InRelease The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
    W: Some index files failed to download. They have been ignored, or old ones used instead.

    Why o why, or is this

    • The key is not properly installed. You need to re-run the command below:

      wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft.gpg

      The command will download, dearmor, and finally put the key file into ‘/usr/share/keyrings’ folder.

      When processing ‘sudo tee /usr/share/keyrings/microsoft.gpg‘, it needs user password authentication! However, due to bug (maybe) the terminal will NOT output any visual prompt for that. It just stuck at blinking cursor waiting for you to type password (no feedback, type in your mind).

      If it everything goes well, you should see something like the screenshot (in step 1) shows.

  6. I also get the error on installation: “E: Unable to locate package microsoft-edge-stable”
    Any idea of why this is? Seems like the packages are no longer in the repository.

    Thanks.

  7. Balsey Dean De Witt, Jr. March 28, 2023 at 12:48 pm

    I have been waiting. Everything you post for us to do works except the most important line, the last one. I still, March 28, 2023, still get “Unable to locate microsoft-edge-stable”! I tried the beta and dev suffix, still CAN’T LOCATE!

  8. wow thankyou so much, this worked for me like magic, I use Parrot Security OS.

  9. Thx it works, although I used microsoft-edge-beta package.