未找到 update-initramfs 命令

Ste*_*ann 5 debian initramfs

如何按照其他地方描述的方式更新 initramfs以添加固件?

\n

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

\n
root@pc:/home/.../linux-firmware/i915# update-initramfs -u\nbash: update-initramfs: command not found\nroot@pc:/home/.../linux-firmware/i915# apt install initramfs-tools\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\ninitramfs-tools is already the newest version (0.133).\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\n
Run Code Online (Sandbox Code Playgroud)\n
\n

好的,再次用 google 搜索,找到了带有 live-update-initramfs 的 live-tools 包。然而,现在其他失败了。

\n
root@pc:/home/stefan/Downloads/intel-firmware/linux-firmware/i915# apt install live-tools\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nSuggested packages:\n  debian-installer-launcher rsync uuid-runtime\nThe following NEW packages will be installed:\n  live-tools\n0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 31.1 kB of archives.\nAfter this operation, 109 kB of additional disk space will be used.\nGet:1 http://deb.debian.org/debian buster/main amd64 live-tools all 1:20171207 [31.1 kB]\nFetched 31.1 kB in 0s (91.4 kB/s)   \nSelecting previously unselected package live-tools.\n(Reading database ... 160376 files and directories currently installed.)\nPreparing to unpack .../live-tools_1%3a20171207_all.deb ...\nUnpacking live-tools (1:20171207) ...\nSetting up live-tools (1:20171207) ...\nCreated symlink /etc/systemd/system/multi-user.target.wants/live-tools.service \xe2\x86\x92 /lib/systemd/system/live-tools.service.\nupdate-rc.d: warning: start and stop actions are no longer supported; falling back to defaults\nupdate-rc.d: warning: start runlevel arguments (none) do not match live-tools Default-Start values (S)\nProcessing triggers for man-db (2.8.5-2) ...\nProcessing triggers for systemd (241-5) ...\nroot@pd:/home/stefan/Downloads/intel-firmware/linux-firmware/i915# live-update-initramfs -u\nupdate-initramfs: Generating /boot/initrd.img-4.19.0-5-amd64\n/usr/sbin/update-initramfs.orig.initramfs-tools: 157: /usr/sbin/update-initramfs.orig.initramfs-tools: mkinitramfs: not found\nupdate-initramfs: failed for /boot/initrd.img-4.19.0-5-amd64 with 127.\n
Run Code Online (Sandbox Code Playgroud)\n

Ste*_*ann 5

在 sbin 中找到 update-initramfs。我不明白为什么它不在我的根路径中。然而,

# sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.19.0-5-amd64
Run Code Online (Sandbox Code Playgroud)

完成了工作。

  • 如果您使用“su”成为 root,您可能想知道虽然 Debian 9 有来自“shadow”源代码包的“su”命令,但 Debian 10 使用来自“util-linux”的“su”版本,它以不同的方式对待环境变量。请参阅 [Debian bug #905409](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905409) 进行广泛的讨论。 (4认同)