ubuntu下 内核安装 sudo make install 时报如下错误

在Ubuntu下使用sudomakeinstall安装内核时遇到错误,详细错误信息为:更新初始RAM磁盘失败,没有足够的空间在设备上。解决办法是通过安装initramfs相关包来修复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ubuntu下 内核安装 sudo make install 时报如下错误

root@xc-OptiPlex-7060:/usr/src/linux-4.20.17# sudo make install
sh ./arch/x86/boot/install.sh 4.20.17 arch/x86/boot/bzImage
System.map “/boot”
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.20.17 /boot/vmlinuz-4.20.17
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.20.17 /boot/vmlinuz-4.20.17
update-initramfs: Generating /boot/initrd.img-4.20.17
I: The initramfs will attempt to resume from /dev/sda8
I: (UUID=ef0dc935-bb63-48e4-99a2-44c3354c00db)
I: Set the RESUME variable to override this.

gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.20.17 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
arch/x86/boot/Makefile:155: recipe for target ‘install’ failed
make[1]: *** [install] Error 1
arch/x86/Makefile:288: recipe for target ‘install’ failed
make: *** [install] Error 2

解决办法:

sudo apt-get install initramfs*

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值