How to Install Opera Browser on Ubuntu [Easy Way]

Learn how to install Opera browser easily and safely on Ubuntu and Debian based distributions.
Warp Terminal

Opera browser was among the first few browsers to have a speed dial feature for quickly accessing the most visited websites from the new tab.

Opera still offers several interesting features such as a free VPN, ad-blocker, social media messengers in the sidebar, battery saver, grouping tabs in workspaces etc.

Personally, I do not use Opera. It is not open source. Its so-called free-VPN is not that good (it’s hardly even a VPN). After its acquisition by a Chinese group, transparency took another hit. It collects a vast amount of data, the same as Alibaba’s UC Browser.

Anyway, I am not here to make a case against Opera. If you want to install and use Opera on Ubuntu, let me show you how to do that easily and safely.

Non-FOSS warning! Opera browser is not open source. It is covered here because it is available on Linux and the article focuses on Linux.

Installing Opera browser on Ubuntu

Installing Opera Browser in Ubuntu and Debian-based distributions is as simple as installing the DEB file from its download page and double-clicking on it.

Go to Opera’s download page and click on the Download button to download the .DEB installer file.

Opera Browser Download
Download Opera Browser

Once you have downloaded it, double-click on it to install the application from deb file. In Ubuntu 20.04, you may have to right click and select “Open With Software” option.

It will open Opera in Software Center and you can just lick on the install button to install Opera.

Install Opera Ubuntu

The good thing about this method is that it automatically adds an entry in the repository list. This way, you’ll get all the future updates to the Opera browser with the regular system updates.

Opera Source Added
Opera source added to repository list to provide you regular updates

This is same as installing Google Chrome on Ubuntu as an entry is adding for Chrome to provide you regular updates.

See, how easy it was to install Opera?

How to remove Opera browser

You can look for the installed applications in the software center and uninstall Opera from there.

Remove Opera Browser Ubuntu
Remove Opera from the Software Center

You may also use terminal to remove it in this fashion:

sudo apt remove opera-stable

You may also choose to remove the additional Opera repository added in the sources list.

Remove Opera Repository
Remove Opera Repository

Installing Opera browser via command line (for intermediate to expert users)

Installing the Opera browser graphically, as described above, is simplest and easiest method. If you want to take the command line route, you can do that as well.

First, make sure to install Curl on Ubuntu:

sudo apt install curl

Download and add the Opera repository key:

curl https://deb.opera.com/archive.key | sudo apt-key add -

Now add the Opera repository in your sources list directory (not file):

echo deb https://deb.opera.com/opera-stable/ stable non-free | sudo tee /etc/apt/sources.list.d/opera.list

Update the package cache so that your system is aware of the packages available by the newly added repository:

sudo apt update

Finally, install the opera-stable package to install Opera.

sudo apt install opera-stable

During the installation, you’ll be prompted for adding Opera repository to sources list. Select NO because you already did that.

To remove Opera browser installed this way, you should use the following commands one by one:

sudo apt remove opera-stable
sudo rm -f /etc/apt/sources.list.d/opera.list

Conclusion

Opera browser is also available as a snap package officially. If you have Snap support enabled in your Linux distribution, you may install Opera via Snap:

sudo snap install opera

One of It’s FOSS readers contacted me with a repository issue that was caused by the incorrect Opera browser installation.

I had to write this straightforward tutorial because some other websites on the internet are suggesting methods with unnecessarily complicated commands that might end up with a corrupt sources.list. I do hope it helps new Linux users.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.