How to Install Opera Browser on Ubuntu 37/36/35

Opera is a free, cross-platform web browser developed by Opera Software based on the Chromium open-source project, which is becoming a more popular option for users seeking an alternative to the default installed browser that is bundled with Ubuntu. Opera is a fast, secure web browser with a sleek design with some highlight features, including tabbed browsing, popup blocking, integrated search, and support for extensions and themes.

In the following tutorial, you will learn how to install Opera Browser on Ubuntu 22.10, 22.04, and 20.04 using cli commands with the command line terminal by importing the Opera APT repository and installing one or all of the stable, beta, or development (nightly) versions on your desktop.

Important Notice

The following tutorial was done with a Ubuntu 22.04 LTS release, and example images were taken. Still, it was tested on Ubuntu 20.04 and Ubuntu 22.10. In the future, if Ubuntu makes any changes to break the tutorial for one of the distribution versions, please place a comment for me to investigate so I can update the tutorial.

Please note that Opera Browser can only be installed on AMD64 architecture, so if you import the repository and cannot install it, such as on a Raspberry PI, the installation commands will not work.

Recommended Steps Before Installation

Before you begin with the tutorial, it is recommended to start with an upgrade and, if necessary, reboot to make sure all your system packages are up-to-date to avoid any issues.

Before proceeding with the tutorial, ensuring your system is up-to-date with all existing packages is good.

sudo apt update

Optionally, you can list the updates for users who require review or are curious.

sudo apt --list upgradable

Proceed to upgrade any outdated packages using the following command.

sudo apt upgrade

Import Opera Repository on Ubuntu Linux

For Ubuntu users, the installation is straightforward, importing the GPG key and repository straight from Opera.

The option for importing the APT repository rather than manually installing the .deb file from their website is that you can install alternative versions, such as Beta or Developer, alongside your stable browser.

Install Required Packages

Next, run the following command to ensure the following dependencies are installed.

sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl -y

These are the most common software packages found on nearly all Linux distributions.

Import GPG Key

curl -fsSL | gpg --dearmor | sudo tee /usr/share/keyrings/opera.gpg > /dev/null

Import Opera Repository

echo deb [arch=amd64 signed-by=/usr/share/keyrings/opera.gpg] stable non-free | sudo tee /etc/apt/sources.list.d/opera.list

Install Opera Browser on Ubuntu Linux

Install Opera Browser Stable

After importing the repository, Opera can be installed using the following.

First, update your repository list to reflect the new repository changes:

sudo apt update

Now install the software with the following command:

sudo apt install opera-stable -y

Note you will see when installing Opera Browser to configure to allow for more recent version upgrades by adding its repository file into the “/etc/apt/sources.list.d/” directory. Do not select yes, as you have already imported the repository list. The method that Opera uses is also the absolute method for matching the GPG key to the repository.


select no to sources.list being added for Opera Browser on Ubuntu 22.10, 22.04, 20.04 Linux

Select <Ok> to proceed to the next screen, and you will get an option to select <Yes> or <No>.

Select “NO,” then press the “ENTER KEY” to finish the installation.

Please note that you will be prompted to do this for each version stable, beta, and developer, so select <Yes> every time.

Once installed, confirm the version of Opera Browser installed. This will also verify the installation was successful.

opera --version

Example output (This will change):


Install Opera Browser Beta:

sudo apt install opera-beta -y

Verify Opera Browser Beta:

opera-beta --version

Example output (This will vary):


Note that the beta version is currently behind stable, so please be careful using it, thinking the beta is ahead of stable automatically. You could have an older client depending on Opera’s release cycle.

For those that want a bleeding edge, install the developer version.

Install Opera Browser Developer:

sudo apt install opera-developer -y

Verify Opera Browser Developer:

opera-developer --version

Example output (This will vary):


Launch Opera Browser on Ubuntu Linux

With the installation complete, you can run Opera in a few different ways.

First, while you are in your terminal, you can use the following command:


However, this isn’t practical, and you would use the following path on your desktop.

Applications > Search > Opera {version}.


Launch Opera Browser from application menu on Ubuntu 22.10, 22.04, 20.04 Linux

Now open Opera Browser, and you will see the landing page where you can begin to use the browser. You can always go back and configure the browser settings for those who just skipped through the first-time set-up, such as changing the theme from light to dark.


Opera Browser on Ubuntu 22.10, 22.04, 20.04 Linux

Congratulations, you have installed Opera Browser on your Ubuntu desktop.

Update Opera Browser on Ubuntu Linux

Most desktop users rely on automatic updates or auto-update notifications, which can be ok. Still, given that you are learning to install the browser using a terminal, you should update by running the APT update command in your terminal, as you would check your entire system for any updates.

sudo apt update

If one is available, use the upgrade option:

sudo apt upgrade

Alternatively, you can upgrade the Opera Browser package if an update is available.

Example for stable:

sudo apt upgrade opera-stable

Add “-beta” or “-developer” at the end if you installed other Browser versions.

Remove Opera Browser on Ubuntu Linux

To remove Opera Browser, execute the following terminal command:

Remove Opera Browser Stable

sudo apt autoremove opera-stable --purge

Remove Opera Browser Beta

sudo apt autoremove opera-beta --purge

Remove Opera Browser Nightly

sudo apt autoremove opera-developer --purge

Note unused dependencies will also be removed.

Use the following command to delete the Opera Repository for users who will no longer install or want to install Opera Browser on their system.

sudo rm /etc/apt/sources.list.d/opera.list

Finally, delete the GPG key; this is optional.

sudo rm /usr/share/keyrings/opera.gpg

Troubleshooting Multiple Sources.list

Users that initially selected “YES” instead of “NO” when installing the browser and imported additional sources.list file for the Opera browser, you will find when running an update command, your terminal will fill up with duplicate sources; while this does not break the update process, it is not ideal to have either in the long term.

The fix is pretty simple, remove the extras and keep the original one; if you accidentally delete them, copy the import directory code in this tutorial.

Example of a quick fix.

sudo rm /etc/apt/sources.list.d/opera*

Then re-add the one repository.

echo deb [arch=amd64 signed-by=/usr/share/keyrings/opera.gpg] stable non-free | sudo tee /etc/apt/sources.list.d/opera.list

The above command will simultaneously install all three browser versions, stable, beta, and developer, as you may have done at the start of the tutorial.

Remember to run an APT update.

sudo apt update

This should fix the issue in the future, and you will still receive updates for all three browsers from one source.list instead of three.

How to Solve Opera Changing Language Issue

For many users that prefer using non-English as they cannot speak it or do not prefer it over their primary language, Opera does not play nicely with language switching after receiving a few e-mails personally to my inbox.

You need to set the language in the browser and include the launch command in the application file, which will need to be modified. Some users depending on the language may even need to install the language pack if using the English version, which will be covered below.

Please note I recommend still selecting the language in the browser or modifying the launch file will likely not work with the language changing to what you want.

Example with the English language last:

select languages in preference on ubuntu linux and opera browser

First, in your terminal, use the following command example.

sudo sed -i 's/Exec=opera %U/Exec=opera --lang={LANGUAGE CODE} %U/g' /usr/share/applications/opera.desktop

The above example modified the file in the location “/usr/share/applications/opera.desktop” and added the “–lang={LANGUAGE CODE},” which you would with de for German, es for Spanish, JA for Japanese, and so on.

Please be aware that the example modifies Opera stable; if you install the beta and developer versions, they will also need adjusting. This is an easy solution, change in the example command that used Opera stable, which had the original path of “/usr/share/applications/opera.desktop” to “/usr/share/applications/opera-beta.desktop” for beta and “/usr/share/applications/opera-developer.desktop” for developer nightly installs.

Here is an example of once the command was used in German.


german language change on opera browser on ubuntu linux

Another in Japanese.


japanese language change on opera browser on ubuntu linux

Please note, compared to some other Linux distributions, such as Fedora, I had to reboot my computer when swapping the Opera language. If it is not appearing, ensure that you do a quick restart.

For users that may have installed an English version and having extra trouble switching the language codes, you may require the language packs on your system to support this; you will need to install the language pack of your choice using the following command.

sudo apt install $(check-language-support -l {language extension})

Example in German:

sudo apt install $(check-language-support -l de)

Next, I have made some of the most popular commands for easy copy and paste; this should be straightforward for most users. Remember, these are just for Opera stable; you need to modify the code as explained earlier for beta or developer, and you still need the language added on the browser GUI side.


sudo sed -i 's/Exec=opera %U/Exec=opera --lang=de %U/g' /usr/share/applications/opera.desktop


sudo sed -i 's/Exec=opera %U/Exec=opera --lang=fr %U/g' /usr/share/applications/opera.desktop


sudo sed -i 's/Exec=opera %U/Exec=opera --lang=it %U/g' /usr/share/applications/opera.desktop


sudo sed -i 's/Exec=opera %U/Exec=opera --lang=ja %U/g' /usr/share/applications/opera.desktop


sudo sed -i 's/Exec=opera %U/Exec=opera --lang=ko %U/g' /usr/share/applications/opera.desktop


sudo sed -i 's/Exec=opera %U/Exec=opera --lang=es %U/g' /usr/share/applications/opera.desktop


sudo sed -i 's/Exec=opera %U/Exec=opera --lang=pt %U/g' /usr/share/applications/opera.desktop


sudo sed -i 's/Exec=opera %U/Exec=opera --lang=pl %U/g' /usr/share/applications/opera.desktop

Not what you were looking for? Try searching for additional tutorials.

Leave a Comment