Software & AppsOperating SystemLinux

How To Fix Chromium Installation Error in Lubuntu 20.04

Ubuntu 10

In this article, we will guide you through the process of resolving a common issue that users face while installing Chromium on Lubuntu 20.04 – the installation process getting stuck at “Waiting for restart.” This issue can be due to a slow or interrupted connection to the snap store or conflicts with existing snap installations. Let’s explore some possible solutions.

Quick Answer

To fix the Chromium installation error in Lubuntu 20.04, you can try manually restarting the snapd service, be patient and wait for the installation to complete, clear any remnants of the failed installation, reset the Snap state using a provided script, or consider alternative installation methods such as using the apt package manager.

1. Manual Restart

In some instances, the automatic restart of snapd, the service that runs and manages snaps, may not occur as expected. This can cause the installation process to hang. To manually restart snapd, you can use the following command:

sudo service snapd restart

In this command, sudo allows you to execute the command with root privileges, service is a utility to start, stop, and manage services, snapd is the name of the service you want to manage, and restart is the action you want to perform on the service.

Executing this command has been reported to resolve the installation issue for some users.

2. Patience

While it might seem trivial, it’s worth noting that the installation process can take some time to complete, especially if you have a slow internet connection. Some users have reported waiting for around 4-5 minutes before the snapd restart completed automatically. So, it is recommended to be patient and wait for the installation to finish before attempting other solutions.

3. Clearing Snap Remnants

If the installation remains stuck, you can try removing any remnants of the failed installation before attempting to reinstall. To do this, use the following command:

sudo snap remove chromium-browser

In this command, sudo gives you root privileges, snap is the package management utility, remove is the action you want to perform, and chromium-browser is the name of the snap you want to remove.

This step can help resolve conflicts and allow for a clean installation.

4. Reset Snap State

If reinstalling still fails, you can try resetting the Snap state. This involves using a script provided by the Snapcraft community. This script helps clear away any problematic Snap configurations that might be causing the issue. You can find the script here. Execute the commands mentioned in the script to reset the Snap state.

Alternative Installation Methods

If you continue to experience problems with snaps, you may consider alternative installation methods. For instance, you can use the apt package manager to install Chromium instead. This can be done using the following command:

sudo apt install chromium-browser

In this command, sudo gives you root privileges, apt is the package management utility, install is the action you want to perform, and chromium-browser is the name of the package you want to install.

Conclusion

In this article, we’ve covered several solutions to the Chromium installation error in Lubuntu 20.04. By following these steps, you should be able to successfully install Chromium on your system. If you continue to face issues, consider seeking help from the Snapcraft community.

How long should I wait for the installation process to complete?

The installation process can take some time to complete, especially if you have a slow internet connection. It is recommended to wait for around 4-5 minutes before the snapd restart completes automatically. Be patient and allow the installation to finish before trying other solutions.

How do I manually restart snapd?

To manually restart snapd, you can use the following command:

sudo service snapd restart

Executing this command with root privileges will restart the snapd service, which can help resolve the installation issue for some users.

How can I remove remnants of a failed Chromium installation?

If the installation remains stuck, you can try removing any remnants of the failed installation before attempting to reinstall. To do this, use the following command:

sudo snap remove chromium-browser

Executing this command with root privileges will remove the Chromium snap, clearing any conflicts and allowing for a clean installation.

What should I do if reinstalling still fails?

If reinstalling Chromium using snaps still fails, you can try resetting the Snap state. The Snapcraft community provides a script that helps clear away problematic Snap configurations. You can find the script here. Execute the commands mentioned in the script to reset the Snap state and then attempt the installation again.

Are there alternative installation methods for Chromium?

Yes, if you continue to experience problems with snaps, you can use the apt package manager to install Chromium instead. Use the following command:

sudo apt install chromium-browser

Executing this command with root privileges will install Chromium using apt, which is an alternative method to snaps.

Leave a Comment

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