PDA

View Full Version : Unable to complete nvidia driver installation. "Unable to locate package libopencll"



M213
2017-03-28, 10:35
Kali mounted on USB. I boot into persistence.
Release 2016.2.

I cannot boot into the desktop for some weird reason it loses signal maybe something to do with the card so I boot into text mode. I follow the official documentation for Kali's installation of nvidia drivers and everything works well until I enter the command
"apt install -y ocl-icd-libopencl1 nvidia-driver nvidia-cuda-toolkit"
It returns an error telling me it is unable to locate the package.

New to Linux so I did whatever I could with research of my own to get through this but still I am stuck.

I can't do **** without this driver so I need help.


I can give info if needed just let me know what.

Regards.

tried all relevant commands to complete any upgrades or installs that were missing nothing.

M213
2017-03-29, 10:34
this error comes up even though ive went through all updates and upgrades including libraries and headers.

hausoo
2017-03-29, 20:38
Hello check your sources.list

deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
deb-src http://http.kali.org/kali kali-rolling main contrib non-free

:~# apt-get install -y ocl-icd-libopencl1 nvidia-driver nvidia-cuda-toolkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
ocl-icd-libopencl1 is already the newest version (2.2.11-1).
nvidia-cuda-toolkit is already the newest version (8.0.44-3).
nvidia-driver is already the newest version (375.39-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


:~# hashcat -I
hashcat (v3.40) starting...

OpenCL Info:

Platform ID #1
Vendor : NVIDIA Corporation
Name : NVIDIA CUDA
Version : OpenCL 1.2 CUDA 8.0.0

Device ID #1
Type : GPU
Vendor ID : 32
Vendor : NVIDIA Corporation
Name : GeForce GTX 1060 3GB
Version : OpenCL 1.2 CUDA
Processor(s) : 9
Clock : 1708
Memory : 753/3013 MB allocatable
OpenCL Version : OpenCL C 1.2
Driver Version : 375.39

M213
2017-03-30, 04:35
By uncomment i assume you mean remove?

_defalt
2017-03-30, 15:07
By uncomment i assume you mean remove?

Uncomment means putting #. It is basically removing. If you put # the kernel won't read that line and skip to next line.