Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I followed these instructions to remove Java from my Mac (Lion): As part of the procedure, I needed to edit the file /Library/Receipts/InstallHistory.plist

I followed these steps:

  1. sudo bash (supplied password)
  2. cp /Library/Receipts/InstallHistory.plist ~/Desktop
  3. chown userx:staff ~/Desktop/InstallHistory.plist (I'm userx, permissions were -rw-r--r-- 1 root admin)
  4. edited ~/Desktop/InstallHistory.plist and closed
  5. chown root:wheel ~/Desktop/InstallHistory.plist

All was well until the final step (#5):

mv ~/Desktop/InstallHistory.plist /Library/Receipt/

which produced the message:

mv: rename /Users/caryswoveland/Desktop/InstallHistory.plist to /Library/Receipt/: No such file or directory

I don't know a great deal about Unix.

What's the problem?

share|improve this question

migrated from May 25 '13 at 13:49

This question came from our site for professional and enthusiast programmers.

a chown operation is NOT going to produce a 'rename' error... – Marc B May 25 '13 at 2:43
Why did you have to do step 3 if you were sudo into bash? And did you do a Ctrl-D before you did the mv that gave you the error? – lurker May 25 '13 at 2:56
@mbratch per the instructions linked, step 4 was with a gui editor, hence permission change... but yes, would have been so much easier to just sudo vim, and make the changes. – demure May 25 '13 at 3:03
Are you sure the file exists? – soandos May 28 '13 at 20:10
up vote 4 down vote accepted

You copied from:

  • /Library/Receipts

You tried (but failed) to copy to:

  • /Library/Receipt/

Try adding the missing s.

share|improve this answer
That will do it every time. I just copied that, missing s and all. Thanks. – Cary Swoveland May 25 '13 at 3:30
Be grateful you copied the trailing slash. Without that, you'd have had a file /Library/Receipt and the original version of the file /Library/Receipts/InstallHistory.plist, and that would lead to further confusion down the road. And let he who has never made a similar mistake cast the first stone — and when that stone is lobbed, I'll show you a rank novice programmer. Nevertheless, I don't think this Q&A is going to be a lot of help to future users. – Jonathan Leffler May 25 '13 at 3:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.