Personally, I have never typed that line into a Terminal ever and I've used OctoPrint for over a year now. The bundled Software Update plugin has always worked for me.
If you're working on a fork of OctoPrint, I can see running that possibly against your own clone of your own fork. Or if you're developing OctoPrint with the authors and you need to follow a particular branch they're working on for testing, I can see doing that.
In rare cases when leftover eggs are lying around then
pip install --force-reinstall https://get.octoprint.org/latest (having activated the virtual environment first) would be in order.
And yet, this isn't really the normal usage case. I don't believe that it's a good idea to run
sudo, for what it's worth but I'm really not the expert here. I just know that foosel herself mentioned this before.
Why not describe what the problem was before you began trying to fix it?