Skip to main content
Contributor III
October 11, 2016

Technical Note: [Accelops KB] Problem - Running 'phdownloadimage.local' to upgrade gives error '-bash: ./phdownloadimage.local: /bin/bash^M: bad interpreter: No such file or directory'

  • October 11, 2016
  • 0 replies
  • 859 views

Description

Summary of Topic

When running 'phdownloadimage.local' to upgrade I received error "-bash: ./phdownloadimage.local: /bin/bash^M: bad interpreter: No such file or directory".

This is caused by the file having  WIndows line feed characters (^M) in the file.  Maybe the script was opened in a text editor on Windows at some point.

  

Resolution

run the command 'dos2unix' at the command line.

 # dos2unix phdownloadimage.local

 Now you can run the phdownload.local script again. 

 

Additional Resources

n/a 

Version application

All

 

 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.