If you’ve ever used Opera in Linux, then you most likely installed it by manually downloading the install file.
Now I’m going to show you how to add the Opera repository so that it automatically updates when you check for normal updates in Linux.
There are some directions listed at deb.opera.com, but they don’t make it very clear in my opinion for Ubuntu.
-
Open: System -> Administration -> Software Sources -> Third-Party Software

-
Click Add, copy and paste the following
deb http://deb.opera.com/opera/ sid non-freeThis can be confusing if you’re using Ubuntu, however, I’m using Ubuntu Jaunty and the above source worked great for me.
*If you want to use the latest stable version of Opera, then the above line will be just fine. However, if you prefer to use Betas or Snapshots then you can replace the “/opera/” with “/opera-beta/” and “/opera-snapshot/” respectively.
*If you’re using Debian or maybe even an older version of Ubuntu then you may need to use a different release name than “sid” in the source above, so you can use any of the following: potato, woody, sarge, etch, lenny, sid
-
After adding the correct repository, you will need to add the repository key. You can do that by running the following line in a terminal window:
Debian users:
wget -O – http://deb.opera.com/archive.key | apt-key add -Ubuntu users:
sudo wget -O – http://deb.opera.com/archive.key | sudo apt-key add - -
Now, if you have any version(s) of Opera already installed, you will likely need to remove it:
sudo apt-get remove opera -
Now you need to update apt before Opera will be available via the newly added repository:
sudo apt-get update -
All that is left is to install Opera again:
sudo apt-get install opera
You may be wondering why you need to remove Opera only to install it again. This is because, the first time that it was installed, it was installed as a “local or obsolete” package and is not “maintained” by any package manager or update application. After you update apt and install Opera, it is maintained with the rest of the applications that you install and update directly through a package manager.
Related posts:
- Installing Pidgin in Linux from Source As many Linux users know by now, Gaim has been...
- Opera 10: Remove ‘Click to activate’ on flash in Linux! I’ve been working with d.i.z. as he’s found a way...
- Identify Opera With Your Linux Distro! If you’ve ever noticed your user agent string before, then...
- How-To: Ubuntu Font Private Beta Testing With so many people talking about the new Ubuntu Font...
- My own Ubuntu Personal Package Archive I setup my own personal package archive today on LaunchPad....

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04 (jaunty) Shiretoko/3.5
I’m using ubunt 9.04. Which Debian version should I use? Or I should back up and ask, can a ubuntu 9.04 use one of the deb repos?
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04 (jaunty) Shiretoko/3.5
re: Step 3.
I did ~$ sudo wget -O – http://deb.opera.com/archive.key | sudo apt-key add -
but I see this:
–2009-07-02 00:40:07– http://deb.opera.com/archive.key
Resolving deb.opera.com… 195.189.143.183
Connecting to deb.opera.com|195.189.143.183|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1742 (1.7K) [application/pgp-keys]
Saving to: `–’
100%[======================================>] 1,742 –.-K/s in 0s
2009-07-02 00:40:07 (4.42 MB/s) – `–’ saved [1742/1742]
gpg: no valid OpenPGP data found.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090622 Ubuntu/9.04 (jaunty) Shiretoko/3.5
I did:
sudo wget -O – http://deb.opera.com/archive.key | sudo apt-key add -
and it seems to work fine now.
Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.00
@ubuntu904
Use “sid”. All recent Ubuntu versions will use “sid”.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1) Gecko/20090630 Ubuntu/8.10 (intrepid) Shiretoko/3.5
Watch out for non-ASCII characters in the CLI commands above. That emdash should actually be a hyphen. It got changed to an emdash by software too smart for its own good. Also the first sudo is unnecessary and makes it necessary to type in the password twice, and this may not work.
Next time better blog your commands into a literal text box.
wget -O – http://deb.opera.com/archive.key | sudo apt-key add -