User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
Pressing control+c on the wrong keyboard, in the wrong terminal window, connected to the wrong server: the ultimate sign it's time for bed. Just as soon as I do a bit of troubleshooting; I seem to have broken "sudo shutdown -h now" on this Debian machine. It says:
"sudo: The term 'sudo' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."

I wonder how I managed to break sudo?
6
3
4
0

User avatar
Peter Vágner @pvagner@fedi.ml
1y
@fastfinge Hmmm, are you running powershell on debian? Can you exit out of that? Perhaps it does not see the PATH variable or something.
0
0
1
0
User avatar
Jens Bannmann @tynstar@nerdculture.de
1y
@fastfinge
Umm... the bit about "not recognized as a name of a cmdlet" is something that Microsoft Powershell would say. And AFAIK Powershell is not installed on Debian by default. Did you? Or was it that late in the evening that you were talking to a (local) Windows machine instead of a Debian one?
1
0
1
0
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
1y
@tynstar It was 45 minutes after midnight, and I'd been up since 6 AM. I also have powershell and oh-my-posh installed on all of my machines, so that doesn't help me.
0
0
1
0
User avatar
Andreas, DJ3EI, he/him @dj3ei@mastodon.radio
1y
Normally, I would first check environment variable $PATH.

It THAT tired, however, I might try logging in anew, check whether sudo works there, and never mind.

@fastfinge
0
0
1
0
User avatar
nosdregamon @nosdregamon@mastodon.gamedev.place
1y
@fastfinge In the wise words of master Joda: "su or su not. There's no sudo."

(at least not in default Debian - you can install it)
0
0
1
0