package nvidia-cuda-dev (not installed) failed to install/upgrade: trying to overwrite '/usr/include/cublas.h', which is also in package libcublas-dev 10.2.1.243-1

Bug #1846530 reported by Alexander Slesarev
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nvidia-cuda-toolkit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When I tried to install nvidia cuda using 'sudo apt install nvidia-cuda-toolkit' I got error

'Unpacking nvidia-cuda-dev (9.1.85-3ubuntu1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-yfgAsd/31-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.1.243-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)'

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: nvidia-cuda-dev (not installed)
ProcVersionSignature: Ubuntu 5.0.0-27.28~18.04.1-generic 5.0.21
Uname: Linux 5.0.0-27-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
Date: Thu Oct 3 19:59:18 2019
ErrorMessage: trying to overwrite '/usr/include/cublas.h', which is also in package libcublas-dev 10.2.1.243-1
InstallationDate: Installed on 2019-08-17 (47 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
Python3Details: /usr/bin/python3.6, Python 3.6.8, python3-minimal, 3.6.7-1~18.04
PythonDetails: /usr/bin/python2.7, Python 2.7.15+, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2.2
 apt 1.6.11
SourcePackage: nvidia-cuda-toolkit
Title: package nvidia-cuda-dev (not installed) failed to install/upgrade: trying to overwrite '/usr/include/cublas.h', which is also in package libcublas-dev 10.2.1.243-1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alexander Slesarev (alexander-slesarev) wrote :
Revision history for this message
Graham Inggs (ginggs) wrote :

It looks like you have installed a libcublas-dev package which is not in the Ubuntu archive, and this package does not correctly declare its relation to packages in the Ubuntu archive.

Please remove the libcublas-dev package and try installing nvidia-cuda-toolkit again.

Changed in nvidia-cuda-toolkit (Ubuntu):
status: New → Invalid
Revision history for this message
Q. Haas (qhaas) wrote :

Getting the same error here on a Kepler era GPU in Ubuntu 18.04.3 when deploying CUDA 10.2. I did a fresh install of the OS, followed the network deployment here:
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=debnetwork

Still got the following when installing 'nvidia-cuda-toolkit'
```
Unpacking nvidia-cuda-dev (9.1.85-3ubuntu1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-WHtitL/233-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.89-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-WHtitL/233-nvidia-cuda-dev_9.1.85-3ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

Revision history for this message
Q. Haas (qhaas) wrote :

Looks like 'nvidia-cuda-toolkit' isn't needed, only 'cuda'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.