Deepin-Linux内核升级错误解决和步骤(小白文)
Tofloor
poster avatar
gdm117
deepin
2019-08-01 02:13
Author
我在操作内核时候的错误(先期升级内核准备)
1、sudo update-initramfs -u(查找要操作内核时缺少的库-自己理解的意思
出现的错误提示:
update-initramfs: Generating /boot/initrd.img-4.15.0-30deepin-generic
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.
loadkeys is missing. Please install the 'kbd' package.
W: plymouth: The plugin label.so is missing, the selected theme might not work as expected.
W: plymouth: You might want to install the plymouth-themes package to fix this.
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
2、以管理员身份打开并编辑file:///etc/apt下的sources.list添加如下阿里源:
deb [by-hash=force] http://mirrors.aliyun.com/deepin/ panda non-free contrib main  
#deb-src http://mirrors.aliyun.com/deepin/ panda non-free contrib main
执行Sudo apt update
3、安装kbd和plymouth-themes包(使用新力德软件进行 )
执行:sudo rm /etc/mdadm/mdadm.conf
sudo update-initramfs -u
4、再次执行sudo update-initramfs -u
出现错误:
update-initramfs: Generating /boot/initrd.img-4.15.0-30deepin-generic
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 2.
update-initramfs: failed for /boot/initrd.img-4.15.0-30deepin-generic with 2.
使用sudo chmod -x /usr/share/initramfs-tools/hooks/plymouth修复
5、其次再执行sudo update-initramfs -u,只出现警告提示
update-initramfs: Generating /boot/initrd.img-4.15.0-30deepin-generic
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.

Reply Favorite View the author
All Replies

No replies yet