Command 'chmod' not found, did you mean: [closed]

I was trying to install metasploit on ubuntu and i got this error :

Command ' chmod' not found, did you mean: command 'chmod' from deb coreutils (8.30-3ubuntu2)
Try: sudo apt install <deb name>

Any work arounds?

thanks.

2

1 Answer

You can run sudo apt install --reinstall coreutils to put chmod back on your system.

Example:

terrance@terrance-ubuntu:~$ chmod
Command 'chmod' not found, but can be installed with:
sudo apt install coreutils
terrance@terrance-ubuntu:~$ sudo apt install --reinstall coreutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 47 not upgraded.
Need to get 1,231 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 bionic/main amd64 coreutils amd64 8.28-1ubuntu1 [1,231 kB]
Fetched 1,231 kB in 1s (1,242 kB/s)
(Reading database ... 669001 files and directories currently installed.)
Preparing to unpack .../coreutils_8.28-1ubuntu1_amd64.deb ...
Unpacking coreutils (8.28-1ubuntu1) over (8.28-1ubuntu1) ...
Setting up coreutils (8.28-1ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
terrance@terrance-ubuntu:~$ chmod
chmod: missing operand
Try 'chmod --help' for more information.

Hope this helps!

0

You Might Also Like