Jetson nano dev kit linux setup fails to complete

I recently bought a jetson nano dev kit, and flashed with the sd card image provided via download. It works fine, until I try to install, or update something. sudo apt update && upgrade seemed to run fine. But if I try to install a newer python verison, or other things, it always fails with

`dpkg: error processing package nvidia-l4t-initrd (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 nvidia-l4t-bootloader
 nvidia-l4t-xusb-firmware
 nvidia-l4t-initrd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Obviously package depdencies are broken.

Because I believe that I need jetpack to progress, my last attempt was: apt depends nvidia-jetpack | awk '{print $2}' | xargs -I {} sudo apt install -y {}
In that it attempted quite a few packages, succeeding with some, but mostly failing, then continuing, and ultimately fails to complete.

I have read various places referring to jetson linux. The SD image that I downloaded for the nano dev pack has ubuntu 18.04.6. What to do now?

Please remove nvidia related source from the apt source list (/etc/apt/). Otherwise the apt will try to reinstall the whole system again (nvidia driver) when you run apt-get upgrade.

Thanks for checking my post. There is nothing regarding nvidia in /etc/apt/sources.list. I removed the /etc/apt/sources.d/nvidia* and cuda* so left in /etc/apt/sources.list.d was:
‘’’
-rw-r–r-- 1 root root 74 Feb 26 2020 visionworks-repo.list
-rw-r–r-- 1 root root 82 Feb 8 2020 visionworks-sfm-repo.list
-rw-r–r-- 1 root root 92 Feb 8 2020 visionworks-tracking-repo.list
‘’’
Attempt to run the command line I previously posted had the same result.

Hi,

Just to clarify. What I am talking is for something before the error happened.

For example, if you removed the NVIDIA source in the beginning after flash and then run apt update/upgrade, then you would not hit error.

If you already ran upgrade before then files could be already wrong.

Ok. Thanks for clarification. Yes, I did upgrade after I flashed my original downloaded image (from nvidia), which is an ubuntu image. What I’m aiming to do is get an object detection example running, and thought I needed jetpack SDK to make a suitable software platform. I’m not aware how to get jetson linux any other way.

Is it okay for you to reflash the board and remove the source list in the beginning?

Yes. I’d be ok to do that later today. I’ve got a laptop I can turn into a host with ubuntu. Then I will look into following How to Install and Configure JetPack SDK — JetPack. Note I have the okdo nano C100 dev kit; not Xavier, orin, or AGX. I expect that would be ok for an intro level application. Thanks for your help. I will post here, whether or not I get through.