Ubuntu安装nvtop报错nvtop : Depends: libnvidia-compute-418 but it is not going to be

721 阅读1分钟

开启掘金成长之旅!这是我参与「掘金日新计划 · 12 月更文挑战」的第3天,点击查看活动详情

Ubuntu安装nvtop报错nvtop : Depends: libnvidia-compute-418 but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

@amax:~$ sudo apt install nvtop [sudo] password for jiangnan: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: nvtop : Depends: libnvidia-compute-418 but it is not going to be installed E: Unable to correct problems, you have held broken packages.

给新服务器安装完驱动后安装nvtop报错

安装cmake

sudo apt install cmake libncurses5-dev libncursesw5-dev git -y

nvtop build

git clone https://github.com/Syllo/nvtop.git
mkdir -p nvtop/build && cd nvtop/build
cmake .. -DNVIDIA_SUPPORT=ON -DAMDGPU_SUPPORT=ON -DINTEL_SUPPORT=ON
make
​
# Install globally on the system
sudo make install

安装成功

执行nvtop

image-20221208112626060