Results 1 to 8 of 8

Thread: Nvidia Installation problems

  1. #1
    Join Date
    2019-Apr
    Posts
    4

    Nvidia Installation problems

    I would be very grateful if someone could advise? I have struggled for many-a-day trying to figure out how to correctly install drivers for Nvidia on Kali Linux. I followed the guide on Kali site only to discover that it apparently does not work? I am getting mixed information from all over the place and have made no progress. I am using desktop with 1080ti. Please see build and info below:

    No LSB modules are available.
    Distributor ID: Kali
    Description: Kali GNU/Linux Rolling
    Release: 2019.1
    Codename: n/a

    Linux kali 4.19.0-kali3-amd64 #1 SMP Debian 4.19.20-1kali1 (2019-02-14) x86_64 GNU/Linux




    root@kali:~# lspci -v
    00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
    Subsystem: ASUSTeK Computer Inc. 8th Gen Core Processor Host Bridge/DRAM Registers
    Flags: bus master, fast devsel, latency 0
    Capabilities: [e0] Vendor Specific Information: Len=10 <?>
    Kernel driver in use: skl_uncore

    00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    I/O behind bridge: 0000e000-0000efff
    Memory behind bridge: de000000-df0fffff
    Prefetchable memory behind bridge: 00000000c0000000-00000000d1ffffff
    Capabilities: [88] Subsystem: ASUSTeK Computer Inc. Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)
    Capabilities: [80] Power Management version 3
    Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
    Capabilities: [a0] Express Root Port (Slot+), MSI 00
    Capabilities: [100] Virtual Channel
    Capabilities: [140] Root Complex Link
    Capabilities: [d94] #19
    Kernel driver in use: pcieport

    00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller (prog-if 30 [XHCI])
    Subsystem: ASUSTeK Computer Inc. 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
    Flags: bus master, medium devsel, latency 0, IRQ 125
    Memory at df430000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: [70] Power Management version 2
    Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci

    00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI
    Subsystem: ASUSTeK Computer Inc. 200 Series PCH CSME HECI
    Flags: bus master, fast devsel, latency 0, IRQ 143
    Memory at df44d000 (64-bit, non-prefetchable) [size=4K]
    Capabilities: [50] Power Management version 3
    Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: mei_me
    Kernel modules: mei_me

    00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode] (prog-if 01 [AHCI 1.0])
    Subsystem: ASUSTeK Computer Inc. 200 Series PCH SATA controller [AHCI mode]
    Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 124
    Memory at df448000 (32-bit, non-prefetchable) [size=8K]
    Memory at df44c000 (32-bit, non-prefetchable) [size=256]
    I/O ports at f050 [size=8]
    I/O ports at f040 [size=4]
    I/O ports at f020 [size=32]
    Memory at df44b000 (32-bit, non-prefetchable) [size=2K]
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [70] Power Management version 3
    Capabilities: [a8] SATA HBA v1.0
    Kernel driver in use: ahci
    Kernel modules: ahci

    00:1b.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port (rev f0) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
    I/O behind bridge: 00002000-00002fff
    Memory behind bridge: 90000000-901fffff
    Prefetchable memory behind bridge: 0000000090200000-00000000903fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: ASUSTeK Computer Inc. 200 Series PCH PCI Express Root Port
    Capabilities: [a0] Power Management version 3
    Kernel driver in use: pcieport

    00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port (rev f0) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
    I/O behind bridge: 00003000-00003fff
    Memory behind bridge: 90400000-905fffff
    Prefetchable memory behind bridge: 0000000090600000-00000000907fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: ASUSTeK Computer Inc. 200 Series PCH PCI Express Root Port
    Capabilities: [a0] Power Management version 3
    Kernel driver in use: pcieport

    00:1c.1 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port (rev f0) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 120
    Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
    I/O behind bridge: 0000d000-0000dfff
    Memory behind bridge: df300000-df3fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: ASUSTeK Computer Inc. 200 Series PCH PCI Express Root Port
    Capabilities: [a0] Power Management version 3
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Access Control Services
    Capabilities: [220] #19
    Kernel driver in use: pcieport

    00:1c.4 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port (rev f0) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 121
    Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
    Memory behind bridge: df200000-df2fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: ASUSTeK Computer Inc. 200 Series PCH PCI Express Root Port
    Capabilities: [a0] Power Management version 3
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Access Control Services
    Capabilities: [220] #19
    Kernel driver in use: pcieport

    00:1c.6 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port (rev f0) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 122
    Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
    Memory behind bridge: df100000-df1fffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: ASUSTeK Computer Inc. 200 Series PCH PCI Express Root Port
    Capabilities: [a0] Power Management version 3
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Access Control Services
    Capabilities: [220] #19
    Kernel driver in use: pcieport

    00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port (rev f0) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
    I/O behind bridge: 00004000-00004fff
    Memory behind bridge: 90800000-909fffff
    Prefetchable memory behind bridge: 0000000090a00000-0000000090bfffff
    Capabilities: [40] Express Root Port (Slot+), MSI 00
    Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
    Capabilities: [90] Subsystem: ASUSTeK Computer Inc. 200 Series PCH PCI Express Root Port
    Capabilities: [a0] Power Management version 3
    Kernel driver in use: pcieport

    00:1f.0 ISA bridge: Intel Corporation Z370 Chipset LPC/eSPI Controller
    Subsystem: ASUSTeK Computer Inc. Z370 Chipset LPC/eSPI Controller
    Flags: bus master, medium devsel, latency 0

    00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
    Subsystem: ASUSTeK Computer Inc. 200 Series/Z370 Chipset Family Power Management Controller
    Flags: bus master, fast devsel, latency 0
    Memory at df444000 (32-bit, non-prefetchable) [size=16K]

    00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
    Subsystem: ASUSTeK Computer Inc. 200 Series PCH HD Audio
    Flags: bus master, fast devsel, latency 32, IRQ 144
    Memory at df440000 (64-bit, non-prefetchable) [size=16K]
    Memory at df420000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: [50] Power Management version 3
    Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

    00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
    Subsystem: ASUSTeK Computer Inc. 200 Series/Z370 Chipset Family SMBus Controller
    Flags: medium devsel, IRQ 16
    Memory at df44a000 (64-bit, non-prefetchable) [size=256]
    I/O ports at f000 [size=32]
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801

    00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V
    Subsystem: ASUSTeK Computer Inc. Ethernet Connection (2) I219-V
    Flags: bus master, fast devsel, latency 0, IRQ 123
    Memory at df400000 (32-bit, non-prefetchable) [size=128K]
    Capabilities: [c8] Power Management version 3
    Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [e0] PCI Advanced Features
    Kernel driver in use: e1000e
    Kernel modules: e1000e

    01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti]
    Flags: bus master, fast devsel, latency 0, IRQ 126
    Memory at de000000 (32-bit, non-prefetchable) [size=16M]
    Memory at c0000000 (64-bit, prefetchable) [size=256M]
    Memory at d0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at e000 [size=128]
    Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Legacy Endpoint, MSI 00
    Capabilities: [100] Virtual Channel
    Capabilities: [250] Latency Tolerance Reporting
    Capabilities: [128] Power Budgeting <?>
    Capabilities: [420] Advanced Error Reporting
    Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
    Capabilities: [900] #19
    Kernel driver in use: nouveau
    Kernel modules: nvidia

    01:00.1 Audio device: NVIDIA Corporation GP102 HDMI Audio Controller (rev a1)
    Subsystem: NVIDIA Corporation GP102 HDMI Audio Controller
    Flags: bus master, fast devsel, latency 0, IRQ 17
    Memory at df080000 (32-bit, non-prefetchable) [size=16K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

    04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
    Subsystem: ASUSTeK Computer Inc. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
    Flags: bus master, fast devsel, latency 0, IRQ 145
    I/O ports at d000 [size=256]
    Memory at df300000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: [70] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [148] Device Serial Number 00-e0-4c-ff-fe-b8-22-01
    Capabilities: [158] Latency Tolerance Reporting
    Capabilities: [160] L1 PM Substates
    Kernel driver in use: r8822be
    Kernel modules: r8822be

    05:00.0 USB controller: ASMedia Technology Inc. ASM2142 USB 3.1 Host Controller (prog-if 30 [XHCI])
    Subsystem: ASUSTeK Computer Inc. ASM2142 USB 3.1 Host Controller
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at df200000 (64-bit, non-prefetchable) [size=32K]
    Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
    Capabilities: [68] MSI-X: Enable+ Count=8 Masked-
    Capabilities: [78] Power Management version 3
    Capabilities: [80] Express Legacy Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [200] #19
    Capabilities: [300] Latency Tolerance Reporting
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci

    06:00.0 USB controller: ASMedia Technology Inc. ASM2142 USB 3.1 Host Controller (prog-if 30 [XHCI])
    Subsystem: ASUSTeK Computer Inc. ASM2142 USB 3.1 Host Controller
    Flags: bus master, fast devsel, latency 0, IRQ 18
    Memory at df100000 (64-bit, non-prefetchable) [size=32K]
    Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
    Capabilities: [68] MSI-X: Enable+ Count=8 Masked-
    Capabilities: [78] Power Management version 3
    Capabilities: [80] Express Legacy Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [200] #19
    Capabilities: [300] Latency Tolerance Reporting
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    So, what does not work in the guide?

    Generic debugging stuff:
    - What error did you get
    - What were you doing that lead to the error?
    - What results are you expecting instead of the error?

    Also, as an advice, always update to latest kernel (then reboot) before installing a driver: apt update && apt dist-upgrade (FYI, dist-upgrade does more than upgrade). The kernel you're running is not the latest

  3. #3
    Join Date
    2019-Apr
    Posts
    4
    Thank you for your feedback Mister_X. Yes you were quite right, I forgot dist-upgrade but have done since you reminded me. Here are the results:

    Following the guide: apt install -y ocl-icd-libopencl1 nvidia-driver nvidia-cuda-toolkit
    The last line reads: I: update-initramfs is disabled (live system is running without media mounted on /lib/live/mount/medium).
    I then: nvidia-smi
    And the return message is: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
    I then went to Nvidia and downloaded: NVIDIA-Linux-x86_64-418.56.run but I have not attempted this install because I am unsure if this is the right proceedure following much mixed advice? Not from here I should add.

  4. #4
    Join Date
    2016-Dec
    Posts
    806
    you need to show the full log. The last line is pretty much useless.

    Since you said driver installation failed, there is just no point in running nvidia-smi.

    You would need to cleanup the failed installation (removing packages) if you wanted to install fro the nvidia stuff.

  5. #5
    Join Date
    2019-Apr
    Posts
    4
    Thank you. I started the process of Nvidia installation again last night but then I ended up with a hang on boot: IPv6: ADDRCONF (NETDEV_UP): wlan0: link is not ready. I thought I solved this but then ended up with another hang on boot: IPv6: ADDRCONF (NETDEV_CHANGE): eth0: link becomes ready.
    Today I have formatted the usb, reinstalled Kali, working on persistence then will try the whole process again after I "apt update && apt dist-upgrade", remembering not to forget. I think prior to attempting the Nvidia install I should remove all packages that are associated with Nvidia? Will update as I go along, but thanks for the advice it is very much needed.

  6. #6
    Join Date
    2016-Dec
    Posts
    806
    That error message has nothing to do with nvidia and it's not really a problem at all.

    You can't really update the kernel (you can but it's a pretty involved process) on a persistence, so you probably want to download the current weekly ISO and install it on there.

  7. #7
    Join Date
    2019-Apr
    Posts
    4
    Right Mr_X, I can now categorically confirm without any hesitation, that the procedure to install Nvidia on Kali is 100% CORRECT. What I am also confident to say is that it was me and my insistence on proceeding to install Nvidia via persistence. I think I will continue to try and figure things out with Nvidia and persistence, but for the time being I will leave that to the experts.
    What I did, I re-installed Kali, removed all instances of Nvidia, updated the system then (as you kindly reminded me) dist upgrade then followed word for word on the Kali site. Bingo! So from my repeated failure, then searching the web with so many saying its "broken" or "doesn't work", now reminds me to go straight to the source and continue. Pity you are not in the UK Mr.X you could have popped around and saved me the headaches. Thanks for your support.

  8. #8
    Join Date
    2016-Dec
    Location
    Canada
    Posts
    326
    Community generated how-to section is also very helpful

    https://forums.kali.org/showthread.p...Optimus-laptop

Similar Threads

  1. Alder lake and nvidia problems
    By x4pickuptruck in forum Installing Archive
    Replies: 1
    Last Post: 2022-08-13, 15:12
  2. Alder lake and nvidia problems
    By x4pickuptruck in forum Installing Archive
    Replies: 0
    Last Post: 2022-05-15, 16:04
  3. Nvidia problems
    By Dr GroF in forum General Archive
    Replies: 2
    Last Post: 2020-09-10, 20:29
  4. Nvidia driver problems
    By Nemon in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2018-05-22, 06:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •