[Kernel/Drive] sudo apt upgrade后有报错日志
Tofloor
poster avatar
studywithallofyou
deepin
2023-07-07 17:31
Author

最近每次更新都会有如下报错,有知道是什么原因导致的吗

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
正在设置 linux-image-5.15.77-amd64-desktop (5.15.77-amd64-desktop-2) ...
update-initramfs: Generating /boot/initrd.img-5.15.77-amd64-desktop
cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries 
    nor crypto modules. If that's on purpose, you may want to uninstall the 
    'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs 
    integration and avoid this warning.
live-boot: core filesystems devices utils udev blockdev dns.
fix systemd/logind config
get rootb uuid error: failed to get "rootb" uuid
正在生成 grub 配置文件 ...
找到主题:/boot/grub/themes/deepin-fallback/theme.txt
Found background image: /boot/grub/themes/deepin-fallback/background.jpg
找到 Linux 镜像:/boot/vmlinuz-5.15.77-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.15.77-amd64-desktop
找到 Linux 镜像:/boot/vmlinuz-5.15.45-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-5.15.45-amd64-desktop
找到 Linux 镜像:/boot/vmlinuz-5.3.0-42-generic
找到 initrd 镜像:/boot/initrd.img-5.3.0-42-generic
/etc/grub.d/15_deepin-boot-kit:行44: /usr/sbin/deepin-boot-kit: 没有那个文件或目录
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: 处理软件包 linux-image-5.15.77-amd64-desktop (--configure)时出错:
 已安装 linux-image-5.15.77-amd64-desktop 软件包 post-installation 脚本 子进程返回错误状态 1
正在处理用于 bamfdaemon (0.5.4.1-1+eagle) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
正在处理用于 desktop-file-utils (0.23-4) 的触发器 ...
正在处理用于 mime-support (3.62) 的触发器 ...
正在处理用于 shared-mime-info (1.10.1-1+eagle) 的触发器 ...
在处理时有错误发生:
 linux-image-5.15.77-amd64-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reply Favorite View the author
All Replies
dgmenghuan
deepin
2023-07-07 17:38
#1

我从来不会利用升级程序,出现新版本了就写入U盘,重作,呵呵,没有这种闹心的事情

Reply View the author
青稚
Moderator
2023-07-07 17:39
#2

sudo apt purge linux-image-5.15.77-amd64-desktop

sudo apt update && sudo apt upgrade

sudo apt install linux-image-5.15.77-amd64-desktop

Reply View the author
阿尼樱奈奈
Moderator
2023-07-07 17:40
#3

一样的报错,我是重装系统解决的

Reply View the author
owen_337
deepin testing team
2023-07-07 17:40
#4
It has been deleted!
hotime
deepin
2023-07-07 18:05
#5

关于第一条问题:

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

说明这个文件glitchpeg.desktop有问题,我们使用desktop-file-validate命令检查一下这个文件是否符合规范,问题到底是什么

desktop-file-validate /usr/share/applications/screensavers/glitchpeg.desktop

提示如下:

glitchpeg.desktop: error: 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 comment, a group or an entry
glitchpeg.desktop: hint: value "Screensaver;" for key "Categories" in group "Desktop Entry" does not contain a registered main category; application might only show up in a "catch-all" section of the application menu

从第一行提示中给出了明确的错误原因,我们打开文件看一下:

图片.png

从文本编辑器中可以看到,Comment在第6行,而第7行内容本应同属于Comment内容却多了换行符,我们把换行符删掉,让他们处在同一行(第6行)就行了。

这样第一条这个错误就修复了。你试试看。

(如果有强迫症的话,在删除换行符后记得在这个逗号后面加个空格)


补充:

glitchpeg.desktop的问题是在xscreensaver-data-extra 5.42包中存在的,Debian在5.45中修正了这个问题,DeepinV20仓库中目前暂时只有5.42,V23仓库中用的是目前最新的6.02。

Reply View the author
忘记、过去
deepin
2023-07-07 18:56
#6
sudo apt reinstall deepin-boot-kit
sudo apt install -f

重新装下 deepin-boot-kit 这个包,错误里面说可执行文件找不到了,导致内核安装配置没完成

Reply View the author