debian - 尝试安装 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
解决方案
问题不在于分号。冒犯解析器的行是“注释”字段的第二部分。删除该键=值对中的额外换行符,问题就会消失。
推荐阅读
- python-3.7 - 某些测试用例的输出错误
- h2o - 使用 h2o.init() 连接到外部实例时向 H2O 添加额外的 jar
- sql-server - 将时间表打卡和打卡查询更改为交叉表查询
- javascript - 如何在反应中保存多个复选框值
- go - 如何隐藏终端命令的输出
- java - 在 Spring Boot 中访问请求标头?
- sql - 使用该列的引用名和顺序
- python - 使用 python 2.7 使用单引号、双引号和 unicode 解析 JSON
- function - 错误说它不能将字符串转换为布尔值
- python - 使用 Latin-1 编码 Spyne SOAP XML 响应