Accidentally sudo apt-get remove .*:arm64 on Jetson TX2

Hi, I wanted to

sudo apt-get update

but I got fetching error failed. So I tried to search for solution and I found that I have to do

sudo apt-get remove .*:arm64

Unfortunately it is for the host machine, I ran that command on my Jetson TX2. Now I think everything that has been installed were accidentally removed. Is there any way to restore all the deleted file? Thanks

You may need to check what features were remove and install them one by one.
Or just flash the system again.

You can still clone the rootfs partition before a flash if you have something valuable you need to save. The clone produces a “backup.img” file you can delete (a sparse file), plus a “backup.img.raw” file which can be loopback mounted and examined.