Ubuntu – Unable to install Opera browser on Ubuntu 17.04

17.04operasoftware installation

I tried to install opera by downloading the .deb file from opera website. Running sudo dpkg -i opera-stable_44.0.2510.1218_amd64 gave the following results:

[sudo] password for user1: 
(Reading database ... 187300 files and directories currently installed.)
Preparing to unpack opera-stable_44.0.2510.1218_amd64.deb ...
Unpacking opera-stable (44.0.2510.1218) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive opera-stable_44.0.2510.1218_amd64.deb (--install):
 cannot copy extracted data for './usr/lib/x86_64-linux-gnu/opera/opera' to '/usr/lib/x86_64-linux-gnu/opera/opera.dpkg-new': unexpected end of file or stream
Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu5) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for shared-mime-info (1.8-1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Errors were encountered while processing:
 opera-stable_44.0.2510.1218_amd64.deb"

Opera is currently not available in Ubuntu software store or in Software Boutique. I also tried older opera-stable_44.0.2510.857_amd64.deb and got similar results. I downloaded the package twice thinking it might be any download error but same result.

Best Answer

Try this:

Open a terminal,

Press Ctrl+Alt+T

Run it:

exec sudo -i
nano /etc/apt/sources.list.d/opera-stable.list

In the file that opens, paste this text:

# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades

deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)

Ctrl+O

Save file.

Ctrl+X

Close nano.

Continue running in the terminal:

wget -O - http://deb.opera.com/archive.key | apt-key add -
apt-get update
apt-get install opera-stable
Related Question