How can I install the Opera browser from the terminal?

46,480

To install opera via PPA on Ubuntu, run these commands

Setup key with:

wget -O - http://deb.opera.com/archive.key | sudo apt-key add -

Setup repository with:

sudo sh -c 'echo "deb http://deb.opera.com/opera-stable/ stable non-free" >> /etc/apt/sources.list.d/opera.list' 

Setup package with:

sudo apt-get update 
sudo apt-get install opera

Source

Alternatively, you can install the .deb via a terminal with

sudo dpkg -i path/to/your/deb

It already contains the PPA, if anyone else reading this is still facing the .deb issue with gnome-software, please report it here, it is supposed to be fixed.

Share:
46,480

Related videos on Youtube

Elysium
Author by

Elysium

Updated on September 18, 2022

Comments

  • Elysium
    Elysium almost 2 years

    Since this .deb bug is causing a lot of issues, I must resort to install the Opera browser using the terminal. Which is just fine, but I also need to add it to the repository for automatic updates.

    Since I am no expert at all, I do not know how to perform the full installation of the browser. How do I go about it?

    Thanks!

    P.S. Please do not mark this as duplicate, because the other posts dont details how to go about installing Opera with adding it to the repository too for updates. Cheers.

    • muru
      muru about 8 years
      Does Opera have a repository? Didn't Opera stop supporting Linux a while ago?
    • Elysium
      Elysium about 8 years
      @muru you can download the 64-bit deb version of the browser from the website. So, I guess it is still going on. However....with this 3rd party .deb issue, I need to install it alternatively.
    • Mark Kirby
      Mark Kirby about 8 years
      The .deb issue is fixed, please sudo apt-get dist-upgrade askubuntu.com/questions/760638/…
    • muru
      muru about 8 years
      deb.opera.com says that the deb package automatically configures the repository (the way Google Chrome does, I guess). Did you try before asking?
    • GreenRoot
      GreenRoot about 8 years
      It's a repetitive question you can see the answer here : askubuntu.com/questions/169020/…
    • Mark Kirby
      Mark Kirby about 8 years
      @GreenRoot is correct, the second answer there is the one I gave here, Duplicate askubuntu.com/questions/169020/…
  • Elysium
    Elysium about 8 years
    Thanks a lot. If you dont mind me asking: what does the setup key?
  • Mark Kirby
    Mark Kirby about 8 years
  • Elysium
    Elysium about 8 years
    Perfect. It makes perfect sense now. Thanks a lot. By the way, the version you get from the manual installation is old. It wont update online. Asks me to download the deb which cant be installed due to the installation bug. So, this wont solve my problem.
  • Mark Kirby
    Mark Kirby about 8 years
    The bug is gone, see my comment below your question, you could also install the deb via terminal sudo dpkg -i yourdebhere.
  • Elysium
    Elysium about 8 years
    The bug is still there. I cant install from .deb. My installation is fully updated and it still persists.Will installing from the deb using sudo dpkg -i also add it to the repository for future updates?
  • Mark Kirby
    Mark Kirby about 8 years
    You should report that here bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/157320‌​6 other users confirm it is fixed, the bug only effects the package gnome-software any other package manger apt, dpkg, synaptic, gdebi etc will work fine.
  • Mark Kirby
    Mark Kirby about 8 years
    Based on the earlier comment by muru, the deb contains the PPA already, like chrome, so yes.
  • Elysium
    Elysium about 8 years
    Installed the .deb from the terminal. That solved it.