• Skip to main content
  • Skip to primary sidebar

Technipages

Smart phone, gadget and computer tutorials

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
Solve “The iTunes Library.itl file is locked” Error in iTunes

Solve “The iTunes Library.itl file is locked” Error in iTunes

By Mitch Bartlett 22 Comments

When you try to start Apple iTunes for Windows or MacOS, you get an error message that says:

The iTunes Library.itl file is locked, on a locked disk, or you do not have write permission for this file.

iTunes Library itl file error

This happens commonly because, somehow the iTunes Library.itl file got set as read only. You can fix this by doing the following steps.

Windows Option 1 – Windows File Settings

  1. Navigate to the location of your iTunes Library.itl file. It is usually found at “C:\Users\username\Music\iTunes“
  2. Right-click the “iTunes Library.itl” file, then choose “Properties“.
  3. Uncheck “Read-only“.
  4. If you have a “Security” tab, select it. Ensure that your account has “Full Control” permissions to the file. If you don’t have this tab, ignore this step.
  5. Click “OK“.

Windows Option 2 – Using Attrib

This option is for expert users who know their way around a Command Prompt. These steps will set the iTunes folder where they are readable again.

  1. Open a Command Prompt by pressing the “Windows Key” + “R“.
  2. Type “CMD” then press “Enter“.
  3. Navigate to the location where the music files are located. For Windows 10 users, it’s normally in the C:\Users\username\Music\iTunes\iTunes Media folder.
  4. Type “attrib *.*  -r +a -s -h /s“, then press “Enter“.

This command may take a few minutes to run. Once complete, try to open iTunes again.


MacOS Option

  1. Exit iTunes.
  2. From the Finder, press “Command“, “Shift“, and “G“.
  3. Type “~/Music/iTunes/“, then press “Enter“.
  4. In the iTunes folder, there should be a “iTunes Library.itl” file. Rename this file to “iTunes Library.old“.
  5. Open the “Previous iTunes Libraries” folder.
  6. Find a file that says “iTunes Library <date>.itl” where the <date> is the most current date you can find.
  7. Move the “iTunes Library <date>.itl” file to the “~/Music/iTunes/” folder.
  8. Rename the “iTunes Library <date>.itl” file to “iTunes Library.itl“.
  9. Now try to start iTunes.

If none of the above steps work for you, it may be a bit more complex. Some people have told me they just delete the “iTunes Library.itl” file or delete everything in the “C:\Users\username\Music\iTunes” folder except “iTunes Media“, and it works for them. I think it’s risky to do that since you could lose data, but you may want to give that a try if you’re desperate.

You Might Also Like

  • iTunes: 'The file "iTunes Library.itl" cannot be read' FixiTunes: 'The file "iTunes Library.itl" cannot be read' Fix
  • Outlook: Solve "The file username.ost is in use and cannot be accessed" ErrorOutlook: Solve "The file username.ost is in use and…
  • Clear iTunes Library and PlaylistsClear iTunes Library and Playlists
  • How to Organize Your iTunes Music LibraryHow to Organize Your iTunes Music Library
  • Troubleshooting iTunes Error 9039Troubleshooting iTunes Error 9039
  • Apple TV: Solve "Verification Required" ErrorApple TV: Solve "Verification Required" Error
  • Excel: Fix "File is locked for editing/in use" ErrorsExcel: Fix "File is locked for editing/in use" Errors
  • Outlook 2013: "Library Not Registered" ErrorOutlook 2013: "Library Not Registered" Error
  • Plex: There Was an Unexpected Error Loading This LibraryPlex: There Was an Unexpected Error Loading This Library

Filed Under: Software Tagged With: itunes

Reader Interactions

Comments

  1. T.J. ELLIOTT says

    November 13, 2020 at 10:40 am

    Thanks so much! This was a lifesaver.

  2. Felip Gallardo says

    November 23, 2019 at 5:43 am

    Thanks, MacOS Option worked for me!

  3. Anna says

    October 14, 2019 at 10:19 pm

    tommy thanks for the solution! it worked for me!

  4. Ron says

    October 12, 2019 at 9:25 am

    Try this: Go to c:\Users\yourusername\Music\iTunes

    Notice the file iTunes Library.itl. It is probably corrupted and needs to be replaced. Do the following:

    1. Rename the iTunes Library.itl file to iTunes Library.itlOLD
    2. Look in the folder “Previous iTunes Libraries
    3. Copy the file you see, it will look something like iTunes Library 2019-04-12.itl to the iTunes directory.
    4. Rename it to iTunes Library.itl

    Connect your iPod and then launch iTunes to see if it works.

  5. Rory McBride says

    September 30, 2019 at 1:43 pm

    Neither of these options worked for me :-(

    Any other suggestions for windows 10?

  6. Alex T, B.S., M.B.A., PPGBA, Treas. says

    September 10, 2019 at 11:18 am

    Aloha Mitch Bartlett,

    Even though the “Locked” selection, in the Get Information screen is still shaded, and not accessible, I was able to do everything, step-by-step, as advised, to get my iTunes up and running. I tested iTunes by listening to one song, and it worked.

    Much Mahalo!

  7. Brian Balta says

    October 6, 2018 at 10:14 pm

    I tried all the suggestions here and it even still tells me “Access Denied” when I try the command prompt run settings. These files are not listed as read only and none of these commands allow access.

  8. tommy says

    August 25, 2018 at 9:11 pm

    I had this same problem and the solution was very simple, I have renamed the iTuneslibrary..itl to iTunesLibrary.old and hit enter … works like charm

  9. City Guy says

    May 30, 2018 at 8:36 am

    Hi

    Same problem for me which started after the latest WIN 10 update from a few weeks ago.I tried the suggested fixes listed above. Unfortunately, none solved the problem.
    But I found a solution for this issue on my computer, I simply the moved the entire iTunes folder from the WIN 10 Music folder to the C drive, opened iTunes, created a new library at the new iTunes folder location, and it now works perfectly.

    This suggests that something in the WIN 10 security/ access settings is the problem. I’m not sure I will diagnose and further, since iTunes is working, and I don’t believe there is a problem with keeping the iTunes folder on the C drive.

    Anyway, maybe this will be a viable solution for others.

  10. Deepak says

    May 2, 2018 at 9:44 am

    Thanks for the information it helped me to solve my problem..!!

  11. wakeelah says

    April 15, 2018 at 6:41 pm

    I never have this problem with window media player .. the worst that has happened album shows as unknown when they is a lot of different artists on one album. ITunes sucks .

  12. Ryan says

    September 22, 2017 at 9:30 pm

    one more thing: close keepvid music if you’re using it. it’s causing the problem.

  13. v says

    August 3, 2017 at 2:48 am

    worked on windows 10! thanks so much!

  14. Denis says

    January 4, 2017 at 5:05 pm

    I have used Onyx (on Mac). ran it and repaired Permissions. And everything works again.

  15. Mikey says

    November 1, 2016 at 11:52 pm

    just delete those three and open iTunes it will generate fresh files

  16. Steve says

    September 17, 2016 at 1:45 pm

    Thank you so much!! This worked on my Mac.

  17. oyeniyi ayobami says

    August 11, 2016 at 6:43 pm

    thank you it was really helpful, but after the library the library extra also got locked but repeated the process and it worked. thank you

  18. Jon says

    November 29, 2015 at 10:05 am

    I had this problem, but I had the far superior CopyTrans Manager open at the same time. Closed CopyTrans, all OK.

  19. Nicola Jones says

    November 4, 2015 at 2:59 pm

    I right clicked the library file, chose properties then advance. I then unchecked the ‘file is ready to archive’ box, saved and it opened iTunes

  20. Paul says

    September 24, 2015 at 4:59 pm

    I had the same problem with windows 10, I tried just about everything I had admin rights check all security rights, then by chance I right clicked the shortcut icon from iTunes bottom right was an advance button click that then it gave me option to run as administrator which I ticked but I was already administrator but it worked.

    So no more issues with iTunes lock

    Hope this helps Paul

  21. xying says

    September 10, 2015 at 1:47 am

    Hi Joerg, I just replaced the itl file, but it doesn’t work. Could you tell me where I can get the Genius.itdb and Extras.itdb to replace. Thanks a lot!

  22. joerg voellger says

    August 31, 2015 at 11:05 am

    I replaced the 3 files “iTunes Library .itl; iTunes Library Genius.itdb and iTunes Library Extras.itdb” by the files from my old macbook then I renamed the files,
    after restart and an update, it works fine.
    Thank You for the help

Did this help? Let us know! Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • Android 10: How to Adjust the Keyboard Size
  • OneNote Error Code 0xE00001AE – Fix
  • WhatsApp: How to Change Your Phone Number
  • Fix OneNote Error 0xe00001bb: Section Is Corrupted
  • Zoom: How to Show the Unread Message Icon
  • How To Calculate Tips on Android
  • What to Do If Chrome Download Needs Authorization
  • Fix OneNote Error 0xE401065D, 0xE000145C, 0xE4010640

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Follow me on Twitter, or visit my personal blog.

You May Also Like

  • Top 8 Itunes Alternatives for Windows
  • File Compression Utility
  • Encapsulated Postscript (EPS) File

© Copyright 2021 Technipages · All Rights Reserved · Privacy