CUDA Toolkit v10.2.89: Unable to locate package linux-headers-$(uname -r)

As part of the CUDA ToolKit documentation for installing CUDA10.2
I am trying to install the kernel headers and I run into the following problem:

ubuntu@jetson4:~$ sudo apt-get install linux-headers-$(uname -r)
[sudo] password for ubuntu:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-headers-4.9.108-tegra
E: Couldn’t find any package by glob ‘linux-headers-4.9.108-tegra’
E: Couldn’t find any package by regex ‘linux-headers-4.9.108-tegra’
ubuntu@jetson4:~$ uname -r

you may find some information about headers in L4T Document
Jetpack 4.3 has /usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/ in place

Did not you get CUDA installed while you been flashing OS to Jetson?
Typically it is installed during the process managed by sdkmanager and there is no need to process it manually.

you are probably referring to the documentation for x86_64 which is not applicable to aarch64 Jetson device

On the Jetson3, the AGX to which I flashed Cuda using the SDK,
I am having a problem with a proprietary Makefile when I execute “make”, this is the output:

cuda-core-10-0 libavcodec-dev libavformat-dev libgtk2.0-dev libhdf5-dev libjpeg-turbo8-dev libswscale-dev

Do you have any idea why I cannot locate cuda-core-10-0?

Thanks

Esterina

Hi Esterina, is your makefile explicitly checking that the cuda-core-10-0 package is installed? I don’t think Jetson has that exact package, perhaps it was renamed. Here are the CUDA packages listed with ‘dpkg --list’ on my AGX Xavier with JetPack 4.3:

ii  cuda-command-line-tools-10-0  10.0.326-1          arm64               CUDA command-line tools
ii  cuda-compiler-10-0            10.0.326-1          arm64               CUDA compiler
ii  cuda-cublas-10-0              10.0.326-1          arm64               CUBLAS native runtime libraries
ii  cuda-cublas-dev-10-0          10.0.326-1          arm64               CUBLAS native dev links, headers
ii  cuda-cudart-10-0              10.0.326-1          arm64               CUDA Runtime native Libraries
ii  cuda-cudart-dev-10-0          10.0.326-1          arm64               CUDA Runtime native dev links, headers
ii  cuda-cufft-10-0               10.0.326-1          arm64               CUFFT native runtime libraries
ii  cuda-cufft-dev-10-0           10.0.326-1          arm64               CUFFT native dev links, headers
ii  cuda-cuobjdump-10-0           10.0.326-1          arm64               CUDA cuobjdump
ii  cuda-cupti-10-0               10.0.326-1          arm64               CUDA profiling tools interface.
ii  cuda-curand-10-0              10.0.326-1          arm64               CURAND native runtime libraries
ii  cuda-curand-dev-10-0          10.0.326-1          arm64               CURAND native dev links, headers
ii  cuda-cusolver-10-0            10.0.326-1          arm64               CUDA solver native runtime libraries
ii  cuda-cusolver-dev-10-0        10.0.326-1          arm64               CUDA solver native dev links, headers
ii  cuda-cusparse-10-0            10.0.326-1          arm64               CUSPARSE native runtime libraries
ii  cuda-cusparse-dev-10-0        10.0.326-1          arm64               CUSPARSE native dev links, headers
ii  cuda-documentation-10-0       10.0.326-1          arm64               CUDA documentation
ii  cuda-driver-dev-10-0          10.0.326-1          arm64               CUDA Driver native dev stub library
ii  cuda-gdb-10-0                 10.0.326-1          arm64               CUDA-GDB
ii  cuda-gpu-library-advisor-10-0 10.0.326-1          arm64               CUDA GPU Library Advisor.
ii  cuda-libraries-dev-10-0       10.0.326-1          arm64               CUDA Libraries 10.0 development meta-package
ii  cuda-license-10-0             10.0.326-1          arm64               CUDA licenses
ii  cuda-memcheck-10-0            10.0.326-1          arm64               CUDA-MEMCHECK
ii  cuda-misc-headers-10-0        10.0.326-1          arm64               CUDA miscellaneous headers
ii  cuda-npp-10-0                 10.0.326-1          arm64               NPP native runtime libraries
ii  cuda-npp-dev-10-0             10.0.326-1          arm64               NPP native dev links, headers
ii  cuda-nsight-compute-addon-l4t 10.0.326-1          all                 NVIDIA Nsight Compute Addon
ii  cuda-nvcc-10-0                10.0.326-1          arm64               CUDA nvcc
ii  cuda-nvdisasm-10-0            10.0.326-1          arm64               CUDA disassembler
ii  cuda-nvgraph-10-0             10.0.326-1          arm64               NVGRAPH native runtime libraries
ii  cuda-nvgraph-dev-10-0         10.0.326-1          arm64               NVGRAPH native dev links, headers
ii  cuda-nvml-dev-10-0            10.0.326-1          arm64               NVML native dev links, headers
ii  cuda-nvprof-10-0              10.0.326-1          arm64               CUDA Profiler tools
ii  cuda-nvprune-10-0             10.0.326-1          arm64               CUDA nvprune
ii  cuda-nvrtc-10-0               10.0.326-1          arm64               NVRTC native runtime libraries
ii  cuda-nvrtc-dev-10-0           10.0.326-1          arm64               NVRTC native dev links, headers
ii  cuda-nvtx-10-0                10.0.326-1          arm64               NVIDIA Tools Extension
ii  cuda-repo-l4t-10-0-local-10.0 1.0-1               arm64               cuda repository configuration files
ii  cuda-samples-10-0             10.0.326-1          arm64               CUDA example applications
ii  cuda-toolkit-10-0             10.0.326-1          arm64               CUDA Toolkit 10.0 meta-package
ii  cuda-tools-10-0               10.0.326-1          arm64               CUDA Tools meta-package

Also you might want to make sure that your ~/.bashrc file contains the following lines at the end:

export PATH=/usr/local/cuda-10.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64:$LD_LIBRARY_PATH

I I modified my cuda.mk to reference cuda-toolkit-10-0.
I now no longer see the cuda-core-10-0 as a missing package. Thanks for than.

I now see only
libavcodec-dev libavformat-dev libgtk2.0-dev libhdf5-dev libjpeg-turbo8-dev libswscale-dev

and when I run apt-get update the following results:

Ign:14 https://repo.download.nvidia.com/jetson/t194 r32 InRelease                                                                   
Err:15 https://repo.download.nvidia.com/jetson/common r32 Release                                                                   
  Could not handshake: Error in the pull function. [IP: 192.168.1.1 3128]
Err:16 https://repo.download.nvidia.com/jetson/t194 r32 Release                                                                     
  Could not handshake: Error in the pull function. [IP: 192.168.1.1 3128]

THanks

Hi,

Which JetPack do you install?

E: Unable to locate package linux-headers-4.9.108-tegra

Based on the log in comment#1, you looks like you are using older JetPack version.

For our latest JetPack4.3, which use r32 release, the kernel version should be 4.9.140-tegra.

nvidia@xavier:~$ uname -a
Linux xavier 4.9.<b>140</b>-tegra #1 SMP PREEMPT Mon Dec 9 22:52:02 PST 2019 aarch64 aarch64 aarch64 GNU/Linux

Thanks.