01-12-2020, 02:39 AM
MrDitchy, if bash tells you "command not found" when you try and run dpkg-reconfigure, it's probably because you are trying to run it as a non-root user.
When you enter a command without specifying where it is, the shell looks in the directories specified in the PATH variable to find it.
You'll notice the root account has directories in it's PATH that are not typically present in a non-root account, and the dpkg-reconfigure command is in one of those directories, hence bash doesn't find it and says "command not found".
In your case simply use sudo (it will Switch User to root before DOing the command, invoke the command, then switch back after the command has run).
When you enter a command without specifying where it is, the shell looks in the directories specified in the PATH variable to find it.
You'll notice the root account has directories in it's PATH that are not typically present in a non-root account, and the dpkg-reconfigure command is in one of those directories, hence bash doesn't find it and says "command not found".
In your case simply use sudo (it will Switch User to root before DOing the command, invoke the command, then switch back after the command has run).
Code:
$ sudo dpkg-reconfigure tzdata