Unable to give sudo command in nano l4t package 32.2.1

We have designed a custom board based on nano SOM. And we boot from emmc.We are facing an issue in rootfs. We are unable to get root permissions.
we face this error(mentioned below) when we try to give sudo command

nvidia@tegra-ubuntu:/$ sudo apt-get update
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

We use L4T 32.2.1 package from nvidia site.we built an emmc image using command (sudo ./flash.sh jetson-nano-emmc mmcblk0p1) Before that we use (./l4t_create_default_user.sh -u nvidia -p nvidia) command to bypass initial account creation settings on first boot(since we got struck during first boot)
Any help would be appreciated.

1 Like