All commands have been working until a few days ago on our Ubuntu server. When running
cd it returns
bash: /bin/ls: No such file or directory.
How can this be fixed?
It seems like the
ls executable is missing.
ls is part of the coreutils package on Debian-based systems, so you might want to see if it's been uninstalled.
You can use
runejuhl@lapaz:~$ aptitude search ^coreutils$ i coreutils - GNU core utilities
In the above, the "i" in the beginning of the line means that the package is indeed installed.
/etc/environment file to make sure it still specifies the path. The default Ubuntu (as of 9.10) has just one line in it:
That one line gets pulled into various sub-systems that handle login however. Setting the PATH elsewhere can mess Ubuntu's GDM up.