Hey guys,
I have a problem when installing the libcudnn7-dev_7 package on the Jetson Nano.
I’ve started on a fresh Ubuntu 18.04, then installed the following components by getting the download links for the JetPack 4.2 version from the NVIDIA SDK Manager :
- Nvidia Nano Drivers R32.1.0 (Jetson-210_Linux_R32.1.0_aarch64.tbz2)
- CUDA 10.0.166 (cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb)
- CUDNN 7.3.1.28 (libcudnn7_7.3.1.28-1+cuda10.0_arm64.deb)
Now when I want to install the libcudnn7-dev_7 package (libcudnn7-dev_7.3.1.28-1+cuda10.0_arm64.deb), the following error occurs:
Preparing to unpack .../libcudnn7-dev_7.3.1.28-1+cuda10.0_arm64.deb ...
Unpacking libcudnn7-dev (7.3.1.28-1+cuda10.0) ...
Setting up libcudnn7-dev (7.3.1.28-1+cuda10.0) ...
dpkg: error processing package libcudnn7-dev (--install):
installed libcudnn7-dev package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
libcudnn7-dev
The command '/bin/sh -c dpkg -i /tmp/libcudnn7-dev_7.3.1.28-1+cuda10.0_arm64.deb' returned a non-zero code: 1
CUDA seems to be working:
nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sun_Sep_30_21:09:22_CDT_2018
Cuda compilation tools, release 10.0, V10.0.166
Here is the whole Jetpack pipeline in Docker:
# Use Ubuntu 18.04 as a starting point
FROM balenalib/aarch64-ubuntu:cosmic
LABEL io.balena.device-type="jetson-nano"
# Cross-compile on x86-64
RUN [ "cross-build-start" ]
# Install basic packages
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
less kmod nano net-tools ifupdown iputils-ping i2c-tools usbutils \
apt-utils dialog bzip2 ca-certificates curl pciutils sudo unp wget
###################
# Install NVIDIA stuff
###################
WORKDIR /tmp
# Install Nano drivers R32.1.0
RUN sudo apt-get install -y pigz lbzip2
RUN wget -O /usr/sbin/gdrivedl 'https://f.mjh.nz/gdrivedl'
RUN chmod +x /usr/sbin/gdrivedl
RUN gdrivedl xxxxxxxxxxxxxxxxxxxxxx # GDrive file ID outcommented
RUN tar -xvjf /tmp/Jetson-210_Linux_R32.1.0_aarch64.tbz2
RUN chown root /etc/passwd /etc/sudoers /usr/lib/sudo/sudoers.so /etc/sudoers.d/README
RUN /tmp/Linux_for_Tegra/apply_binaries.sh -r /
# Install CUDA 10.0.166
RUN gdrivedl xxxxxxxxxxxxxxxxxxxxxx # GDrive file ID outcommented
RUN dpkg -i /tmp/cuda-repo-l4t-10-0-local-10.0.166_1.0-1_arm64.deb
RUN apt-key add /var/cuda-repo-*-local*/*.pub
RUN apt-get -y update && apt-get install -y gnupg
RUN apt-get -y --allow-downgrades install cuda-toolkit-10-0 libgomp1 libfreeimage-dev libopenmpi-dev openmpi-bin
ENV PATH="${PATH}:/usr/local/cuda-10.0/bin"
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/cuda-10.0/lib64"
# Install CUDNN 7.3.1.28
RUN gdrivedl xxxxxxxxxxxxxxxxxxxxxx # GDrive file ID outcommented
RUN gdrivedl xxxxxxxxxxxxxxxxxxxxxx # GDrive file ID outcommented
RUN gdrivedl xxxxxxxxxxxxxxxxxxxxxx # GDrive file ID outcommented
RUN dpkg -i /tmp/libcudnn7_7.3.1.28-1+cuda10.0_arm64.deb
RUN dpkg -i /tmp/libcudnn7-dev_7.3.1.28-1+cuda10.0_arm64.deb
RUN dpkg -i /tmp/libcudnn7-doc_7.3.1.28-1+cuda10.0_arm64.deb
Any idea what could be wrong?
Thanks,
Max