【问题标题】:Errors when trying to install deb package尝试安装 deb 包时出错
【发布时间】:2020-05-18 10:57:23
【问题描述】:

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

【问题讨论】:

    标签: debian installation failed-installation dpkg


    【解决方案1】:

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

    【讨论】:

      【解决方案2】:

      屏幕保护程序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;
      

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

      【讨论】:

      • 至少他很好,可以在上面写上他的名字XD
      【解决方案3】:
      sudo rm /usr/share/applications/screensavers/glitchpeg.desktop 
      

      为我做了诀窍。试图在 Lubuntu 20.04 上安装 Zoom

      【讨论】:

        【解决方案4】:

        无法解析文件“/usr/share/applications/screensavers/glitchpeg.desktop”:密钥文件每秒包含几次行。过了一会儿,发现一个新的图像要损坏。由杰米·扎温斯基(Jamie Zawinski)撰写; 2018.?不是键值对、组或评论

        【讨论】:

        • 正如目前所写,您的答案尚不清楚。请edit 添加其他详细信息,以帮助其他人了解这如何解决所提出的问题。你可以找到更多关于如何写好答案的信息in the help center
        猜你喜欢
        • 2021-11-09
        • 1970-01-01
        • 1970-01-01
        • 2021-08-28
        • 2020-12-03
        • 1970-01-01
        • 1970-01-01
        • 2022-01-21
        • 1970-01-01
        相关资源
        最近更新 更多