To install Microsoft Edge on Ubuntu from the terminal, add Microsoft’s official Edge package repository, refresh APT’s package list, and install microsoft-edge-stable. This method also makes future Edge updates available through Ubuntu’s normal package-update process.
What you are installing
Microsoft Edge for Linux is built on Chromium, the open-source browser project also used by Google Chrome and several other browsers. Edge is distributed by Microsoft as a Linux package; it is not the same application as Ubuntu’s default Firefox browser. Installing it gives you Microsoft’s browser features, such as Microsoft account sync and integration with Microsoft services, if you choose to use them.
The steps below use Ubuntu’s APT package manager and Microsoft’s repository. They assume a regular desktop installation and a user account with permission to run sudo. You do not need to download a Windows installer, use Wine, or run the browser as an administrator.
Check your Ubuntu system first
Open Terminal and check the system architecture with dpkg --print-architecture. The common result on a standard Intel or AMD desktop is amd64. Package availability can depend on your architecture and the current Microsoft download options, so check Microsoft’s Edge for Linux download page if you are using a less common device or the installation reports that no package is available.
It is also sensible to install current Ubuntu updates before adding software. Run sudo apt update to refresh package information; if you want to apply available system updates, run sudo apt upgrade and review the proposed changes. You will need an internet connection to download Edge and its package dependencies.
Recommended method: install from Microsoft’s APT repository
Adding the official repository is the most convenient terminal method for most users. APT downloads Edge from Microsoft’s package service, checks packages against repository signing information, and can include Edge in later upgrades. The signing key is stored in a dedicated keyring and referenced only by this repository, rather than being trusted system-wide for every software source.
First install the tools needed to download and process Microsoft’s public signing key:
sudo apt update
sudo apt install curl gpg
Next, download the key and save it in a keyring file that APT can use:
curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/microsoft-edge.gpg > /dev/null
Now add Microsoft’s Edge repository to APT’s sources:
echo "deb [signed-by=/usr/share/keyrings/microsoft-edge.gpg] https://packages.microsoft.com/repos/edge stable main" | sudo tee /etc/apt/sources.list.d/microsoft-edge.list
Refresh the package list and install the stable release:
sudo apt update
sudo apt install microsoft-edge-stable
APT may ask you to confirm the installation and show how much disk space it will use. Read the summary, then enter Y if you want to proceed. The exact download size and package version change over time, so a fixed size or version number should not be expected.
Verify the installation and open Edge
After installation, you can check that APT recognizes the package by running apt policy microsoft-edge-stable. The output should show an installed version and package-source details. You can also check the browser version with microsoft-edge --version.
To launch the browser, use the Ubuntu application grid and search for “Edge,” or run microsoft-edge in a terminal. The command starts the graphical browser; it does not require sudo. On first launch, Edge may offer to import bookmarks, set preferences, or sign in to a Microsoft account. These steps are optional: you can use the browser without signing in, although account-dependent sync features will not be available.
Alternative: install a downloaded .deb package
If you prefer not to add a persistent repository, you can download the Linux .deb package from Microsoft’s official Edge download page and install that local file. For an AMD64 system, Microsoft’s package service has commonly provided a stable package at the address shown below; if that address is unavailable, use the current download link on Microsoft’s site rather than a third-party mirror.
wget -O microsoft-edge.deb https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/microsoft-edge-stable_current_amd64.deb
sudo apt install ./microsoft-edge.deb
The ./ before the filename tells APT to install a package from the current directory. Using apt install for a local package is preferable to manually unpacking the file because APT can resolve required dependencies. This one-time approach does not add Microsoft’s repository, so it may not provide the same straightforward ongoing Edge updates; download and install later releases yourself, or use the repository method instead. The example URL is specifically for AMD64 and should not be used blindly on another architecture.
Updates and uninstalling Edge
When Edge was installed through Microsoft’s APT repository, it is managed alongside other APT packages. After refreshing package information, install available upgrades with sudo apt upgrade. Ubuntu’s graphical Software Updater may also offer updates from configured sources. If a new Edge release is not listed, check the network connection and repository configuration before assuming the browser itself is broken.
To remove the browser but keep its per-user settings and profile files, run:
sudo apt remove microsoft-edge-stable
To remove the package and its system-level configuration files as well, use sudo apt purge microsoft-edge-stable. A browser profile stored in your home directory may remain after either command; removing the application package does not automatically mean every personal browser file is erased. If you also want to stop receiving packages from Microsoft’s Edge repository, remove its source-list file with sudo rm /etc/apt/sources.list.d/microsoft-edge.list, then run sudo apt update. Only remove that file if you no longer want APT to use the Edge repository.
Common installation problems
- “Unable to locate package.” The repository may not have been added correctly, or APT may not have refreshed its package list afterward. Check that
/etc/apt/sources.list.d/microsoft-edge.listcontains the Microsoft Edge source, then runsudo apt updateand try the installation again. - A repository signature or key error appears. Check that the keyring file exists at
/usr/share/keyrings/microsoft-edge.gpgand that the source line points to that exact path. Re-run the key-download command if the file is missing or empty. Do not work around signature errors by disabling APT’s security checks. - The package is not available for the device. Confirm the architecture with
dpkg --print-architecture. A package intended for AMD64 will not install on every ARM device. Consult Microsoft’s current Linux download options for a package compatible with your system. - The download or update fails. Check that Ubuntu can reach the internet and that a proxy, firewall, or captive Wi-Fi login is not blocking
packages.microsoft.com. Runsudo apt updateto see whether the problem is limited to Microsoft’s source or affects other repositories too. - Edge opens and then closes. Try launching it from a terminal to see whether an error message appears, and check for pending Ubuntu updates. Do not try to fix a launch problem by running the browser with
sudo; graphical browsers should run as your ordinary user.
Security, privacy, and choosing a browser
Use Microsoft’s official package source or download page, and leave APT’s normal signature verification enabled. A random package site, unofficial PPA, or copied shell script can introduce software you did not intend to install. The commands above add a repository entry and a keyring; as with any command using sudo, read commands before running them and make sure you understand which source is being added.
Installing Edge does not require you to sign into Microsoft, but the browser includes Microsoft services and settings that you can review after launch. If privacy is important to you, inspect its privacy, tracking-prevention, and diagnostic-data settings rather than assuming that a browser’s default configuration matches your preferences. Also keep the browser updated: web browsers process content from many websites, so security fixes matter.
Edge is a reasonable choice if you want Microsoft account sync, use Microsoft web services, or need to test a site in another Chromium-based browser. Firefox is already available as a familiar Ubuntu option, while Chrome is another Chromium-based alternative distributed by Google. Browser choice can depend on extensions, workplace policies, accessibility, privacy preferences, and how well each browser works with your account and workflow. Installing Edge does not require removing Firefox or changing Ubuntu’s default browser; you can keep multiple browsers and choose which one opens links in Ubuntu’s default-app settings.
Frequently Asked Questions
Can I install Edge on Ubuntu with one command?
Not reliably on a fresh system if Microsoft’s repository has not been added yet. The repository setup requires installing the signing key and adding a source before sudo apt install microsoft-edge-stable can find the package.
Is Microsoft Edge free on Ubuntu?
Microsoft distributes the Edge browser for Linux without a purchase price. Internet access is needed to download it and receive updates; some Microsoft services or account features have their own terms and requirements.
Will Edge update automatically on Ubuntu?
Adding Microsoft’s repository makes Edge updates available through APT. Whether they are installed automatically depends on your Ubuntu update settings; you can also check and apply updates with the usual APT commands.
Can I install Edge without adding Microsoft’s repository?
Yes. Download an appropriate Linux .deb package from Microsoft and install it with sudo apt install ./filename.deb. You will need to manage subsequent package downloads yourself unless you add the repository.
Does installing Edge remove Firefox?
No. Edge installs as a separate application and can coexist with Firefox and other browsers. Change Ubuntu’s default browser only if you want links to open in Edge by default.