Libglew-dev installation error

Hi, am facing some issue while installing the following package. libglew-dev. Getting error like below when I ran command ‘sudo apt-get install libglew-dev’,
Reading package lists…done
Building dependency tree
Reading state information …Done
You might want to run apt --fix-broken install to correct these
The following packages have unmet dependencies
libglew-dev: depends libglew2.0(=2.0.0-5) but it is not going to be installed
nvidia-cuda-tool-kit: depends : nvidia_cuda_dev (=9.1.85-3ubuntu1) but it is not going to be installed
E:Unmet dependencies Try ‘apt --fix-broken install’ with no packages(or specify a solution)

Could anyone please tell me what is going wrong here?

I have installed Drive Software10(rev2)
Drive OS 5.2.0 SDK

Dear @nithin.m1,
It indicates your host system is in unstable state. Please fix apt-get issues before flashing DRIVE SW. You may check running ‘sudo apt --fix-broken install’ as suggested in error log

Dear @SivaRamaKrishnaNV ,
I have tried that but am getting following error…

matlab@matlab:~$ sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
amd64-microcode intel-microcode iucode-tool lib32gcc1 libc6-i386
linux-generic-hwe-18.04 linux-headers-generic-hwe-18.04
linux-image-generic-hwe-18.04 thermald
Use ‘sudo apt autoremove’ to remove them.
The following additional packages will be installed:
nvidia-cuda-dev
Recommended packages:
libnvcuvid1
The following NEW packages will be installed:
nvidia-cuda-dev
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
45 not fully installed or removed.
Need to get 0 B/263 MB of archives.
After this operation, 734 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database … 250346 files and directories currently installed.)
Preparing to unpack …/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb …
Unpacking nvidia-cuda-dev (9.1.85-3ubuntu1) …
dpkg: error processing archive /var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb (–unpack):
trying to overwrite ‘/usr/include/cublas.h’, which is also in package libcublas-dev 10.2.2.3-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Dear @nithin.m1,
It looks like issue with multiple CUDA version libs present on host. Please remove other CUDA versions which are not required. If you have multiple DRIVE Releases, please check removing the not required release via sdkmanager to avoid these kind of issues.

Hi @nithin.m1 ,

Please see if removing libcublas-dev with below command helps.

sudo apt purge -y libcublas-dev

Hi @VickNV ,

Similar error am getting while running the command sudo apt purge -y libcublas-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
cuda-libraries-dev-10-2 : Depends: libcublas-dev (>= 10.2.2.3) but it is not going to be installed
cuda-samples-10-2 : Depends: libcublas-dev (>= 10.2.2.3) but it is not going to be installed
cuda-visual-tools-10-2 : Depends: libcublas-dev (>= 10.2.2.3) but it is not going to be installed
libnvinfer-dev : Depends: libcublas-dev but it is not going to be installed
nvidia-cuda-toolkit : Depends: nvidia-cuda-dev (= 9.1.85-3ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Dear @nithin.m1,
Have you checked removing DRIVE releases via sdkmanager and install the needed DRIVE release again and check. It looks you have multiple versions of CUDA toolkits on host which is causing the issue. Make sure you have only CUDA toolkit installed via sdkmanager.

Hi @SivaRamaKrishnaNV,

You were right. some how 9.1 version of CUDA was also there. I uninstalled that and now its fine Thanks alot.

1 Like