Lost Sudo root access to install software on Nvidia Jestson Agx Xavier

Hi All

My company just brought a Nvidia Jestson Agx Xavier

I did initial install and login to Jestson Agx Xavier with userid nvidia, I was able sudo as root user install Redis was and create a group called “scats”.
When should down the Jestson Agx Xavier and running it again.
There are now two users “nvidia” and “Ubuntu” users. I can NOT login “nvidia” but I can login to “Ubuntu”.
If I open a terminal can login “nvidia” userid by command su - “nvidia”.
When I try to sudo -s for “nvidia” or “Ubuntu”. I get an error of
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Both userid “nvidia” or “Ubuntu” does below to groupt root(0).
This is no good, experience.
Can you please provide steps I must to restore sudo root access.
I am block from install software like JDK 1.4.
I am currently review Jestson Agx Xavier, it is for us to buy alot Jestson Agx Xavier edge computers for traffic management.
I read a lot doc, but now much information to restore sudo root access and re-install original firmware.

Jestson Agx Aavier Ubuntu OS version

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

  • You can Press “Shift” on startup to Ubuntu VM image restore pre-previous setting
  • But you cannot do this on Jestson Agx Aavier

I following 2 to 3 time steps provides in URL

But it fail to update.


Install JDK

  • Unzip jdk-14.0.1_linux-x64_bin.tar.gz or openjdk-12_linux-x64_bin.tar.gz or openjdk-14_linux-x64_bin.tar.gz on Ubuntu OS VM image works fine (./bin/java -version) according to Oarcle without any update OS.
  • But Jestson Agx Aavier this does NOT work, ./bin/java: cannot execute binary file: Exec format error

Thank you for your help

Regards, Bao