February 14th, 2009 Software | comments_icon25 Comments

How to fix “Failed to install catalog files” error

I was installing Service Pack 3 for Windows XP and suddenly it gave “Failed to install catalog files” error and interrupted process. I am big fan of figure it out method instead of classic nuke and reinstall Windows so took my time fixing it.

Symptoms

  • error appeared during install process, after initial system check but before any changes were made;
  • error appeared at creating system restore point stage which made issue even more weird because system restore was disabled;
  • both offline install package and online update gave same error, excluding corrupted setup files.

Support

After some googling I found extensive Microsoft Knowledge Base article aptly named You cannot install some updates or programs. Article covers numerous and quite different errors related to updates, as well as over ten suggestions on fixing.

There is no direct relation between specific errors and fixes so I had to read everything and figure out where to start. Most common culprits seemed to be cryptographic service and security catalog. Catalog stuff sounded like a closest match to error.

Steps to fix

Security catalog is part of Windows that handles digital signatures for updates, system file protection and other stuff. It resides in two folders:

  • C:\Windows\system32\CatRoot
  • C:\Windows\system32\CatRoot2

Fixes suggested:

  • deleting CatRoot2 (safe operation as it is re-created by Windows on next boot);
  • manual cleanup in CatRoot (not safe to delete) and other folders related to updates.

Exact steps I took for cleanup:

  1. Deleted CatRoot2 folder. Some files inside were locked by system so I had to use FileASSASSIN and schedule pending delete.
  2. Deleted all tmp*.cat files in CatRoot subfolders.
  3. Deleted all kb*.cat files in CatRoot subfolders.
  4. Deleted all oem*.* files in C:\Windows\INF folder.
  5. Deleted all files and folders in C:\Windows\SoftwareDistribution folder.

After that SP3 installed perfectly.

Overall

Security Catalog is not known to cause much trouble but it can create issues. Cleanup is not as easy as with usual temporary files because deleting too much may break Windows Update completely.

RSSGet updates via RSS

25 Responses to “How to fix “Failed to install catalog files” error”

  1. gökhan says:

    best solution, thank you

  2. Rarst says:

    @gökhan

    Glad it was useful to you. :)

  3. Travis says:

    Thanks so much for posting this. Worked for me as well.

  4. Rarst says:

    @Travis

    You are welcome. :) It seems to be one of less known troubles so I am glad that my roundup works for others as well as it did for me.

  5. Daniel says:

    Just used above steps and it worked. Thank you.

  6. Rarst says:

    @Daniel

    You are welcome. :) Seems my recipe is about right enough to help without tons of additional stuff MS offers to try.

  7. Vamshi says:

    Hi,

    Its worked fine we are able to install SP2 on server 2003 also with the above concept

  8. Rarst says:

    @Vamshi

    Win2003 is close to XP in mechanics so it’s not unusual for same recipes to work. Good luck to your server. :)

  9. sammie says:

    Thanks. Worked great for me for getting past the “catalog files” error when updating from XP Home SP2 to SP3. I was getting other strange errors with XP SP2 (lost network card, auto login of Skype, loss of ability for user login (but OK in safe mode). Now all OK. Don’t really know if deleting (corrupt) Cat stuff or the installation of SP3 was the cure, but either way, I’m a Happy Punter. Thanks again for posting fix.

  10. Rarst says:

    @sammie

    You are welcome. :)

    Rest of stuff fixed was probably because SP3 replaced some previously broken system files. It overwrites like half of OS (especially if unpatched).

  11. Kilgore Trout says:

    Well, that seems to have worked. Thanks for the solution. I was having a really frustrating time with this. :)

  12. Rarst says:

    @Kilgore Trout

    Heh, I so understand. :)

  13. Debbie says:

    Thank you for posting this solution. I’ve struggled with trying to get a machine upgraded to SP3 for over a week. This solution was the one to finally take care of the problem.

  14. Rarst says:

    @Debbie

    It would be pure evil to not share it. :) Glad it resolved issue for you as well.

  15. PaulM says:

    We used this to install updates KB961118 and KB967715. This was an issue for hours of troubleshooting. No other solutions were working. Thanks so much!

  16. Rarst says:

    @PaulM

    You are welcome. :) Thanks for info that it can come up on non-SP updates as well.

  17. WOW! Wish I had found this site 6 hours ago! You rock!!!!! THANKS!!!!!

  18. Rarst says:

    @Steve Berlin

    You are welcome. :)

  19. webster says:

    Q; i have an hp nx6125 which is refusing to see the hard drive at times,if i try to load win xp2 it passes an error which says”failed to install catalog files xp” and @ times it say setup did not find any hard disks installed.i am not a technical person.Plzzzzz help

  20. Rarst says:

    @webster

    It’s bit hard to explain but motherboards can operate SATA hard drives in two modes IDE (legacy) and AHCI. XP is oldish so it won’t do clean install (if that’s what you are doing) with AHCI unless drivers are provided.

    On other hand I am not sure this is your problem. Could be just as well hardware issue or anything in between. I strongly suggest you contact HP support (if you have that option) or start looking for friendly computer geek who will sort it out for you.

  21. Bob says:

    Excellent work. Help me load SVC pack 3 on a clients computer that had this issue.

    Added to my list of XP fixes.

  22. Rarst says:

    @Bob

    Glad it was of use. :) Windows is already two versions ahead but XP has such a strong base that I wonder how many more clients with this issue we’ll see in following years.

  23. e.r.lehmann says:

    Nice solution… the link and soltion by Microsoft suggests that the error lies with corruption relating to the Cryptographic Services

    key: ‘you cannot install some updates’
    http://support.microsoft.com/kb/822798

  24. e.r.lehmann says:

    Along the same vane, I’ve seen perfectly good installs totally blown because of permission errors in the registry…

    key: ‘When you try to install Windows XP Service Pack’
    http://support.microsoft.com/kb/949377

  25. Rarst says:

    @e.r.lehmann

    Thanks for your input and links! Method in post seems to help often, but is certainly not universal.

Leave a Reply