更新内核时出现“exec: 15: update-grub: not found”错误

更新内核时出现“exec: 15: update-grub: not found”错误
root@me-desktop:~# sudo apt-get install aircrack-ng
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  aircrack-ng
0 upgraded, 1 newly installed, 0 to remove and 446 not upgraded.
1 not fully installed or removed.
Need to get 1,579kB of archives.
After this operation, 2,843kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ maverick/universe aircrack-ng i386 1:1.1-1 [1,579kB]
Fetched 1,579kB in 1min 9s (22.7kB/s)                                          
Selecting previously deselected package aircrack-ng.
(Reading database ... 520739 files and directories currently installed.)
Unpacking aircrack-ng (from .../aircrack-ng_1%3a1.1-1_i386.deb) ...
Processing triggers for man-db ...
Setting up linux-image-3.0.1-030001-generic (3.0.1-030001.201108060905) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-3.0.1-030001-generic
Warning: No support for locale: en_US.utf8
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.0.1-030001-generic /boot/vmlinuz-3.0.1-030001-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.0.1-030001-generic /boot/vmlinuz-3.0.1-030001-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 3.0.1-030001-generic /boot/vmlinuz-3.0.1-030001-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.0.1-030001-generic /boot/vmlinuz-3.0.1-030001-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.0.1-030001-generic /boot/vmlinuz-3.0.1-030001-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.0.1-030001-generic /boot/vmlinuz-3.0.1-030001-generic
exec: 15: update-grub: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.0.1-030001-generic.postinst line 1010.
dpkg: error processing linux-image-3.0.1-030001-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up aircrack-ng (1:1.1-1) ...
Errors were encountered while processing:
 linux-image-3.0.1-030001-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@me-desktop:~# 

答案1

看来楼主是想用这个来追踪问题,而不是问其他问题

答案2

这不关我的事,但使用 aircrack 有点违法。另外,请确保你的系统对 aircrack 的要求正确。aircrack 只在某些硬件芯片上运行。

相关内容