sudo apt-get install geany 时报错:
“
dpkg: 处理软件包 linux-image-extra-4.8.0-36-generic (--remove)时出错:
子进程 已安装 post-removal 脚本 返回错误状态 1
正在卸载 linux-image-4.8.0-36-generic (4.8.0-36.36~16.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.8.0-36-generic /boot/vmlinuz-4.8.0-36-generic
update-initramfs: Deleting /boot/initrd.img-4.8.0-36-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.8.0-36-generic /boot/vmlinuz-4.8.0-36-generic
/usr/sbin/grub-mkconfig: 37: /etc/default/grub: nouveau.modeset=0: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.8.0-36-generic.postrm line 328.
dpkg: 处理软件包 linux-image-4.8.0-36-generic (--remove)时出错:
子进程 已安装 post-removal 脚本 返回错误状态 1
在处理时有错误发生:
linux-image-extra-4.8.0-36-generic
linux-image-4.8.0-36-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
”
解决办法:
参考blog:http://blog.csdn.net/zx249388847/article/details/72812241