Closed iso-lib closed 2 months ago
/dev/fd/63: line 585: dkms: command not found
看了下 Debian 上的 dkms
装好之后在 /usr/sbin/dkms
, 能发一下下面这三个命令的输出吗?
type dkms
echo $PATH
dpkg-query -L dkms
/dev/fd/63: line 585: dkms: command not found
看了下 Debian 上的
dkms
装好之后在/usr/sbin/dkms
, 能发一下下面这三个命令的输出吗?type dkms echo $PATH dpkg-query -L dkms
你可以试试看像下面这样将 /usr/sbin
临时加回 PATH
中, 然后重新执行安装脚本。
export PATH="/usr/sbin:$PATH"
bash <(curl -fsSL https://tcp.hy2.sh/)
在你的系统上, root 用户的 PATH 是 Debian 中普通用户的 PATH, 这些东西在 /etc/profile
定义
if [ "$(id -u)" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH
我没见过什么通用的方式能导致这类问题。
或许你可以试试将 export PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
加到你的 ~/.bashrc
文件的底部, 以尝试持久地解决这类问题。
你可以试试看像下面这样将
/usr/sbin
临时加回PATH
中, 然后重新执行安装脚本。export PATH="/usr/sbin:$PATH" bash <(curl -fsSL https://tcp.hy2.sh/)
在你的系统上, root 用户的 PATH 是 Debian 中普通用户的 PATH, 这些东西在
/etc/profile
定义if [ "$(id -u)" -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" else PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" fi export PATH
我没见过什么通用的方式能导致这类问题。 或许你可以试试将
export PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
加到你的~/.bashrc
文件的底部, 以尝试持久地解决这类问题。
谢谢,确实如此,是环境变量里面的路径问题,已经顺利安装上了
debian12 内核:6.7.9-bbrplus