The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

can`t install opera in ubuntu 11.10

Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

16. October 2011, 00:27:53

maxboy01

Posts: 51

can`t install opera in ubuntu 11.10

after a fresh install of Ubuntu 11.10 , i can not setup opera 11.51 anymore , it gives me a message says cant open the .deb file, it may be corrupt , i downloaded it 2 times from opera website with no use, then i searched about it in the software center and i couldn`t find it ,confused

i am totally pissed off bomb , please help me

16. October 2011, 00:46:57

GomJabbar

Posts: 733

Try the current version of Opera (1151) from here: ftp://ftp.opera.com/pub/opera/linux/

16. October 2011, 13:39:46

Fizyk

Python/PHP Programmer

Posts: 16

It doesn't work either

16. October 2011, 18:05:54

maxboy01

Posts: 51

Originally posted by GomJabbar:

Try the current version of Opera (1151) from here: ftp://ftp.opera.com/pub/opera/linux/



did not work too sad
opera is driving me insane headbang

16. October 2011, 18:14:40

Fizyk

Python/PHP Programmer

Posts: 16

there's a workaround... type in terminal:

sudo dpkg -i /path/to/opera.deb

But that doesn't solve the issue

16. October 2011, 18:34:23

Opera Software

ruario

Posts: 980

What exactly are you doing (list each step in turn) and where do you see the error message? Can you provide an screenshot of your screen when you see the error message?

16. October 2011, 18:41:53

Fizyk

Python/PHP Programmer

Posts: 16

Just double click opera's deb to open it in software center in the newest ubuntu (11.10 - Oneiric).

16. October 2011, 18:51:11

Opera Software

ruario

Posts: 980

Try this:

Open a terminal and issue the following to download into your /tmp directory.
wget -P /tmp http://ftp.opera.com/pub/opera/linux/1151/opera_11.51.1087_$(uname -m | sed 's,i[4-6]86,i386,').deb


Use the following to confirm the download was entirely successful. It should echo back the name of the package downloaded followed by ": OK". If it doesn't say OK, the file did not download correctly.
wget -qO- http://ftp.opera.com/pub/opera/info/md5sum.txt | grep opera_11.51.1087_$(uname -m | sed 's,i[4-6]86,i386,').deb | sed "s,\./.*/,/tmp/," | md5sum -c


Start installation with the following.
sudo dpkg -i /tmp/opera_11.51.1087_*.deb


If you see errors at any stage reply with the exact text

16. October 2011, 18:54:34

Fizyk

Python/PHP Programmer

Posts: 16

why to go to all these problems if you get opera's deb downloaded? wink

Well... I should have used 'code' markup two posts above I suppose wink

16. October 2011, 18:56:59

Opera Software

ruario

Posts: 980

Originally posted by Fizyk:

why to go to all these problems if you get opera's deb downloaded


Because there is no issue installing the Opera deb with the latest software center so I can only imagine you have an incomplete download.

16. October 2011, 19:03:24

Fizyk

Python/PHP Programmer

Posts: 16

download is complete, I installed same deb through dpkg.

But maybe there's only problem with 64bit?

16. October 2011, 19:07:11

Opera Software

ruario

Posts: 980

I cannot reproduce any such issue. If you can install with dpkg then it shows the issue is some problem with software center your end. If you want to confirm that the opera package is indeed valid and has no issues, run lintian against it.

16. October 2011, 19:31:31

Fizyk

Python/PHP Programmer

Posts: 16

I checked and after few tries I got this:
$ lintian -c --show-overrides opera_11.51.1087_amd64.deb 
O: opera: embedded-library usr/lib/opera/opera: sqlite
O: opera: copyright-should-refer-to-common-license-file-for-lgpl
O: opera: copyright-without-copyright-notice
O: opera: lzma-deb-archive
O: opera: maintainer-script-does-not-check-for-existence-of-updatemenus postinst:18
O: opera: maintainer-script-does-not-check-for-existence-of-updatemenus postrm:18


I also reported a bug on launchpad earlier:

https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/875767

16. October 2011, 19:46:11

Opera Software

ruario

Posts: 980

Originally posted by Fizyk:

I checked and after few tries I got this

That looks fine. Those are expected, hence overridden.

I just tried again now with an Ubuntu "Oneiric Ocelot" 11.10 LiveCD (since I don't run Ubuntu at home) and I was able to install without issue



It was exceptionally time consuming but then the Software Centre always is. wink

P.S. If you are comfortable using dpkg and/or apt on the command line I would stick with it personally.

16. October 2011, 19:55:59 (edited)

geomorillo

Banned user

I can confirm it wont install its says internal error, after a fresh install and update of ubuntu 11.10

16. October 2011, 20:07:05

Opera Software

ruario

Posts: 980

Perhaps some breakage to Software Centre after a recent update, preventing installation of locally sourced packages? Just a guess.

As I said before, If it can be installed with dpkg and lintian isn't complaining, then the deb is fine.

Try installing some other deb that isn't available within the Ubuntu repositories and see if that works.

16. October 2011, 20:11:07

Frenzie

Posts: 15571

Originally posted by ruario:

P.S. If you are comfortable using dpkg and/or apt on the command line I would stick with it personally.


Or Aptitude or Synaptic. Anything but the Software Center. p
The DnD Sanctuary — a safety net for My Opera's demise.

16. October 2011, 20:11:52

shinoge

Posts: 2

Hi I have the same problem. If I can install opera from deb I see Internal Error "The file /home/nuanda/Downloads/opera_11.51.1087_amd64.deb could not be opened. I have clean installation of Ubuntu 11.10 64bit.

16. October 2011, 20:40:58

Opera Software

ruario

Posts: 980

@shinoge: Try Fizyk's suggestion. Open a terminal and issue:

sudo dpkg -i /home/nuanda/Downloads/opera_11.51.1087_amd64.deb


P.S. I'll update my Ubuntu 11.10 install tomorrow and purge Opera, then see if I can replicate installing via the Software Centre. I'm fairly sure it is their problem though. In the mean time anyone having this problem can just use dpkg.

16. October 2011, 20:46:48

geomorillo

Banned user

Installing from terminal successful thanks

16. October 2011, 20:52:39

shinoge

Posts: 2

Its works great. Thank You smile

16. October 2011, 20:56:55

Opera Software

ruario

Posts: 980

Those who are having the problem, could you run the following to find out the exact version number of your software centre:
dpkg -l software-center

The version on the LiveCD is 5.0.1.4. I'd like to know if you have a more recent version.

16. October 2011, 21:23:47

Frenzie

Posts: 15571

I don't believe the Software Center has received any updates since release. At least I only recall a bunch of updates for CUPS.
The DnD Sanctuary — a safety net for My Opera's demise.

17. October 2011, 04:52:04

edocastillo

Posts: 23

Hi! I have the same problem with Opera 11.51 and Opera 12 alpha
The software center in Oneiric:


jorge@Casa:~$ dpkg -l software-center Deseado=Desconocido/Instalar/Eliminar/Purgar/Retener | Estado=No/Instalado/Config-files/Desempaquetado/Medio-conf/Medio-inst/espera-disparo/pendiente-disparo |/ Err?=(ninguno)/Requiere-reinst (Estado,Err: mayúsc.=malo) ||/ Nombre                        Versión                      Descripción +++-=============================-=============================-========================================================================== ii  software-center               5.0.1.4                       Utility for browsing, installing, and removing software


Even with GDebi:


I can install other packages (e.g: simple lightdm manager)

17. October 2011, 14:55:25

maxboy01

Posts: 51

here is a screenshot of what appears in the software center

17. October 2011, 17:00:24

Opera Software

ruario

Posts: 980

Ok, I think I have it worked out. I'll post back with more information when I have done just a little more testing. Thanks to all of you who have responded. Much appreciated!!

17. October 2011, 17:30:59

Opera Software

ruario

Posts: 980

Ok, testing finished, here is a summary of the issue.

A .deb package is actually just an ar archive that contains three files:

  • debian-binary: A text file that contains the deb format version number ("2.0" these days).
  • control.tar.gz: This contains several other text files that store Meta package information and install scripts
  • data.tar: This contains the file system layout, optionally compressed with GZip, BZip2, LZMA or xz.

The problem with our packages (as far as Software Centre is concerned) is that our data.tar is LZMA compressed. We selected this compression method as it is just as small as xz compression but has been supported by distros for longer than xz. Hence it allows us to have small packages that will install on a wide range of Debian based distros.

However, in a clean default desktop installation of Ubuntu "Oneiric Ocelot" 11.10 the LZMA compression package is not installed. Because of this Software Centre cannot inspect its contents, explaining the "cannot be opened" error message.

So how is it opened from a Ubuntu "Oneiric Ocelot" 11.10 LiveCD or older Ubuntu? They both provide /usr/bin/lzma.

And what about dpkg and apt? They work because they use xz to open it since the xz compression format is actually a continuation of the LZMA compression format. In fact if you setup a /usr/bin/lzma as a symlink pointing to /usr/bin/xz even Software Centre can open the Opera packages. So the bug is with Software Centre because unlike the lower level command line utilities it doesn't realise that it doesn't need the lzma executable, xz will do just fine!

There is a work around for us. We could change the internal compression format within our Debian files. Our choices are GZip, BZip2 or XZ. xz compression would keep the packages at the same small size but would prevent installation of Opera on older Debian based repositories and hence is not really feasible for us right now. So in all likelihood it seems we will have have to use either GZip or BZip2, which will bump the Opera packages size by a few Mbs. sad

The proper fix however must come from Ubuntu/Canonical. They need to update Software Centre so that if an LZMA compressed Debian package is found and lzma is not available xz should be used to read the archive.

17. October 2011, 17:43:13

Fizyk

Python/PHP Programmer

Posts: 16

Great!
I've posted link in relevant bug reports on launchpad

17. October 2011, 17:44:35

Opera Software

ruario

Posts: 980

It seems that Google Chrome have exactly the same issue:

https://bugs.launchpad.net/bugs/868188

17. October 2011, 17:45:57

Opera Software

ruario

Posts: 980

Originally posted by Fizyk:

Great!
I've posted link in relevant bug reports on launchpad

Thanks. I just did the same thing! wink

17. October 2011, 22:58:16

Opera Software

ruario

Posts: 980

After some testing I have updated the Opera 12.00 Alpha debs to use bzip2 compression rather than lzma. They should now install with the Software Centre provided by Ubuntu "Oneiric Ocelot" 11.10.

If someone else would like to test as well and report back I would appreciate it. They are found here:

http://snapshot.opera.com/unix/alpha_12.00-1105/

17. October 2011, 23:19:15

Opera Software

ruario

Posts: 980

Here are copies of the Opera stable version 11.51, re-packaged using bzip2 compression. Again confirmation that these files install successfully would be appreciated:

32-Bit Opera 11.51 for Ubuntu 11.10 (Oneiric Ocelot)
64-Bit Opera 11.51 for Ubuntu 11.10 (Oneiric Ocelot)

18. October 2011, 04:33:37

Opera Software

ruario

Posts: 980

Originally posted by maxboy01:

thank you bigsmile

Is that a confirmation that installation worked?

Remember I asked:

Originally posted by ruario:

confirmation that these files install successfully would be appreciated

18. October 2011, 16:44:59

Opera Software

ruario

Posts: 980

Great, I'll see about getting the official builds updated.

19. October 2011, 09:13:44

Opera Software

ruario

Posts: 980

Ok, Opera 11.52 is released. It uses bzip2 compression for now to work around the issue and also includes a fix for a recent security issue. Because of the security aspect it is recommended that everyone update.

ftp://ftp.opera.com/pub/opera/linux/1152/

22. October 2011, 06:20:07

edocastillo

Posts: 23

Originally posted by ruario:

Ok, Opera 11.52 is released. It uses bzip2 compression for now to work around the issue and also includes a fix for a recent security" target="_blank">http://my.opera.com/securitygroup/blog/2011/10/19/about-the-svg-font-manipulation-vulnerability-that-was-fixed-in-11-52]security issue. Because of the security aspect it is recommended that everyone update.

ftp://ftp.opera.com/pub/opera/linux/1152/



Thank you so much! smile

Forums » Opera for Windows/Mac/Linux » Opera for *nix - Linux/FreeBSD