GekBuzz

Answers, Explainers & Everyday Guides

Fix Microsoft Edge Installation Errors on Ubuntu Easily

Fix Microsoft Edge Installation Errors on Ubuntu Easily

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

  1. Update Your System Packages
    Open a terminal and run sudo apt update && sudo apt upgrade -y to ensure your system packages are current. This can fix issues related to outdated dependencies.
  2. Remove Any Partial or Corrupted Edge Installations
    Run sudo apt remove microsoft-edge-stable to remove any existing Edge packages that may be partially installed or corrupted.
  3. 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.
  4. 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.
  5. 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
  6. Update Package Lists
    Run sudo apt update again to refresh package lists and include the Microsoft Edge repo.
  7. Install Microsoft Edge Stable
    Run sudo apt install microsoft-edge-stable to install the browser.
  8. Verify Installation
    Launch Edge via terminal by typing microsoft-edge or 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 -a to 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 autoremove to clear obsolete packages that may interfere.
  • Try Installing the Beta or Dev Channel: If stable fails, you can try microsoft-edge-beta or microsoft-edge-dev for newer builds.
  • Run Edge from Terminal for Logs: Launching Edge via microsoft-edge in 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:
    Run sudo apt --fix-broken install to repair broken dependencies.
  • Verify Network Connectivity:
    Make sure your system can reach packages.microsoft.com. Use ping packages.microsoft.com or test in a browser.
  • Examine Repository File Permissions:
    Ensure the repository list file /etc/apt/sources.list.d/microsoft-edge.list is readable by running sudo cat /etc/apt/sources.list.d/microsoft-edge.list.
  • Clear Apt Cache:
    Sometimes cached files cause issues. Run sudo apt clean and then sudo apt update.
  • Manually Download and Install the .deb Package:
    Visit Microsoft Edge official site and download the Linux .deb installer. Then install it with sudo dpkg -i microsoft-edge-stable*.deb and fix dependencies with sudo apt -f install.
  • Check System Architecture:
    Run uname -m. If it returns i386 or i686, Edge won’t install. Upgrade to 64-bit Ubuntu.
  • Review Logs:
    Check /var/log/apt/term.log or run the install command with sudo apt install microsoft-edge-stable -y | tee edge-install.log to 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

Fix Microsoft Edge Installation Errors on Ubuntu Easily

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top