epson-printer-utility 加载共享库时出错

nom*_*win 3 qt software-installation 20.04

尝试运行从 Epson 网站下载的打印机实用程序时,出现以下错误:

epson-printer-utility: error while loading shared libraries: libQtCore.so.4: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我认为这是因为 QT4 库没有安装在 Ubuntu 20.04 LTS 上。它似乎不再可供安装。

我在谷歌上搜索并尝试通过各种方式安装各种 QT4 库,但没有成功。例如:

$ 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
Run Code Online (Sandbox Code Playgroud)

请帮忙。

我是 linux 新手,所以对我需要做的事情要友善且非常具体!

wyp*_*han 6

Ubuntu 20.04 LTS 不再有意使用 Qt4 库。例如,请参阅此问题。最好的办法是从源代码编译,或者设置一个使用旧版 Ubuntu 版本的虚拟机作为来宾操作系统。

或者,如果您喜欢冒险,可以添加此 PPA,然后安装 Qt4:

sudo apt-add-repository ppa:rock-core/qt4
sudo apt update
sudo apt install qt4-default
Run Code Online (Sandbox Code Playgroud)

qt5-default将从您的系统中删除。让我们把它加回来:

sudo apt install qt5-default
Run Code Online (Sandbox Code Playgroud)

现在您在系统中安装了 Qt4 和 Qt5 库,但处于脆弱的平衡状态。下次运行sudo apt autoremove以清理已安装的包时,Qt4 库将被删除。让我们防止这种情况发生:

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
Run Code Online (Sandbox Code Playgroud)


小智 6

以下内容在Ubuntu 20.10上对我有用epson-printer-utility_1.1.1-1lsb3.2_amd64.deb

下载以下bionic软件包:
http://mirrors.kernel.org/ubuntu/pool/universe/q/qt4-x11/libqtcore4_4.8.7+dfsg-7ubuntu1_amd64.deb
http://mirrors.kernel.org/ubuntu/pool/宇宙/q/qt4-x11/libqtgui4_4.8.7+dfsg-7ubuntu1_amd64.deb

从其中提取以下文件:

libQtCore.so.4.8.7
libQtGui.so.4.8.7
Run Code Online (Sandbox Code Playgroud)

将这两个文件复制到/usr/lib/x86_64-linux-gnu. 假设包含上述文件的文件夹是终端中的当前文件夹:

sudo cp libQtCore.so.4.8.7 /usr/lib/x86_64-linux-gnu/
sudo cp libQtGui.so.4.8.7 /usr/lib/x86_64-linux-gnu/
Run Code Online (Sandbox Code Playgroud)

在以下位置创建适当的符号链接/usr/lib/x86_64-linux-gnu

cd /usr/lib/x86_64-linux-gnu/
sudo ln -s libQtCore.so.4.8.7 libQtCore.so.4
sudo ln -s libQtGui.so.4.8.7 libQtGui.so.4
Run Code Online (Sandbox Code Playgroud)

上述内容使Epson Printer Utility启动并运行。但它的功能是……嗯,令人失望。提供的所有功能都可以在设备本身上执行。
Epson Printer Utility 主窗口

注意:以下消息似乎不会损害应用程序。

Gtk-消息:无法加载模块“overlay-scrollbar”

可以通过安装overlay-scrollbar-gtk2包来修复:

sudo apt install overlay-scrollbar-gtk2
Run Code Online (Sandbox Code Playgroud)

  • 这个解决方案对我有用,但我还必须从 http://archive.ubuntu.com/ubuntu/pool/main/n/nas/libaudio2_1.9.4-6_amd64.deb 下载 libaudio 包,然后重复将 libaudio 过程复制到相同的目录。顺便说一句,我使用的是ubuntu 21.10。 (3认同)