Mat*_*lly 5 inkscape software-installation 14.04
我正在尝试使用 apt-get 在 Ubuntu 14.04 LTS 上安装 Inkscape。看似成功安装后,我似乎无法运行 Inkscape。我得到以下终端输出:
matt@linuxDesk:/$ sudo apt-get install inkscape
Reading package lists... Done
Building dependency tree
Reading state information... Done
inkscape is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
matt@linuxDesk:/$ inkscape
The program 'inkscape' is currently not installed. You can install it by typing:
sudo apt-get install inkscape
Run Code Online (Sandbox Code Playgroud)
我有第二台计算机,也运行 Ubuntu 14.04,我能够在该计算机上安装和运行 Inkscape,没有问题。我跑了
find /usr -name inkscape
Run Code Online (Sandbox Code Playgroud)
在具有工作安装的计算机上,并且该命令返回了大量文件。在安装失败的计算机上运行相同的命令会产生:
/usr/lib/mime/packages/inkscape
/usr/share/menu/inkscape
/usr/share/doc/inkscape
Run Code Online (Sandbox Code Playgroud)
这向我表明 apt-get 认为安装了 Inkscape,但由于某种原因只安装了一些文件。我已经尝试从计算机上完全擦除 Inkscape 并重新开始使用:
sudo apt-get purge inkscape
sudo apt-get autoremove
Run Code Online (Sandbox Code Playgroud)
这些命令似乎并没有删除所有的inkscape文件,所以我什至尝试手动删除它们。还是无济于事。
在尝试了上述各种排列之后,我尝试从源代码安装。我(认为)我获得了所有依赖项,并且 ./configure 运行良好。不幸的是,运行 makefile 失败:
matt@linuxDesk:~/Downloads/inkscape-0.48.4$ make
make all-recursive
make[1]: Entering directory `/home/matt/Downloads/inkscape-0.48.4'
Making all in src
make[2]: Entering directory `/home/matt/Downloads/inkscape-0.48.4/src'
CXX desktop.o
In file included from desktop.cpp:91:0:
widgets/desktop-widget.h:242:32: error: stray ‘,’ at end of member declaration
GtkWidget *commands_toolbox,;
^
make[2]: *** [desktop.o] Error 1
make[2]: Leaving directory `/home/matt/Downloads/inkscape-0.48.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matt/Downloads/inkscape-0.48.4'
make: *** [all] Error 2
matt@linuxDesk:~/Downloads/inkscape-0.48.4$
Run Code Online (Sandbox Code Playgroud)
任何建议将不胜感激 - 我完全没有想法。谢谢!
弄清楚了。问题是我添加了一个不好的 PPA。我不完全理解它们是如何工作的,但我的猜测是它本质上是将 apt-getinkscape 命令指向错误的位置。我进入并使用以下命令删除了这个 PPA:
cd /etc/apt/sources.list.d/
sudo rm inkscape*
Run Code Online (Sandbox Code Playgroud)
之后,我运行以下命令卸载并重新安装inkscape:
sudo apt-get purge inkscape
sudo apt-get clean
sudo apt-get update
sudo apt-get install inkscape
Run Code Online (Sandbox Code Playgroud)
现在inkscape在终端中运行命令可以正确打开 Inkscape。
| 归档时间: |
|
| 查看次数: |
7943 次 |
| 最近记录: |