apt-get update errors.

hi, i try to setup some software by apt-get on my jetson nano. i have fresh sd-card with just installed ubuntu 18.04

but, i have errors on update

sudo apt-get update
[sudo] password for pikot:
Get:1 file:/var/cuda-repo-10-0-local-10.0.166  InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.166  InRelease
Get:2 file:/var/visionworks-repo  InRelease
Ign:2 file:/var/visionworks-repo  InRelease
Get:3 file:/var/visionworks-sfm-repo  InRelease
Ign:3 file:/var/visionworks-sfm-repo  InRelease
Get:4 file:/var/visionworks-tracking-repo  InRelease
Ign:4 file:/var/visionworks-tracking-repo  InRelease
Get:5 file:/var/cuda-repo-10-0-local-10.0.166  Release [574 B]
Get:6 file:/var/visionworks-repo  Release [1 999 B]
Get:5 file:/var/cuda-repo-10-0-local-10.0.166  Release [574 B]
Get:7 file:/var/visionworks-sfm-repo  Release [2 003 B]
Get:6 file:/var/visionworks-repo  Release [1 999 B]
Get:8 file:/var/visionworks-tracking-repo  Release [2 008 B]
Get:7 file:/var/visionworks-sfm-repo  Release [2 003 B]
Get:9 file:/var/cuda-repo-10-0-local-10.0.166  Release.gpg [819 B]
Get:8 file:/var/visionworks-tracking-repo  Release [2 008 B]
Get:10 file:/var/visionworks-repo  Release.gpg [819 B]
Get:9 file:/var/cuda-repo-10-0-local-10.0.166  Release.gpg [819 B]
Get:11 file:/var/visionworks-sfm-repo  Release.gpg [819 B]
Get:10 file:/var/visionworks-repo  Release.gpg [819 B]
Get:11 file:/var/visionworks-sfm-repo  Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo  Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo  Release.gpg [819 B]
Get:13 file:/var/cuda-repo-10-0-local-10.0.166  Packages [10,9 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports bionic InRelease [242 kB]
Get:15 file:/var/visionworks-repo  Packages [1 182 B]
Get:16 file:/var/visionworks-sfm-repo  Packages [833 B]
Get:17 file:/var/visionworks-tracking-repo  Packages [828 B]
Get:18 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88,7 kB]
Err:14 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
  The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
Get:19 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74,6 kB]
Err:18 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
  The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
Get:20 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88,7 kB]
Get:21 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main arm64 Packages [2 512 B]
Get:22 http://ports.ubuntu.com/ubuntu-ports bionic-backports/main Translation-en [1 644 B]
Get:23 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe arm64 Packages [3 732 B]
Get:24 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe Translation-en [1 696 B]
Get:25 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe arm64 DEP-11 Metadata [7 224 B]
Get:26 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe DEP-11 48x48 Icons [29 B]
Get:27 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe DEP-11 64x64 Icons [29 B]
Get:28 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 Packages [320 kB]
Err:28 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 Packages
  Hash Sum mismatch
  Hashes of expected file:
   - Filesize:319672 [weak]
   - SHA256:15bcbc08cad20029614921a388d725ce3c78a4a71eb0f041d8a0f6039e2ba20b
   - SHA1:cca7910de8f6090acda3d7e902890573ab5fdcbc [weak]
   - MD5Sum:ba78dc59716ade065dee57922195b93e [weak]
  Hashes of received file:
   - SHA256:71017758671ba5dba536a39ea0318f408052c529bce2193b4b16b382d8d1beb1
   - SHA1:cd7a7c9df2df1d44f43084a86e527b79bfb608cd [weak]
   - MD5Sum:e52d22118d02b5163fe8050c57e4919e [weak]
   - Filesize:319672 [weak]
  Last modification reported: Fri, 12 Jul 2019 03:33:29 +0000
  Release file created at: Sun, 14 Jul 2019 13:17:56 +0000
Get:29 http://ports.ubuntu.com/ubuntu-ports bionic-security/main Translation-en [156 kB]
Err:29 http://ports.ubuntu.com/ubuntu-ports bionic-security/main Translation-en

Get:30 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 DEP-11 Metadata [18,0 kB]
Get:31 http://ports.ubuntu.com/ubuntu-ports bionic-security/main DEP-11 48x48 Icons [10,4 kB]
Get:32 http://ports.ubuntu.com/ubuntu-ports bionic-security/main DEP-11 64x64 Icons [31,7 kB]
Get:33 http://ports.ubuntu.com/ubuntu-ports bionic-security/restricted arm64 Packages [668 B]
Get:34 http://ports.ubuntu.com/ubuntu-ports bionic-security/restricted Translation-en [2 192 B]
Get:35 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe arm64 Packages [510 kB]
Err:35 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe arm64 Packages

Get:36 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe Translation-en [185 kB]
Get:37 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe arm64 DEP-11 Metadata [36,2 kB]
Get:38 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe DEP-11 48x48 Icons [16,4 kB]
Reading package lists... Done                                                    
W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic InRelease: The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease: The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
E: The repository 'http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

and when i try to install pip, for example, error happen

sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-pip

/etc/apt/sources.list is default

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted multiverse universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
# deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted universe
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security universe
deb http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ bionic-security multiverse

how to fix it? pls help

Could you share the step of your driver package installation?

my installation steps:

  1. i download the jetson nano developer kit SD Card image and write it on sd card. Image link has taken from https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit

  2. run the jetson nano with the sd card.

  3. make network setup (wifi dongle detected automatically) and login/password setup at first login

  4. open terminal and write “apt-get update”, result shown in my first message.

how i try to solve the problem:

  1. i tried to clean apt hash by
sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
  1. i tried to delete and than get new signature 3B4FE6ACC0B21F32, i tried to update the signature by
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
  1. i tried to take new sd card and made all steps with new sd card, result is the same.

  2. I searched reason of “Hash Sum mismatch” error, but couldn’t find answer that worked for me.

We will try to repro this issue on our side. In the meantime, would you minding trying sdkmanager?

If sdkmanager could work, it may indicate the package on download center has some problem.

Hi mnemonik,

Please try below command then install python3-pip again.

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install python3-pip

sdkmanager? as i understand this program doesn’t exist on sd-card?

~$ sdkmanager
bash: sdkmanager: command not found

i tried, but it doesn’t help

~$ sudo add-apt-repository universe
'universe' distribution component is already enabled for all sources.

and same errors on update command.

as i think, something wrong with apt-get?

Hi,

sdkmanager(jetpack) is a tool on your desktop host. You could install it from our website.

sdkmanager should automatically install the same rootfs as what you did on your sdcard.
Normally, you could install it from either sdkmanager or using the package from our download center.

I just suspect there are some problem when you dealt with the package.

I have found reason of errors! ) A have problem with MT7601 wifi adapter) I have started download by wget sdk manager and have seen ssl3 errors. It lead me to conclusion that something wrong with wifi drivers. Via ethernet everything works perfectly
WayneWWW, carolyuu - thanks so much for help!