Bash error message: {bad interpreter: No such file or directory}

This article was first written in February 2005 for the BeezNest technical
website (

If you encounter the following error while trying to execute a shell script with Bash, it is probably a carriage return problem: bad interpreter: No such file or directory

To fix it, see HOWTO Convert carriage returns between UNIX and DOS on Debian.