我尝试将内核升级到 3.8.2,但没有成功。因此,在了解到 3.8 无法与 bumblebee 配合使用后,我尝试返回并安装 3.5.25。但仍然没有成功。
uname -r
说:3.5.0-17-generic
以下是我的问题:
每当我尝试启动更新管理器时,我都会收到以下信息:
E: linux-image-extra-3.5.0-25-generic: subprocess installed
post-removal script returned error exit status 1
我尝试了sudo rm
目录,但没有帮助。
$ sudo apt-get purge linux-image-extra-3.5.0-25-generic
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
linux-image-extra-3.5.0-25-generic 0 upgraded, 0 newly installed, 1 to
remove and 0 not upgraded. 2 not fully installed or removed.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
$ sudo dkpg --configure -a
Setting up linux-image-3.5.0-25-generic (3.5.0-25.39) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.5.0-25-generic /boot/vmlinuz-3.5.0-25-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-25-generic /boot/vmlinuz-3.5.0-25-generic
update-initramfs: Generating /boot/initrd.img-3.5.0-25-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.5.0-25-generic /boot/vmlinuz-3.5.0-25-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.5.0-25-generic /boot/vmlinuz-3.5.0-25-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.5.0-25-generic /boot/vmlinuz-3.5.0-25-generic
/usr/sbin/grub-mkconfig: 36: /etc/default/grub: i915.modeset=1: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.5.0-25-generic.postinst line 1010.
dpkg: error processing linux-image-3.5.0-25-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-3.5.0-25-generic