You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

📰 Newsroom Update

Billie Eilish is Apple Music’s Artist of the Year for 2024. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

iTunes Library cannot be saved (Error -54)

Hey guys,

Recently started getting the following error "The iTunes Library file cannot be saved. An unknown error occured (-54)."

!http://img3.imageshack.us/img3/9720/picture1tt8.png!

I've searched the forums and Google, but can't seem to find a solution which fixes the error and which does not delete my ratings and playcounts.

Any help appreciated!

Message was edited by: snkhan

Apple iMac 20" 2GB RAM, Mac OS X (10.5.6), iPhone 3G 2.1, iLife '08, iWork '08

Posted on Feb 19, 2009 1:45 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 20, 2009 5:45 AM

Have you already tried this:
Go to iTunes, "file", choose export library. Save the library.xml file on your desktop. Quit iTunes, delete the library files in the iTunes folder. Relaunch iTunes, go to "file", click on import library and choose the library.xml file.
93 replies

Jul 7, 2012 11:05 AM in response to BrianJCook

I was seeing this error all of a sudden today while trying to import a CD and it would not add the imported music to my Library.


"The iTunes Library file cannot be saved. An unknown error occured (-54)."


However, I did the following steps listed in an earlier post and it solved the problem without doing anything else.


Go to iTunes, "File", choose export library.

Save the library.xml file on your desktop.

Quit iTunes, delete the library files in the iTunes folder ( I just moved it to the Trash, but did not empty it).

Relaunch iTunes, go to "File", click on "Add to Library" and choose the newly exported library.xml file.


Import CD worked fine after that.


Many thanks for the solution!

Jul 17, 2012 7:49 PM in response to normond

@nomond, Ok so I was getting the same error "The iTunes Library file.... (-54)." And I did what you recommended above. I saved the library file onto the desktop, quit iTunes and moved the library files from the iTunes folder to the trash. Then I relaunched and from File clicked "Add to Library" file that was sitting on the desktop.


This made all of my music disappear and I haven't been able to get it back. I know the music is still there somewhere. I have even tried to take the files out of the trash and put them back and nothing?


I am worried now that I have lost my playlists and Genius lists etc. Not to mention I don't even know the best way to map my music back.


Any help would be greatly appreciated I have been without music for a week.


Mike

Feb 20, 2013 12:38 PM in response to Annalea

I used Repair Permissions and it seemed to solve the iTunes problem, however, it completely knocked out my HP printer, which I now cannot open. (I get the 'Power PC apps are no longer supported' message.) It was working fine this morning. Anyone know how I can restore it? I've tried everything I can think of and have wasted an hour doing it. Thanks!

Feb 20, 2013 2:10 PM in response to Janeygirl711

Janeygirl711,


Go to http://www8.hp.com/us/en/support-drivers.html.


This site provides HP drivers and software for all their printers. You could try installing the latest drivers and software for your printer and see if that gets it up and running again. Even if you had the most up to date drivers and software doing a reinstall may be advised as something may have been corrupted or changed when you did the repair permissions.


Good luck. Let us know if this helps.


Mr. Luigi

iTunes Library cannot be saved (Error -54)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.