首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更新-initramfs命令找不到

更新-initramfs命令找不到
EN

Unix & Linux用户
提问于 2019-08-30 17:00:21
回答 2查看 28.8K关注 0票数 4

如何更新initramfs 在其他地方是怎么描述的以添加固件?

对于Debian 10,我会得到一个command not found error。安装了initramfs-tools

代码语言:javascript
复制
root@pc:/home/.../linux-firmware/i915# update-initramfs -u
bash: update-initramfs: command not found
root@pc:/home/.../linux-firmware/i915# apt install initramfs-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
initramfs-tools is already the newest version (0.133).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

好的,再谷歌一次,找到带有实时更新-initramfs的程序包。然而,现在其他的失败。

代码语言:javascript
复制
root@pc:/home/stefan/Downloads/intel-firmware/linux-firmware/i915# apt install live-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  debian-installer-launcher rsync uuid-runtime
The following NEW packages will be installed:
  live-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.1 kB of archives.
After this operation, 109 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 live-tools all 1:20171207 [31.1 kB]
Fetched 31.1 kB in 0s (91.4 kB/s)   
Selecting previously unselected package live-tools.
(Reading database ... 160376 files and directories currently installed.)
Preparing to unpack .../live-tools_1%3a20171207_all.deb ...
Unpacking live-tools (1:20171207) ...
Setting up live-tools (1:20171207) ...
Created symlink /etc/systemd/system/multi-user.target.wants/live-tools.service → /lib/systemd/system/live-tools.service.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
update-rc.d: warning: start runlevel arguments (none) do not match live-tools Default-Start values (S)
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-5) ...
root@pd:/home/stefan/Downloads/intel-firmware/linux-firmware/i915# live-update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.19.0-5-amd64
/usr/sbin/update-initramfs.orig.initramfs-tools: 157: /usr/sbin/update-initramfs.orig.initramfs-tools: mkinitramfs: not found
update-initramfs: failed for /boot/initrd.img-4.19.0-5-amd64 with 127.
EN

回答 2

Unix & Linux用户

回答已采纳

发布于 2019-08-31 08:57:11

在sbin找到了更新-initramfs。我不明白它为什么不在我的根路上。然而,

代码语言:javascript
复制
# sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.19.0-5-amd64

做了这份工作。

票数 4
EN

Unix & Linux用户

发布于 2020-03-27 22:03:14

在使用su命令输入root时有相同的错误。

在终端上输入根后,将/sbin添加到PATH解决问题:

代码语言:javascript
复制
# su
# export PATH=/sbin:$PATH
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/538317

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档