Swapon command not found

I was trying to create a swap file but I got sudo: swapon command not found. I believe it used to be there before and I remember seeing it in tegrastats but I don’t see it there as well now. I tried to install it but no matter what I do I always get that error.

I have tried:

sudo apt-get install swap-utils

sudo apt-get update

sudo add-apt-repository universe

sudo apt-get install util-linux

sudo-apt-get install --reinstall util-linux

I am not sure what to do.

What do you see from “which swapon”? Or what about “sudo apt-get install mount”? FYI, I do see some oddities, even on a desktop PC, related to packaging for swapon, so this might not be particular to Jetsons.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.