[Solved] Missing dependency
-
opt last edited by
Same problem here. I have version 3.18.9 and I haven't found a way to update it. Vivaldi is working fine and it's based on Chromium 83.0.4103.119
-
kmod last edited by
It is not recommended to upgrade gtk3 on Ubuntu (even if doable) because it may render some your applications non working or even break your desktop. Ugrading gtk to 3.19 is a non starter. Not going to kill my system because of opera.
-
A Former User last edited by
@leocg To all who are interested. The answer in the following post solves the problem for me. GTK upgrade and Opera update without any problem on my side:
https://askubuntu.com/questions/933010/how-to-upgrade-gtk-3-18-to-3-20-on-ubuntu-16-04# -
kmod last edited by
@anab said in [Solved] Missing dependency:
@leocg To all who are interested. The answer in the following post solves the problem for me. GTK upgrade and Opera update without any problem on my side:
https://askubuntu.com/questions/933010/how-to-upgrade-gtk-3-18-to-3-20-on-ubuntu-16-04#I know that method but it is risky to upgrade gtk3 that's why I didn't post the link here. A lot of it would depend on your DE and the applications you use. Glad that it works out for you. But I have switched to Vivaldi, problem solved (opera is never my main broswer anyway. Firefox is)
-
vbnvbn last edited by vbnvbn
None of the last 2-3 versions of opera browser for linux can be installed on Ubuntu Xenial(16.04) because the package depends on libgtk-3-0 package of a newer version which is not supported by Xenial. When try to install a newer version of libgtk-3-0, the system returns more messages of such dependency problems (for example packages gir1.2-gtk-3.0, libgail-3-0, libglib2.0.0, libgtk-3-bin, libgtk-3-common must be (of) newer versions which are not supported by Xenial).
At least if i decide to install the necessary packages, i have to download and install a lot of packages of another debian-based distribution manually (something which is very unsafe/risky).
-
vbnvbn last edited by vbnvbn
@anab said in [Solved] Missing dependency:
@leocg To all who are interested. The answer in the following post solves the problem for me. GTK upgrade and Opera update without any problem on my side:
https://askubuntu.com/questions/933010/how-to-upgrade-gtk-3-18-to-3-20-on-ubuntu-16-04#This doesn't work for me - there is no highlight background/text on the menus, desktop, windows and text (as well as the menus' lists and icons become graphically too dense) after installing packages from ppa:gnome3-team/gnome3-staging
It seems there is nothing to do but install a newer version of Ubuntu or another linux distribution.
Any other suggestions?
-
kmod last edited by kmod
@vbnvbn said in [Solved] Missing dependency:
It seems there is nothing to do but install a newer version of Ubuntu or another linux distribution.
Any other suggestions?
Yes, there is another way.
You can download the .deb, right click and extract it with file roller like you do with any archive (instead of installing it) then extract data.tar.xz with file roller, then in the terminal run
/path/to/opera-stable_69.0.3686.57_amd64/usr/bin/opera
Opera starts here and seems working, I went to Youtube and checked my email, went to a few random sites, so maybe libgtk 3.19 is not really needed to run opera, just a packaging requirement. But I haven't tested it much, like I said I have switched to Vivaldi.
If it complains about missing libraries in the terminal type (or just do it anyway in case you are missing something but opera still starts)
ldd /path/to/opera-stable_69.0.3686.57_amd64/usr/bin/opera
and install whatever libs that are "not found" in the output.
I got this error when starting opera in the terminal
ERROR:child_thread_impl.cc(792)] Receiver for unknown Channel-associated interface: chrome.mojom.SearchBouncer
Seems to be related to glibc https://forums.opera.com/topic/38293/solved-opera-66-0-3515-72-1-crashing-without-any-extension-or-new-installation/49, but opera doesn't crash on me, everything is working normally, so maybe it is harmless (though I haven't tested too much, there may be use cases where it is important, and I missed them I don't know)
If everything works you can make a .desktop file and manually update everytime (replace the folder with a new one) I can't be bother with it myself, but yeah, looks like it can be done
EDIT: Ok, the error is harmless. I started opera in Ubuntu 20.04 and get the same error but everything there works fine.
-
kmod last edited by sgunhouse
Ok, after the test above to run opera locally I am pretty sure that libgtk319 is not needed to run opera, it is just a packaging requirement. So for those who want to install opera69 in Ubuntu 16.04 you can just edit the debian control file to fix the libgtk3 requirement and then rebuild the deb. Here are the steps:
create a directory for editing and rebuilding the opera deb
mkdir opera_build
Download opera-stable_69.0.3686.57_amd64.deb and put it in the opera_build directory created above
cd opera_build mkdir tmp dpkg-deb -x opera-stable_69.0.3686.57_amd64.deb tmp dpkg-deb --control opera-stable_69.0.3686.57_amd64.deb tmp/DEBIAN
This extracts the debian metadata in opera_build/tmp/DEBIAN, in it there is a control file
now edit the control file (still in opera_build)
gedit tmp/DEBIAN/control
change the requirement libgtk-3-0(>=3.19.12) to libgtk-3-0(>=3,18.9), then save.
Now rebuild the deb (still in the opera_build directory)
dpkg -b tmp opera-stable_69.0.3686.57_fixed_amd64.deb
this creates a new deb called opera-stable_69.0.3686.57_fixed_amd64.deb
now you can install this like you would normally with a deb and it no longer complains about libgtk3 version. Now when the pop up window comes up asking you if you want to update opera with rest of system, uncheck it, since next time there is an update you would need to go through this whole exercise again, apt upgrade will fail.
-
kmod last edited by
there is a typo in the post above. temp should be tmp in the last two lines of codes.
-
vbnvbn last edited by
@kmod said in [Solved] Missing dependency:
Ok, after the test above to run opera locally I am pretty sure that libgtk319 is not needed to run opera, it is just a packaging requirement. So for those who want to install opera69 in Ubuntu 16.04 you can just edit the debian control file to fix the libgtk3 requirement and then rebuild the deb. Here are the steps:
create a directory for editing and rebuilding the opera deb
mkdir opera_build
Download opera-stable_69.0.3686.57_amd64.deb and put it in the opera_build directory created above
cd opera_build mkdir tmp dpkg-deb -x opera-stable_69.0.3686.57_amd64.deb tmp dpkg-deb --control opera-stable_69.0.3686.57_amd64.deb tmp/DEBIAN
This extracts the debian metadata in opera_build/tmp/DEBIAN, in it there is a control file
now edit the control file (still in opera_build)
gedit tmp/DEBIAN/control
change the requirement libgtk-3-0(>=3.19.12) to libgtk-3-0(>=3,18.9), then save.
Now rebuild the deb (still in the opera_build directory)
dpkg -b tmp opera-stable_69.0.3686.57_fixed_amd64.deb
this creates a new deb called opera-stable_69.0.3686.57_fixed_amd64.deb
now you can install this like you would normally with a deb and it no longer complains about libgtk3 version. Now when the pop up window comes up asking you if you want to update opera with rest of system, uncheck it, since next time there is an update you would need to go through this whole exercise again, apt upgrade will fail.
Thanks for this solution. The browser thus works on my system - unfortunately crashed unexpectedly on the main page of youtube (i.e. without there being a video played - which is strange to me - i will test it and will inform opera forums if there is any constant problem).
-
A Former User last edited by
The solution given works for me. The only thing I've noticed is that the highlight on the main menu accessible from the Opera button is missing when using the dark theme; with the light theme everything seems normal for me. Every site I've visited works, including YouTube. Considering that Ubuntu 16.04 Xenial, a long term support version of the OS, is supported until April 2021 it's a real pity that Opera 69 and above can only now be installed by rebuilding a deb package. Surely Opera should always run on all LTS versions of Ubuntu while they continue to be supported? Otherwise people who have been loyally using Opera for years, in this case over four years, will suddenly find that their system no longer updates via the Opera repository and that the lastest deb packages can't be installed on their system without any warning.