首页 > 解决方案 > 尝试安装 deb 包时出错

问题描述

我试图安装以下 deb 包,但它一直失败,我不知道如何修复。

以下是重试失败后的输出。

安装失败

sudo dpkg -i particl-desktop-2.3.3-linux-amd64.deb

(Reading database ... 650733 files and directories currently installed.)
Preparing to unpack particl-desktop-2.3.3-linux-amd64.deb ...
Unpacking particl-desktop (2.3.3) over (2.3.3) ...
Setting up particl-desktop (2.3.3) ...
Could not parse file "/usr/share/applications/screensavers/glitchpeg.desktop": Key file contains line ?several times a second.  After a while, finds a new image to corrupt. Written by Jamie Zawinski; 2018.? which is not a key-value pair, group, or comment
Could not parse file "/usr/share/applications/byobu.desktop": No such file or directory
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
gtk-update-icon-cache: The generated cache was invalid.
WARNING: icon cache generation failed

更多信息

uname -a
Linux debian 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux

sudo cat /var/log/dpkg.log
2020-05-18 11:36:06 status installed particl-desktop:amd64 2.3.3
2020-05-18 11:36:06 trigproc desktop-file-utils:amd64 0.23-4 <none>
2020-05-18 11:36:06 status half-configured desktop-file-utils:amd64 0.23-4
2020-05-18 11:36:06 status installed desktop-file-utils:amd64 0.23-4
2020-05-18 11:36:06 trigproc mime-support:all 3.62 <none>
2020-05-18 11:36:06 status half-configured mime-support:all 3.62
2020-05-18 11:36:07 status installed mime-support:all 3.62
2020-05-18 11:36:07 trigproc hicolor-icon-theme:all 0.17-2 <none>
2020-05-18 11:36:07 status half-configured hicolor-icon-theme:all 0.17-2
2020-05-18 11:36:07 status installed hicolor-icon-theme:all 0.17-2

sudo dpkg -l | grep particl
ii  particl-desktop                        2.3.3                                amd64   

标签: debianinstallationfailed-installationdpkg

解决方案


问题不在于分号。冒犯解析器的行是“注释”字段的第二部分。删除该键=值对中的额外换行符,问题就会消失。


推荐阅读