I am trying to change the static IP address of my RPI. My home network is set up with a different subnet to the defaul RPI of 192.168.0.252.
I can connect using SSH by changing the ip of my laptop, but when I try to enter any sudo command, I get the message
root@raspberry-pi:~# sudo cp /etc/network/interfaces /etc/network/interfaces.backup
-bash: sudo: command not found
Also, because I can't get the network address changed, I can't run an apt-get update command.
Change default static IP
-
- Posts: 1330
- Joined: Mon Apr 13, 2015 7:05 am
- Location: Bratislava, Slovakia
- Real Name: Jano Svitok
- Contact:
If you are root, there's no point of running sudo.
Just run the command without the sudo prefix
Just run the command without the sudo prefix