Installing Microsoft Edge on Ubuntu can enhance your browsing experience with a Chromium-based browser optimized for Microsoft services. However, some users encounter installation errors due to repository issues, missing dependencies, or incorrect commands. This guide walks you through fixing common Microsoft Edge installation errors on Ubuntu, ensuring a smooth setup process.
What You’ll Need
- An Ubuntu system (18.04 or later recommended) with internet access
- Basic familiarity with terminal commands
- Sudo privileges to install software
Step-by-Step
- Update Your System Packages
Open a terminal and runsudo apt update && sudo apt upgrade -yto ensure your system packages are current. This can fix issues related to outdated dependencies. - Remove Any Partial or Corrupted Edge Installations
Runsudo apt remove microsoft-edge-stableto remove any existing Edge packages that may be partially installed or corrupted. - Install Required Dependencies
Microsoft Edge depends on certain libraries. Run:sudo apt install software-properties-common apt-transport-https wget
to make sure all necessary tools for repository management are present. - Download and Add Microsoft’s GPG Key
Run:wget -q -O - https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft.gpg
This authenticates packages from Microsoft. - Add the Microsoft Edge Repository
Create a repository file with:echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/edge stable main" | sudo tee /etc/apt/sources.list.d/microsoft-edge.list - Update Package Lists
Runsudo apt updateagain to refresh package lists and include the Microsoft Edge repo. - Install Microsoft Edge Stable
Runsudo apt install microsoft-edge-stableto install the browser. - Verify Installation
Launch Edge via terminal by typingmicrosoft-edgeor find it in your applications menu to confirm it opens correctly.
Common Mistakes
- Skipping System Updates: Not updating the package list can cause dependency errors.
- Incorrect Repository URL or GPG Key: Copy-pasting errors in the repository or key commands often lead to authentication failures.
- Using 32-bit Ubuntu: Microsoft Edge is only available for 64-bit systems, so installation will fail on 32-bit.
- Ignoring Sudo Privileges: Many commands require
sudo; running them without it results in permission denied errors. - Not Removing Previous Edge Versions: Partial or corrupted installs can prevent new installations from proceeding.
Tips
- Check Your Ubuntu Version: Edge supports Ubuntu 18.04 LTS and newer. Use
lsb_release -ato confirm. - Use the Official Microsoft Repository: Avoid downloading Edge from third-party sources to reduce security risks.
- Keep Your System Clean: Regularly run
sudo apt autoremoveto clear obsolete packages that may interfere. - Try Installing the Beta or Dev Channel: If stable fails, you can try
microsoft-edge-betaormicrosoft-edge-devfor newer builds. - Run Edge from Terminal for Logs: Launching Edge via
microsoft-edgein terminal can reveal error messages helpful for troubleshooting.
Troubleshooting
If the installation still fails after following the steps, try these troubleshooting methods:
- Check for Missing Dependencies:
Runsudo apt --fix-broken installto repair broken dependencies. - Verify Network Connectivity:
Make sure your system can reachpackages.microsoft.com. Useping packages.microsoft.comor test in a browser. - Examine Repository File Permissions:
Ensure the repository list file/etc/apt/sources.list.d/microsoft-edge.listis readable by runningsudo cat /etc/apt/sources.list.d/microsoft-edge.list. - Clear Apt Cache:
Sometimes cached files cause issues. Runsudo apt cleanand thensudo apt update. - Manually Download and Install the .deb Package:
Visit Microsoft Edge official site and download the Linux .deb installer. Then install it withsudo dpkg -i microsoft-edge-stable*.deband fix dependencies withsudo apt -f install. - Check System Architecture:
Rununame -m. If it returnsi386ori686, Edge won’t install. Upgrade to 64-bit Ubuntu. - Review Logs:
Check/var/log/apt/term.logor run the install command withsudo apt install microsoft-edge-stable -y | tee edge-install.logto capture errors for analysis.
Frequently Asked Questions
Can I install Microsoft Edge on Ubuntu 32-bit?
No, Microsoft Edge is only available for 64-bit Linux systems. Attempting installation on 32-bit Ubuntu will fail.
Why does the GPG key fail to add?
This usually happens due to network issues, incorrect command syntax, or missing packages like gnupg. Ensure you have internet access and the command is copied exactly.
How do I update Microsoft Edge once installed?
Edge updates through your system’s package manager. Run sudo apt update && sudo apt upgrade regularly to get the latest version.
Can I use Microsoft Edge without installing it?
Yes, you can use the portable or web versions, but installing Edge integrates it fully with your system for better performance and features.
What if Edge crashes on launch after installation?
Try launching from the terminal to view error messages (microsoft-edge). Check for missing dependencies or conflicting extensions. Reinstalling may help.
Is it safe to add Microsoft’s repository to Ubuntu?
Yes, the official Microsoft repository is secure and trusted, provided you add it using the official GPG key and URLs.
Following this guide should resolve most Microsoft Edge installation errors on Ubuntu. If problems persist, consider checking Ubuntu or Microsoft forums for specific error codes or contacting support.
Related
- How to Install Microsoft Edge on Ubuntu Without Snap
- How to Buy Salmon Without Bones: A Practical Step-by-Step Guide
- How to Store Aldi Salmon Properly for Freshness and Safety