aws-samples / aws-greengrass-samples

Samples for AWS Greengrass
MIT No Attribution
95 stars 68 forks source link

libcudnn7-dev and libcudnn7 packages not authenticated -Nvidia TX2 MXNet #9

Closed robperc closed 6 years ago

robperc commented 6 years ago

I get the following error when I attempt to run the mxnet_installer.sh for the Nvidia TX2:

./mxnet_installer.sh Starting MXNET installation on the system... Unittests: N WARNING: Please enable universal repositories by modifying '/etc/apt/sources.list' The following lines should be uncommented in that file: deb http://ports.ubuntu.com/ubuntu-ports/ xenial universe deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial universe deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe Assuming that universal repos are enabled and checking dependencies... Get:1 file:/var/cuda-repo-9-0-local InRelease Ign:1 file:/var/cuda-repo-9-0-local InRelease Get:2 file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 InRelease Ign:2 file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 InRelease Get:3 file:/var/visionworks-repo InRelease Ign:3 file:/var/visionworks-repo InRelease Get:4 file:/var/visionworks-sfm-repo InRelease Ign:4 file:/var/visionworks-sfm-repo InRelease Get:5 file:/var/visionworks-tracking-repo InRelease Ign:5 file:/var/visionworks-tracking-repo InRelease Get:6 file:/var/cuda-repo-9-0-local Release [574 B] Get:7 file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 Release [574 B] Get:8 file:/var/visionworks-repo Release [1,999 B] Get:9 file:/var/visionworks-sfm-repo Release [2,003 B] Get:10 file:/var/visionworks-tracking-repo Release [2,008 B] Get:6 file:/var/cuda-repo-9-0-local Release [574 B]
Get:7 file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 Release [574 B] Get:11 file:/var/cuda-repo-9-0-local Release.gpg [819 B]
Get:8 file:/var/visionworks-repo Release [1,999 B]
Get:12 file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 Release.gpg [819 B] Get:9 file:/var/visionworks-sfm-repo Release [2,003 B] Get:10 file:/var/visionworks-tracking-repo Release [2,008 B] Get:11 file:/var/cuda-repo-9-0-local Release.gpg [819 B]
Get:12 file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 Release.gpg [819 B] Hit:16 http://ports.ubuntu.com/ubuntu-ports xenial InRelease
Ign:11 file:/var/cuda-repo-9-0-local Release.gpg
Get:17 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease [102 kB] Ign:12 file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 Release.gpg Get:18 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease [102 kB] Get:19 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main arm64 DEP-11 Metadata [317 kB] Get:20 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main DEP-11 64x64 Icons [226 kB] Get:21 http://ports.ubuntu.com/ubuntu-ports xenial-updates/universe arm64 DEP-11 Metadata [244 kB] Get:22 http://ports.ubuntu.com/ubuntu-ports xenial-updates/universe DEP-11 64x64 Icons [315 kB] Get:23 http://ports.ubuntu.com/ubuntu-ports xenial-updates/multiverse arm64 DEP-11 Metadata [4,072 B] Get:24 http://ports.ubuntu.com/ubuntu-ports xenial-security/universe Sources [62.8 kB] Get:25 http://ports.ubuntu.com/ubuntu-ports xenial-security/main arm64 DEP-11 Metadata [67.5 kB] Get:26 http://ports.ubuntu.com/ubuntu-ports xenial-security/main DEP-11 64x64 Icons [72.2 kB] Get:27 http://ports.ubuntu.com/ubuntu-ports xenial-security/universe arm64 Packages [290 kB] Get:28 http://ports.ubuntu.com/ubuntu-ports xenial-security/universe arm64 DEP-11 Metadata [106 kB] Get:29 http://ports.ubuntu.com/ubuntu-ports xenial-security/universe DEP-11 64x64 Icons [139 kB] Fetched 2,048 kB in 2s (865 kB/s)
Reading package lists... Done W: GPG error: file:/var/cuda-repo-9-0-local Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80 W: The repository 'file:/var/cuda-repo-9-0-local Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80 W: The repository 'file:/var/nv-tensorrt-repo-ga-cuda9.0-trt3.0.4-20180208 Release' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. Reading package lists... Done Building dependency tree
Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: libmircommon5 libqmi-glib1 ubuntu-core-launcher Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: libinput-bin libqmi-glib5 The following packages will be upgraded: accountsservice activity-log-manager apparmor appmenu-qt5 apt apt-utils avahi-autoipd avahi-daemon avahi-utils bamfdaemon base-files bsdutils btrfs-tools command-not-found-data compiz compiz-core compiz-gnome compiz-plugins-default console-setup console-setup-linux coreutils cracklib-runtime cryptsetup cryptsetup-bin cups-browsed cups-filters cups-filters-core-drivers deja-dup desktop-file-utils distro-info-data dnsmasq dnsmasq-base dpkg dpkg-dev fuse fwupd fwupdate fwupdate-signed gir1.2-appindicator3-0.1 gir1.2-dbusmenu-glib-0.4 gir1.2-packagekitglib-1.0 gir1.2-unity-5.0 glib-networking glib-networking-common glib-networking-services gnome-accessibility-themes gnome-calculator gnome-calendar gnome-disk-utility gnome-font-viewer gnome-menus gnome-session-bin gnome-session-common gnome-settings-daemon-schemas gnome-sudoku gnome-system-monitor grep gstreamer1.0-tools gtk2-engines-murrine gvfs gvfs-backends gvfs-bin gvfs-common gvfs-daemons gvfs-fuse gvfs-libs hdparm humanity-icon-theme ifupdown im-config indicator-application indicator-bluetooth init init-system-helpers initramfs-tools initramfs-tools-bin initramfs-tools-core iproute2 isc-dhcp-client isc-dhcp-common keyboard-configuration klibc-utils kmod krb5-locales language-pack-en language-pack-en-base language-selector-common language-selector-gnome less libaccountsservice0 libapparmor-perl libapparmor1 libappindicator3-1 libappstream-glib8 libapt-inst2.0 libapt-pkg5.0 libaudit-common libaudit1 libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7 libavahi-glib1 libavahi-ui-gtk3-0 libbamf3-2 libblkid1 libcompizconfig0 libcrack2 libcryptsetup4 libcudnn7 libcudnn7-dev libcupsfilters1 libdbusmenu-glib4 libdbusmenu-gtk3-4 libdbusmenu-gtk4 libdecoration0 libdfu1 libdpkg-perl libexiv2-14 libfcitx-config4 libfcitx-gclient0 libfcitx-utils0 libfdisk1 libfontembed1 libframe6 libfuse2 libfwup0 libfwupd1 libgcrypt20 libglib2.0-data libgnome-menu-3-0 libgssapi-krb5-2 libgtk-3-bin libgtk2.0-common libgweather-3-6 libgweather-common libido3-0.1-0 libinput10 libk5crypto3 libklibc libkmod2 libkrb5-3 libkrb5support0 libmbim-glib4 libmbim-proxy libmetacity-private3a libmm-glib0 libmount1 libnautilus-extension1a libnm-glib-vpn1 libnm-glib4 libnm-gtk-common libnm-gtk0 libnm-util2 libnm0 libnma-common libnma0 libnux-4.0-0 libnux-4.0-common libp11-kit0 libpackagekit-glib2-16 libpam-systemd libparted2 libpci3 libplymouth4 libprocps4 libpulse-mainloop-glib0 libpulse0 libpulsedsp libqmi-proxy libqt5sql5-sqlite libsane libsane-common libseccomp2 libsmartcols1 libsnapd-glib1 libsnmp-base libsnmp30 libsystemd0 libudev1 libunity-control-center1 libunity-core-6.0-9 libunity-protocol-private0 libunity-scopes-json-def-desktop libunity-settings-daemon1 libunity9 libupower-glib3 libuuid1 libvulkan1 libwacom-bin libwacom-common libwacom2 libwhoopsie0 light-themes logrotate lsb-base lsb-release lshw makedev metacity metacity-common modemmanager mount nautilus nautilus-data network-manager network-manager-gnome nux-tools overlay-scrollbar overlay-scrollbar-gtk2 p11-kit p11-kit-modules parted pciutils plymouth plymouth-label plymouth-theme-ubuntu-logo plymouth-theme-ubuntu-text printer-driver-brlaser procps pulseaudio pulseaudio-module-bluetooth pulseaudio-module-x11 pulseaudio-utils python-apt-common python3-apt python3-commandnotfound python3-software-properties sane-utils session-shortcuts shared-mime-info snapd snapd-login-service sni-qt software-properties-common software-properties-gtk squashfs-tools sudo suru-icon-theme systemd systemd-sysv ubuntu-artwork ubuntu-core-launcher ubuntu-desktop ubuntu-docs ubuntu-mobile-icons ubuntu-mono ubuntu-session udev unattended-upgrades unity unity-control-center unity-control-center-faces unity-lens-applications unity-schemas unity-scopes-runner unity-services unity-settings-daemon update-notifier update-notifier-common upower util-linux uuid-dev vino whoopsie xdg-user-dirs xdg-utils xdiagnose xfonts-utils zlib1g zlib1g-dev 271 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 68.3 MB/241 MB of archives. After this operation, __ MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! libcudnn7-dev libcudnn7 E: There were unauthenticated packages and -y was used without --allow-unauthenticated

robperc commented 6 years ago

I was able to work around this bug by installing these packages outside of the script using the "-y" and "--allow-unauthenticated" flags then re-running the script.

tianweizhang07 commented 6 years ago

Hi Robert,

This is not actually a bug but rather a problem with the signature of those packages in the repos. Package manager is trying to pull those packages during the update process and we cannot let it use the "--allow-unauthenticated" flag by default as this will be dangerous.

Based on the current configuration of your device, this situation might happen even outside of this script whenever you may want to try to do a full-scale update.

The way you mitigated the problem is the only way to go around this problem.