nvtop icon indicating copy to clipboard operation
nvtop copied to clipboard

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

Open XuCpeng opened this issue 6 years ago • 42 comments

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.

XuCpeng avatar Nov 26 '19 01:11 XuCpeng

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.

Syllo avatar Nov 26 '19 10:11 Syllo

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

eliorc avatar Dec 14 '20 11:12 eliorc

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.

RalfBendzko avatar Dec 14 '20 18:12 RalfBendzko

Have the same problem and my driver version is 455 too

MorozovVasily avatar Dec 24 '20 21:12 MorozovVasily

Same issue here. Ubuntu 20.04.1, Driver Version: 455.38

mfrr avatar Dec 29 '20 16:12 mfrr

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.

keturn avatar Dec 29 '20 19:12 keturn

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"

BugQualia avatar Jan 13 '21 17:01 BugQualia

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

ptynecki avatar Feb 05 '21 10:02 ptynecki

Confirming with 460 also, 1070 Ti

maxenko avatar Feb 22 '21 01:02 maxenko

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

DnzJS avatar Mar 16 '21 04:03 DnzJS

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.

johnpeterflynn avatar Mar 17 '21 17:03 johnpeterflynn

Same issue.

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

thejvguru avatar Mar 24 '21 04:03 thejvguru

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.

amjack100 avatar Apr 10 '21 16:04 amjack100

Confirmed! Ubuntu 20.04 + drivers 465

folkien avatar May 10 '21 12:05 folkien

Issue persists as well.

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

AFAgarap avatar May 23 '21 19:05 AFAgarap

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 avatar May 25 '21 12:05 Syllo

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™.

Syllo avatar Jul 24 '21 15:07 Syllo

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.

BloodyIron avatar Aug 28 '21 00:08 BloodyIron

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

Demetrio92 avatar Aug 28 '21 17:08 Demetrio92

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

alexmyczko avatar Sep 22 '21 12:09 alexmyczko

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

BloodyIron avatar Sep 25 '21 17:09 BloodyIron

@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.

alexmyczko avatar Sep 25 '21 18:09 alexmyczko

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?

Syllo avatar Sep 28 '21 16:09 Syllo

@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!

Demetrio92 avatar Sep 28 '21 19:09 Demetrio92

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.

Syllo avatar Sep 29 '21 10:09 Syllo

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

Demetrio92 avatar Sep 29 '21 14:09 Demetrio92

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)

BloodyIron avatar Oct 26 '21 20:10 BloodyIron

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

ChaosBlades avatar Nov 18 '21 03:11 ChaosBlades

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.

branrickman avatar Dec 07 '21 03:12 branrickman

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

RTX 3090, Ubuntu 20.04, Driver version 495.46

dlangerm avatar Jan 27 '22 14:01 dlangerm