首页 > 代码库 > initramfs-tools ... update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64 mktemp: failed to create directory via template `/var/tmp/mki

initramfs-tools ... update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64 mktemp: failed to create directory via template `/var/tmp/mki

Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64
mktemp: failed to create directory via template `/var/tmp/mkinitramfs_XXXXXX‘: No such file or directory
update-initramfs: failed for /boot/initrd.img-3.14-kali1-amd64 with 1.
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:

 

 

slove:

在网上百度了一下都没有解决问题

直接cd到 var 发现没有tmp文件夹

cd /

cd var

mkdir tmp

sudo dpkg --configure -a

initramfs-tools ... update-initramfs: Generating /boot/initrd.img-3.14-kali1-amd64 mktemp: failed to create directory via template `/var/tmp/mki