Syllo / nvtop

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

nvtop : Depends: libnvidia-compute-418 but it is not going to be installed #133

Closed HimGautam closed 2 years ago

HimGautam commented 2 years ago

Can't install nvtop from sudo apt install nvtop.


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

Also tried using NVTOP Build but it also gave errors.

```(base) himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~$ conda deactivate 
himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~$ git clone https://github.com/Syllo/nvtop.git
Cloning into 'nvtop'...
remote: Enumerating objects: 942, done.
remote: Counting objects: 100% (412/412), done.
remote: Compressing objects: 100% (233/233), done.
remote: Total 942 (delta 267), reused 302 (delta 171), pack-reused 530
Receiving objects: 100% (942/942), 511.29 KiB | 1.03 MiB/s, done.
Resolving deltas: 100% (592/592), done.
himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~$ mkdir -p nvtop/build && cd nvtop/build
himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~/nvtop/build$ cmake ..
-- The C compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Setting build type to 'Release' as none was specified.
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindCurses.cmake:256 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:34 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/himanshu/nvtop/build/CMakeFiles/CMakeOutput.log".
himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~/nvtop/build$ make
make: *** No targets specified and no makefile found.  Stop.
himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~/nvtop/build$ 
himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~/nvtop/build$ # Install globally on the system
himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~/nvtop/build$ sudo make install
make: *** No rule to make target 'install'.  Stop.
himanshu@himanshu-Lenovo-Legion-Y540-15IRH-PG0:~/nvtop/build$ ```
ShadowMitia commented 2 years ago

There is already an issue for this here: https://github.com/Syllo/nvtop/issues/51 Installing the .deb directly worked for me.

Syllo commented 2 years ago

Thanks @ShadowMitia Please follow the manual installation for Ubuntu if you are on anything < Ubuntu 22.04. They have an extra dependency to the Nvidia driver that is not present on other distributions (e.g. Debian). Similar to https://github.com/Syllo/nvtop/issues/51

Mechazo11 commented 2 years ago

@ShadowMitia where is the location of the deb file that worked for you?

BinhPQ2 commented 1 year ago

@ShadowMitia where is the location of the deb file that worked for you?

wget http://ftp.jp.debian.org/debian/pool/contrib/n/nvtop/nvtop_1.2.2-1_amd64.deb
sudo apt install ./nvtop_1.2.2-1_amd64.deb

You can change the mirror link in the first line here: https://packages.debian.org/sid/amd64/nvtop/download