Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

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

Mitch BartlettDecember 20, 2022 Comments (24)

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.

Contents

  • 1 Windows Option 1 – Windows File Settings
  • 2 Windows Option 2 – Using Attrib
  • 3 MacOS Instructions

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“.
    iTunes Library itl file Read Only Check Box
  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 Instructions

  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.

Categories: Software

Author Mitch Bartlett

Through my career that spans over 20 years I have become an expert in Microsoft Systems Administration, Android, and macOS. I started this site as a technical guide for myself and it has grown into what I hope is a useful knowledgebase for everyone.

You Might Also Like

  • Turn Off Video AutoPlay in Firefox and Chrome

    Judy SanhzAndroid
  • Visual Studio Logo

    Visual Studio: How to Turn Off Autocomplete

    Mitch BartlettSoftware
  • lastpass-invalid-response-error-fix

    How to Fix LastPass “Invalid Response” Error

    Madalina DinitaSoftware
  • powerpoint reverts to first slide fix

    How to Turn Text Upside Down in Microsoft PowerPoint

    Judy SanhzSoftware

Comments

  1. Taran says:
    July 26, 2021 at 9:12 am

    i get a “program open in windows host” error when i try to rename it

  2. jim says:
    February 17, 2021 at 12:43 am

    thanks, well written and to the point

  3. T.J. ELLIOTT says:
    November 13, 2020 at 10:40 am

    Thanks so much! This was a lifesaver.

  4. Felip Gallardo says:
    November 23, 2019 at 5:43 am

    Thanks, MacOS Option worked for me!

  5. Anna says:
    October 14, 2019 at 10:19 pm

    tommy thanks for the solution! it worked for me!

  6. 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.

  7. Rory McBride says:
    September 30, 2019 at 1:43 pm

    Neither of these options worked for me :-(

    Any other suggestions for windows 10?

  8. 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!

  9. 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.

  10. 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

  11. 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.

  12. Deepak says:
    May 2, 2018 at 9:44 am

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

  13. 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 .

  14. 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.

  15. v says:
    August 3, 2017 at 2:48 am

    worked on windows 10! thanks so much!

  16. Denis says:
    January 4, 2017 at 5:05 pm

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

  17. Mikey says:
    November 1, 2016 at 11:52 pm

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

  18. Steve says:
    September 17, 2016 at 1:45 pm

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

  19. 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

  20. 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.

  21. 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

  22. 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

  23. 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!

  24. 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

Leave a Reply

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

average laptop lifespan

What Is an Average Laptop Lifespan?

fix 0x80070302 windows update error

How to Fix the 0x80070302 Windows Update Error

how to allocate more memory to a program

How to Allocate More Memory to a Program in Windows

marvel rivals memory leak fix

Marvel Rivals Using Too Much Memory – How to Fix

how to create a macro in word

How to Create a Macro in Word

profile pic

The Experts Behind Technipages

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.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2025 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Legal & Privacy

© 2025 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on December 20, 2022 by Mitch Bartlett