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"}
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
FYI: nameserver 1.1.1.1
is set in create-rootfs.sh
https://github.com/pythops/jetson-nano-image/blob/master/create-rootfs.sh#L46