Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 9797  / 2 Years ago, sat, september 17, 2022, 4:26:41

I am following the procedure given here :
http://www.r-tutor.com/gpu-computing/cuda-installation/cuda6.5-ubuntu



However, after I do sudo apt-get install cuda I get the following message:



You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-drivers : Depends: nvidia-opencl-icd-346 (>= 346.46) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).




After I enter sudo apt-get -f install I get the following message:



Preparing to unpack .../nvidia-opencl-icd-346_346.46-0ubuntu1_amd64.deb ...
Unpacking nvidia-opencl-icd-346 (346.46-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-opencl-icd-346_346.46-0ubuntu1_amd64.deb (--unpack):
trying to overwrite '/etc/OpenCL/vendors/nvidia.icd', which is also in package nvidia-opencl-icd-331 331.113-0ubuntu0.0.4
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-opencl-icd-346_346.46-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


http://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html#axzz3VF4pSfRr
ask to remove the package.



How to do this ?



p.s. sudo apt-get install cuda-runtime-7-0 gives the same error.


More From » apt

 Answers
3

I managed to get it working after running the following commands:



sudo apt-get clean  
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get install -f

[#20735] Monday, September 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dileble

Total Points: 169
Total Questions: 105
Total Answers: 141

Location: Sao Tome and Principe
Member since Wed, Dec 29, 2021
2 Years ago
;