Syllo / nvtop

GPU & Accelerator process monitoring for AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm
Other
8.18k stars 292 forks source link

[Ubuntu < 22.04] apt install nvtop breaks / requires another nvidia driver #51

Open XuCpeng opened 4 years ago

XuCpeng commented 4 years ago

Ubuntu 19.10 After I upgraded the Nvidia driver to 440, I can no longer use nvtop and can't install it. Is there any solution other than downgrading the driver?

(base) admin01@admin01-ubuntu:~$ sudo apt install nvtop
[sudo] password for admin01: 
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.
Syllo commented 4 years ago

Hello, This is a dependency added by the ubuntu team. There is a bug report opened for ubuntu (bug 1835630) to relax this dependency, but this has not yet been addressed apparently.

eliorc commented 3 years ago

Confirming, this issue also exists on Ubuntu 20.04, driver version 455.38

RalfBendzko commented 3 years ago

Confirming, this issue also exists on Ubuntu 20.04, driver version 455.38

Agree, I have the same issue on Ubuntu 20.04, driver version 455.38.

MorozovVasily commented 3 years ago

Have the same problem and my driver version is 455 too

mfrr commented 3 years ago

Same issue here. Ubuntu 20.04.1, Driver Version: 455.38

keturn commented 3 years ago

Fellow Ubuntu users: Please log in to launchpad and click the "Does this bug affect you?" link near the top on Ubuntu#1835630.

As this bug is specific to the Ubuntu packaging, Launchpad is the place where its package maintainers will track it, not here on GitHub.

BugQualia commented 3 years ago

Same problem here with 460.32.03 driver on ubuntu 20.04.1 with 3090 gpu. However, You can install nvtop other way around. go to https://github.com/Syllo/nvtop and follow the instructions in "Distribution Specific Installation Process" -> "older"

ptynecki commented 3 years ago

Same issue here. Ubuntu 20.04.2, Driver Version: 460.32.03, CUDA 11.2 with 3090 gpu.

maxenko commented 3 years ago

Confirming with 460 also, 1070 Ti

DnzJS commented 3 years ago

Same issue. Driver version:460.39. CUDA Ver. 11.2 with GTX970

johnpeterflynn commented 3 years ago

Same issue. Driver version:460.39. CUDA Ver. 11.2 with GTX970

Same here. Using Driver Version: 460.32.03, CUDA version 11.2 with GeForce GTX 1080 Ti on Ubuntu 20.04.

thejvguru commented 3 years ago

Same issue.

Driver version: 460.67 CUDA version: 11.2 GPU: GeForce RTX 2060

amjack100 commented 3 years ago

Same.

Driver version: 460.67 CUDA version: 11.2 GPU: GeForce RTX 3070 Ubuntu 20.04

Also note: this dependency caused aptitude pm tool to uninstall all my currently installed correct nvidia drivers.

folkien commented 3 years ago

Confirmed! Ubuntu 20.04 + drivers 465

AFAgarap commented 3 years ago

Issue persists as well.

Ubuntu 20.04 GTX 960M Nvidia driver 450.119.04 CUDA v11.1

Syllo commented 3 years ago

Yes, the Ubuntu packagers did not fix it yet. I don't know what takes them so long.

With the recent changes to how NVML is handled, the libnvidia-ml is not linked at compile time anymore. This change should hopefully remove all dependencies related to the nvidia driver and fix the Ubuntu package at the same time.

So as soon as I create a new release, push it into Debian, and Ubuntu pulls the update, this problem should be fixed.

Syllo commented 3 years ago

Update on this issue: waiting on the Debian maintainer to push the update to Debian testing. I believe that after the introduction into testing, the Ubuntu part is mostly automated so the fix should hopefully arrive soon™.

BloodyIron commented 3 years ago

So August 27th, and... just upgraded to nVidia-470, broke ntop for me. On Ubuntu 20.04.3.

Any chance we can just get a repo/PPA for this to side-step Canonical's package pipeline here or something? Or what's going on here? nvtop is mad useful for resource monitoring during my workflow and such.

Demetrio92 commented 3 years ago

Exactly, we need a separate repository. I don't want to build it from source every time the driver is upgraded

alexmyczko commented 3 years ago

the same problem exists if you use nvidia.com repos with ubuntu, thus i use this little helper:

#!/bin/bash
# due to the nature of this software, it will get built into a binary deb package
# then installed, and marked hold
#
# in case later versions of nvtop are needed update them at the src package repo
# used in this installer

dkms status | grep nvidia || (
    echo no nvidia drivers found
    exit 1
)

# check if called binaries are available
for a in dget dpkg-source debuild dpkg apt-mark; do
    hash $a >/dev/null
    if [ ! $? -eq 0 ]; then
        echo $a not found
        exit 1
    fi
done

cd /usr/src/
dget http://sid.ethz.ch/debian/nvtop/nvtop_1.2.1-0.1.dsc
dpkg-source -x nvtop_*1.2.1*.dsc
cd nvtop-*1.2.1*/
debuild
cd ..
dpkg -i nvtop*1.2.1*.deb
apt-mark hold nvtop
BloodyIron commented 3 years ago

Repackaging/rebuilding defeats the whole point of a package repo...

alexmyczko commented 3 years ago

@BloodyIron then show me the binary that works with all nvidia binary drivers...

linux kernel modules with -dkms are also built at install time. and i also have a bunch of #!/usr/bin/tcc -run scripts with interpreted C. nothing wrong with that.

Syllo commented 3 years ago

Good news, the latest version entered debian testing after a delay due to the release of the latest debian stable.

I am not familiar with the process of getting the update to reach ubuntu, and cannot find any information on that with a simple search. So my guess is wait and see?

Demetrio92 commented 3 years ago

@Syllo the question is, will the next driver update break it again? And will they ever be in sync?

I don't know how much hassle that is, but is there a way to set a separate build target "Ubuntu" (if it's even any different) and host it on a specialized PPA?

I any case, thanks for the great tool you're developing and maintaining!

Syllo commented 3 years ago

The package dropped the dependency to the nvidia driver (see the debian package page) starting with this version. Hence, there shouldn't be any issues with the ubuntu package being pinned to a specific driver version anymore.

Demetrio92 commented 3 years ago

Great news indeed! So now we just wait till it makes it into the ubuntu repositories

BloodyIron commented 3 years ago

I'm on Ubuntu 20.04.3 and my repos are still serving 1.0.0 :( any ideas on what options there are? (besides compiling or packaging myself)

ChaosBlades commented 2 years ago

I am now able to install nvtop via sudo apt install nvtop but I am now getting the below error when I try to run nvtop

Impossible to initialize nvidia nvml : Driver/library version mismatch

branrickman commented 2 years ago

Just attempted install with sudo apt install nvtop.

Output:

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.

This is obviously a known issue, so just posting on the off chance that it helps someone.

dlangerm commented 2 years ago

Not to pile on here but I'm also still getting this bug. :(

RTX 3090, Ubuntu 20.04, Driver version 495.46

matteo-pennisi commented 2 years ago

same here, driver version 470.57.02

ColonelBuendia commented 2 years ago

Downloaded the deb, unpacked it, dropped it in path, wors fine for me on Ubuntu 20.

dlangerm commented 2 years ago

yes this linked deb worked for me, not sure why apt isn't installing that version

AnubhavSrivastavaImerit commented 2 years ago

Using driver version : 470 with cuda 11.4. Nvtop required 418 for the apt package Directly build using instruction for older version installation on official repo and follow the instructions in "Distribution Specific Installation Process" -> "older"

johnnynunez commented 2 years ago

I installed it with compiling nvtop and works fine with 510.60.02 3090 FE

Jefferson-Lopes commented 2 years ago

I'm still getting the same problem

pop-os: 20.04 LTS GTX 1650 driver nvidia 510.54

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.
Syllo commented 2 years ago

@Jefferson-Lopes For Ubuntu < 22.04 and derivatives, or for AMD support, please follow the manual install.

rainbof commented 1 year ago
sudo add-apt-repository ppa:flexiondotorg/nvtop
sudo apt install nvtop
JoDongWoon commented 1 year ago
sudo add-apt-repository ppa:flexiondotorg/nvtop
sudo apt install nvtop

thank you! I solved it using this method RTX 4070, Ubuntu 20.04, Driver version 535.86.05

Zerohertz commented 1 year ago

I used this code.

sudo apt-get install libncurses5-dev libncursesw5-dev -y
sudo apt-get install libudev-dev libsystemd-dev -y
sudo apt-get install libdrm-dev -y

rm -rf nvtop
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

sudo make install
cd ../..
rm -rf nvtop
qwertychouskie commented 10 months ago

This bug is fixed in Ubuntu 22.04 and above, and unlikely to be fixed upstream in 20.04. This issue should probably be closed.

ruiw0w commented 9 months ago
sudo add-apt-repository ppa:flexiondotorg/nvtop
sudo apt install nvtop

感谢!已解决!Ubuntu20.04,显卡驱动版本:525.147.05