我的笔记本电脑上有 Ubuntu。我下载了 DraftSight,并尝试使用我在网上找到的以下命令通过终端进行安装:
sudo apt-get install ia32-libs libdirectfb-extra libxcb-render-util0
sudo dpkg --force-all -i ~/Downloads/draftSight.deb
sudo apt-get -f
它说缺少一些软件包,并建议用其他软件包替换它,我照做了。我找到了图标,但当我尝试运行 Draft 时,弹出此消息:“无法加载模块。应用程序将关闭。请重新安装该应用程序。”当我尝试卸载它时,它说无法完成,因为它没有安装。
我对 Ubuntu 不太熟悉,我才刚刚开始使用它。有人能告诉我如何解决这个问题吗?我需要这个程序来上课,我不想放弃使用 Ubuntu。
答案1
我也遇到了这个问题。这似乎可以解决问题:
sudo apt-get install libcanberra-gtk-module:i386 libcanberra-gtk0:i386
答案2
尝试 gdebi,它将下载缺少的依赖项:
sudo apt-get install gdebi
sudo gdebi ~/Downloads/draftSight.deb
答案3
你必须修改 .deb 文件
#!/bin/sh
## Fix a DraftSight Debian package to make it installable on a 64bit machine.
## Last known realease is http://dl-ak.solidworks.com/nonsecure/draftsight/V1R4.0/draftSight.deb
ORIGINAL=draftSight.deb
PACKAGE=fixed-$ORIGINAL
if ! test -f $ORIGINAL
then
echo "$ORIGINAL file does not exist."
PACKAGE=$(zenity –file-selection –filename=draftSight.deb –file-filter=deb)
fi
echo "Copying $ORIGINAL into $PACKAGE"
cp $ORIGINAL $PACKAGE || exit 5;
echo "Extracting control.tar.gz"
ar x $PACKAGE control.tar.gz || exit 5;
echo "Unpacking control.tar.gz into control directory"
mkdir --parents control || exit 5;
tar -zxf control.tar.gz --directory control || exit 5;
mv control.tar.gz control.tar.gz.orig
echo "Removing wrong dependency (xdg-utils)"
if sed -in-place -e "s/ xdg-utils,//" control/control
then
echo "Repacking contents of ‘control’ directory into control.tar.gz"
(cd control; tar --create --file ../control.tar *) || exit 5;
gzip --best --no-name control.tar
echo "Storing patched control.tar.gz back into $PACKAGE";
ar r $PACKAGE control.tar.gz || exit 5;
echo "Draftsight original package $ORIGINAL patched into $PACKAGE"
fi
答案4
尝试一下: sudo apt-get install libgstreamer0.10-0 libgstreamer-plugins-base0.10-0 sudo apt-get install gstreamer0.10-pulseaudio