我一直在尝试安装铅笔计划在 Ubuntu-18.04 上设计用户界面,然后再实现它。我遇到了以下安装问题,我不知道为什么。下载后,我只
sudo apt install ./pencil_3.1.0.ga_amd64.deb && sudo apt install -f
警告如下:
$ sudo dpkg -i pencil_3.1.0.ga_amd64.deb && sudo apt install -f
(Reading database ... 257381 files and directories currently installed.)
Preparing to unpack pencil_3.1.0.ga_amd64.deb ...
Unpacking pencil (3.1.0.ga) over (3.1.0.ga) ...
rm: cannot remove '/usr/share/applications/pencil.desktop': No such file or directory
rm: cannot remove '/usr/share/applications/pencil.png': No such file or directory
Setting up pencil (3.1.0.ga) ...
mv: cannot stat 'pencil.desktop': No such file or directory
mv: cannot stat 'pencil.png': No such file or directory
chmod: cannot access '/usr/share/applications/pencil.*': No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 529 not upgraded.
我不知道为什么没有安装。我咨询了此来源并且这并且两个来源都说警告中指示的文件夹中缺少一个文件。似乎缺少一个图标或.png
。但我.deb
从官方文档. 并且简单地
sudo apt install ./pencil_3.1.0.ga_amd64.deb && sudo apt install -f
答案1
rm:无法删除/usr/share/applications/pencil.desktop:没有此文件.. rm:无法删除/usr/share/applications/pencil.png:没有此文件
Pencil 错误:软件包打包时“尽可能地错误”,脚本 {postinst、postrm} 包含 RPM 软件包中的安装/删除文本。但文本与已安装的文件不匹配!尝试删除未安装的文件。
我安装了软件包“pencil_3.1.0.ga”以gdebi
安装依赖项。但是/opt/pencil-3.1.0.ga/
是空的。删除已完成sudo apt remove pencil
并成功。
安装解决方案https://pencil.evolus.vn/dl/development/pencil_3.1.0.20200319003004_amd64.deb
$ sudo dpkg -i pencil_3.1.0.20200319003004_amd64.deb
$ /opt/pencil-3.1.0.20200319003004/pencil
## the pencil GUI opens
...启动器“pencil.desktop”位于/opt/pencil-3.1.0.20200319003004/
,可以复制到/usr/share/applications/