Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
XuCpeng opened this issue Nov 26, 2019 · 42 comments
Open

Comments

@XuCpeng
Copy link

XuCpeng commented Nov 26, 2019

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
Copy link
Owner

Syllo commented Nov 26, 2019

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
Copy link

eliorc commented Dec 14, 2020

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

@RalfBendzko
Copy link

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
Copy link

Have the same problem and my driver version is 455 too

@mfrr
Copy link

mfrr commented Dec 29, 2020

Same issue here. Ubuntu 20.04.1, Driver Version: 455.38

@keturn
Copy link

keturn commented Dec 29, 2020

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
Copy link

BugQualia commented Jan 13, 2021

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
Copy link

ptynecki commented Feb 5, 2021

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

@maxenko
Copy link

maxenko commented Feb 22, 2021

Confirming with 460 also, 1070 Ti

@DnzJS
Copy link

DnzJS commented Mar 16, 2021

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

@johnpeterflynn
Copy link

johnpeterflynn commented Mar 17, 2021

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
Copy link

Same issue.

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

@amjack100
Copy link

amjack100 commented Apr 10, 2021

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
Copy link

folkien commented May 10, 2021

Confirmed! Ubuntu 20.04 + drivers 465

@AFAgarap
Copy link

Issue persists as well.

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

@Syllo
Copy link
Owner

Syllo commented May 25, 2021

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
Copy link
Owner

Syllo commented Jul 24, 2021

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
Copy link

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
Copy link

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

@alexmyczko
Copy link

alexmyczko commented Sep 22, 2021

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
Copy link

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

@alexmyczko
Copy link

alexmyczko commented Sep 25, 2021

@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
Copy link
Owner

Syllo commented Sep 28, 2021

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
Copy link

@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
Copy link
Owner

Syllo commented Sep 29, 2021

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
Copy link

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

@BloodyIron
Copy link

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
Copy link

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
Copy link

branrickman commented Dec 7, 2021

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.

tomdaley92 added a commit to Diesel-Net/ansible-role-ubuntu that referenced this issue Dec 18, 2021
@dlangerm
Copy link

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

RTX 3090, Ubuntu 20.04, Driver version 495.46

@matteo-pennisi
Copy link

same here, driver version 470.57.02

@ColonelBuendia
Copy link

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

@dlangerm
Copy link

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

@AnubhavSrivastavaImerit

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"

@Syllo Syllo changed the title nvtop : Depends: libnvidia-compute-418 but it is not going to be installed [Ubuntu < 22.04] apt install nvtop breaks / requires another nvidia driver Apr 18, 2022
@Syllo Syllo pinned this issue Apr 18, 2022
@johnnynunez
Copy link

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

@Jefferson-Lopes
Copy link

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
Copy link
Owner

Syllo commented Apr 21, 2022

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

@rainbof
Copy link

rainbof commented Mar 18, 2023

sudo add-apt-repository ppa:flexiondotorg/nvtop
sudo apt install nvtop

@JoDongWoon
Copy link

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
Copy link

Zerohertz commented Oct 4, 2023

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
Copy link
Contributor

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
Copy link

ruiw0w commented Jan 14, 2024

sudo add-apt-repository ppa:flexiondotorg/nvtop
sudo apt install nvtop

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests