尝试安装 dconf-editor 时出现 Linux 内核错误

尝试安装 dconf-editor 时出现 Linux 内核错误

运行命令时

sudo apt install dconf-editor

我得到的输出最后有一个错误(与内核有关?)并且 dconf-editor 从未安装:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  linux-image-4.18.0-15-generic
The following NEW packages will be installed:
  dconf-editor
0 upgraded, 1 newly installed, 1 to remove and 20 not upgraded.
2 not fully installed or removed.
Need to get 390 kB of archives.
After this operation, 6,465 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 dconf-editor amd64 3.28.0-1 [390 kB]
Fetched 390 kB in 0s (1,104 kB/s)    
(Reading database ... 187516 files and directories currently installed.)
Removing linux-image-4.18.0-15-generic (4.18.0-15.16~18.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.18.0-15-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 35: /etc/default/grub: bluetooth.disable_ertm=1: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-4.18.0-15-generic (--remove):
 installed linux-image-4.18.0-15-generic package post-removal script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-4.18.0-15-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

编辑:我看到/usr/sbin/grub-mkconfig: 35: /etc/default/grub: bluetooth.disable_ertm=1: not found并记得在尝试连接我的 Xbox 控制器时添加了该行/etc/sysfs.conf,但由于我仍在学习 Linux,所以不确定这会做什么(所有教程都只说添加该行,而没有解释它),或者它是否/如何产生影响dpkg

相关内容