Ubuntu – Epson-printer-utility error loading shared libraries

20.04qtsoftware installation

When trying to run the printer utility I downloaded from Epson website I get the following error:

epson-printer-utility: error while loading shared libraries: libQtCore.so.4: cannot open shared object file: No such file or directory

I presume this is because the QT4 libraries aren't installed on Ubuntu 20.04 LTS. And it seems no longer available to install.

I have googled and tried installing various QT4 libraries by various means without success. For example:

$ sudo apt-get install qt4-default
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package qt4-default is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'qt4-default' has no installation candidate

Help please.

I'm new to linux so be kind and very specific with what I need to do!

Best Answer

Ubuntu 20.04 LTS no longer has Qt4 libraries on purpose. See this question, for instance. Your best bet is compiling from source, or setting up a virtual machine with an older Ubuntu version as the guest OS.

Or, if you're feeling adventurous, you can add this PPA, then install Qt4:

sudo apt-add-repository ppa:rock-core/qt4
sudo apt update
sudo apt install qt4-default

This removes qt5-default from your system. Let's add it back:

sudo apt install qt5-default

Now you have both Qt4 and Qt5 libraries installed in your system in a fragile balance. The Qt4 libraries will be removed the next time you run sudo apt autoremove to clean up installed packages. Let's prevent that from happening:

sudo apt install libodbc1 libqt4-dbus libqt4-declarative libqt4-designer libqt4-dev libqt4-dev-bin libqt4-help libqt4-network libqt4-opengl libqt4-opengl-dev libqt4-qt3support libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-odbc libqt4-svg libqt4-test libqt4-xml libqt4-xmlpatterns libqtcore4 libqtdbus4 libqtgui4 qdbus qt4-linguist-tools qt4-qmake qtcore4-l10n
Related Question