pythops / jetson-image

Create minimalist, Ubuntu based images for the Nvidia jetson boards

Home Page:https://pythops.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot run Ansible Playbook jetson.yaml - Failed to update apt cache unknown reason

opened this issue · comments

Building on Ubuntu 20.04 with latest updates but ansible-playbook fails. Does ansible run this inside some sort of VM on the rootfs and apt can't access the internet or some other issue causing below?

$ export JETSON_ROOTFS_DIR="/tmp/jetson/rootfs"
$ cd ansible/
$ sudo -E ansible-playbook -vvv jetson.yaml

# fails on this step, no verbose output

TASK [jetson : Upgrade packages ] *******************************
fatal: [jetson]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: unknown reason"}
commented

Some issue with apt not being able to update the cache. Probably a network issue.
Try again with the same command, and if it does fail then try to chroot into the jetson roortfs and run apt update manually

$ sudo chroot /tmp/jetson/rootfs
# apt update 
commented