NVIDIA Jetson AGX Xavier - reinstall os/fix setuid issue


how to fix the below error?

nvidia@jetson-0423418049083:~$ sudo -s
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

nvidia@jetson-0423418049083:/usr/bin$ ls -l sudo
-rwsr-xr-x 1 nvidia nvidia 136616 Aug 14 06:54 sudo

Also, Is there a way to restore/reinstall ubuntu os?

Many Thanks!
Shivaji M

1 Like

I am guessing that the partition of your Linux host where you flashed from was not a native Linux filesystem. E.g., perhaps you flashed with an external USB drive using VFAT or NTFS. This is not capable of preserving Linux filesystem permissions while building the image which gets flashed. There will be a very large number of files with the same issue, and so you must flash again. The location of the host side flash software should be ext4. So for example, to see this information:

df -H -T ~/nvidia

Just use JetPack/SDK Manager. The most recent version is 4.2.1, which installs L4T R32.2. If you wish to use this, then here is the URL:

If you are using an older version and must use that version, then this has a list of versions available: