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

Last updated: October 30, 2021 — 7 Comments

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 21.10, 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:

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 remind me outdated tutorial! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

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

  1. sudo apt install microsoft-edge-dev
    [email protected]:~$ 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.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.