![内核问题](https://linux22.com/image/869167/%E5%86%85%E6%A0%B8%E9%97%AE%E9%A2%98.png)
过去我曾尝试使用在http://www.kernel.org/。由于一些问题,我不得不恢复更改,因为我的内核映像无法正常启动。从那时起,当我尝试运行sudo apt-get upgrade
或尝试安装任何应用程序时,我都会收到以下错误:
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-46-generic
/etc/initramfs/post-update.d//zz-flash-touch-initrd: 9: /etc/initramfs/post-update.d//zz-flash-touch-initrd: /usr/sbin/flash-touch-initrd: not found
run-parts: /etc/initramfs/post-update.d//zz-flash-touch-initrd exited with return code 127
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
请帮助我纠正我的内核。
答案1
缺少的文件/etc/initramfs/post-update.d/zz-flash-touch-initrd
是软件包的一部分initramfs-tools-ubuntu-touch
。因此请重新安装
sudo apt-get install --reinstall initramfs-tools-ubuntu-touch