CUDA problem after auto update package

My system (Ububty 18) was applied automatic updates and now there are error message at console:

sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of cuda-visual-tools-10-1:
 cuda-visual-tools-10-1 depends on libcublas-dev (>= 10.1.0.105); however:
  Package libcublas-dev is not installed.

dpkg: error processing package cuda-visual-tools-10-1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-libraries-dev-10-1:
 cuda-libraries-dev-10-1 depends on libcublas-dev (>= 10.1.0.105); however:
  Package libcublas-dev is not installed.

dpkg: error processing package cuda-libraries-dev-10-1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-tools-10-1:
 cuda-tools-10-1 depends on cuda-visual-tools-10-1 (>= 10.1.105); however:
  Package cuda-visual-tools-10-1 is not configured yet.

dpkg: error processing package cuda-tools-10-1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-toolkit-10-1:
 cuda-toolkit-10-1 depends on cuda-tools-10-1 (>= 10.1.105); however:
  Package cuda-tools-10-1 is not configured yet.
 cuda-toolkit-10-1 depends on cuda-libraries-dev-10-1 (>= 10.1.105); however:
  Package cuda-libraries-dev-10-1 is not configured yet.

dpkg: error processing package cuda-toolkit-10-1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-samples-10-1:
 cuda-samples-10-1 depends on libcublas-dev (>= 10.1.0.105); however:
  Package libcublas-dev is not installed.

dpkg: error processing package cuda-samples-10-1 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-documentation-10-1:
 cuda-documentation-10-1 depends on cuda-samples-10-1; however:
  Package cuda-samples-10-1 is not configured yet.

dpkg: error processing package cuda-documentation-10-1 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 cuda-visual-tools-10-1
 cuda-libraries-dev-10-1
 cuda-tools-10-1
 cuda-toolkit-10-1
 cuda-samples-10-1
 cuda-documentation-10-1

How can I fix it?

Same issue here.

$ sudo apt-get install cuda
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:
 cuda : Depends: cuda-10-1 (>= 10.1.105) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Are you able to remove/purge cuda-related packages from your system and give a try to the bin installer provided by NVidia?

@saulocpp
Yes, I’m tryed make

sudo apt-get autoremove --purge cuda

but the same error

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-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
 cuda-samples-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
 cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

if make

sudo apt --fix-broken install

I get

dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Try this:

sudo apt-get remove libcublas-dev

If it succeeds, then remove the other cuda packages.
autoremove will just remove packaged that were once installed as dependency to other packages but are no longer needed.

See if goes.

I am using ubuntu 18.04 , python3.6 and tensorflow 1.9, after updating [sudo apt-get update] I have problem with my cuda drivers specificly I get this error:

could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED
possibly insufficient driver version: 410.104.0

any ideas how to fix this?

Saulocpp Eror after

sudo apt-get remove libcublas-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'libcublas-dev' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 cuda-libraries-dev-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
 cuda-samples-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
 cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
1 Like

Ok, the package is actually NOT installed, so what I suggested would never work.
Use synaptic instead of apt as it is easier to see what is installed or not. Search for libcublas and mark for installation.

Remember that this is just Linux package management and not really a problem specific to CUDA. NVidia has no say on how a distro packs their stuff. That’s why it is always easier to use the package/executable provided in:

[url]https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu[/url]

Good luck.

I found this, after all, to work for me :

-from software & updates > Additional Drivers > choose nvidia-418(downloads and install it)

    reboot PC

As result got upgraded to cuda-10.1 (from 10.0). It works for now !

soylis.k thanks a lot!! It works for me!

Anyone can fix it on ubuntu 18.04 server?

I had a similar problem when trying to update my cuda drivers in ubuntu. I was able to boot into recovery mode and update/get the missing packages from there using dpkg. Hope that helps someone.