How to install libqt4-core and libqt4-gui on Ubuntu 16.04 LTS?
These libqt4-core and libqt4-gui packages don't exist anymore in Ubuntu 16.04 LTS and newer. They were dummy packages with dependencies to other packages. The following procedure will modify the Vidyo package so it uses working dependencies.
-
First make sure that all required libqt4 packages not installed by default are installed:
sudo apt install libqt4-designer libqt4-opengl libqt4-svg libqtgui4 libqtwebkit4
Create a script to modify the dependency defined in the package. Use the
videbcontrol
script provided here.Run the script
videbcontrol VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.deb
that will open the dependencies in a vi editor-
Replace
Depends: libxss1,libaudio2,libasound2,libqt4-gui (>= 4.8.1), libqt4-network
withDepends: libxss1,libaudio2,libasound2,libqt4-designer,libqt4-opengl,libqt4-svg,libqtgui4,libqtwebkit4,libqt4-network
. This creates a file namedVidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.modified.deb
containing the new dependency.If you don't know vi, once you see the package information
- move the cursor using the arrows down to the line starting with
Depends:
- type the letter
i
to get into insert mode - copy past (right click) the new line and type return
- type escape to leave the insert mode
- type
dd
to delete the oldDepends
line - type
ZZ
to save and quit the change (two upper case z)
- move the cursor using the arrows down to the line starting with
-
Install the Vidyo package by executing the command:
sudo apt install VidyoDesktopInstaller-ubuntu64-TAG_VD_3_6_3_017.modified.deb
Enjoy
Thanks to https://ubuntuforums.org/showthread.php?t=110458 and @chmike These dependencies already have higher versions as I found. It is okay to change the .deb file instead. @bean1975 has a shorter method:
dpkg-deb -x yourfile.deb newdir
dpkg-deb --control yourfile.deb newdir/DEBIAN
gedit newdir/DEBIAN/control
and change the libqt4-gui (>= 4.8.1)
with libqt4-designer,libqt4-opengl,libqt4-svg,libqtgui4,libqtwebkit4
dpkg -b newdir modified.deb
and you can use it now!!!