Hi! Welcome to our forums!
Please, what commands have you executed?
Have you followed any doc?
Have you seen this doc? Updating Rocket.Chat snap to 4.x track
Also, I always suggest docker, as it’s easier to maintain, update and get help around.
Thanks!