如何在 Ubuntu 64 位上安装 DraftSight?

如何在 Ubuntu 64 位上安装 DraftSight?

我下载了 deb 文件来安装 DraftSight,但尝试使用 dpkg 安装该包失败并出现以下错误:

The installation or removal of a software package failed.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 196655 files and directories currently installed.)
Preparing to unpack .../Downloads/draftSight.deb ...
access control disabled, clients can connect from any host
/var/lib/dpkg/tmp.ci/ShowLicense: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
access control enabled, only authorized clients can connect
dpkg: error processing archive /home/helios/Downloads/draftSight.deb (--install):
 subprocess new pre-installation script returned error exit status 127
Errors were encountered while processing:

我需要安装哪些缺少的软件包才能正常运行 DraftSight?

答案1

要在 64 位 Ubuntu 中轻松安装和运行 DraftSight CAD,您需要安装几个 i386 包:

sudo apt-get install libuuid1:i386 libice6:i386 libsm6:i386 libxt6:i386 libaudio2:i386 libgtk2.0-0:i386 libcanberra-gtk-module:i386 libcanberra-gtk0:i386 libglu1-mesa:i386

然后只需打开 dash 即可启动应用程序:

在此处输入图片描述

答案2

这是在我的 PC 上测试过的(Ubuntu 14.04 64 位):
安装包libgtk2.0-0:i386 然后 Draftsight 将安装成功。

答案3

要在 14.04(64 位)上安装 DraftSight:

步骤 1:安装 i386 库(在@sylvain 回答中也提到过)

sudo apt-get install libuuid1:i386 libice6:i386 libsm6:i386 libxt6:i386 libaudio2:i386 libgtk2.0-0:i386 libcanberra-gtk-module:i386 libcanberra-gtk0:i386 libglu1-mesa:i386

步骤 2:下载 DraftSight 安装程序:

下载.deb来自源头

步骤 3:安装 DraftSight CAD

更改为下载文件夹后运行

sudo dpkg -i draftSight.deb

相关内容