尝试安装Deb软件包时出现错误

时间:2020-05-18 10:57:23

标签: debian installation failed-installation dpkg

我尝试安装以下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   

3 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:1)

屏幕保护程序 glitchpeg 似乎有一个小问题,但无需将其删除。

vim /usr/share/applications/screensavers/glitchpeg.desktop

[Desktop Entry]
Name=Glitchpeg
Exec=/usr/lib/xscreensaver/glitchpeg -root
TryExec=/usr/lib/xscreensaver/glitchpeg
Comment=Loads an image, corrupts it, and then displays the corrupted version,
several times a second.  After a while, finds a new image to corrupt. Written by Jamie Zawinski; 2018
StartupNotify=false
Terminal=false
Type=Application
Categories=Screensaver;
OnlyShowIn=MATE;

请注意,杰米在“2018”之前抛出了一个分号作为标点符号,但我猜它会弄乱解析器。我删除了分号,错误就消失了。粗心的杰米!

答案 2 :(得分:0)

sudo rm /usr/share/applications/screensavers/glitchpeg.desktop 

帮我解决了这个问题。正在尝试在 Lubuntu 20.04 上安装 Zoom