Remove deleted/corrupt package(s) from pkgutil index?

Hi,
I'm running ML on a system, and I get complains about an old installation of XQuartz, but this version, or actually any version of XQuartz doesn't exist on the system. I get this message from brew:
$ brew doctor
Warning: Your XQuartz (2.6.4) is outdated
Please install XQuartz 2.7.7:
  https://xquartz.macosforge.org
However there are some traces of an old X11 package, digging a little with pkgutil etc. shows traces of a old package:
$ pkgutil --pkgs | egrep -i "x11|XQuartz"
org.x.x11.pkg
$ pkgutil --pkg-info org.x.x11.pkg
package-id: org.x.x11.pkg
version: (null)
volume: /
location: (null)
install-time: 1221163667
…but only "general" directories are left on the system, no files AFAICT:
$ for i in `pkgutil --files org.x.x11.pkg`;do ls -ld /$i 2>/dev/null; done
drwxrwxr-x+ 217 root  admin  7378 Jan 10 01:47 /Applications
drwxrwxr-x+ 35 root  admin  1190 Jan 14 11:13 /Applications/Utilities
drwxr-xr-x+ 4 root  wheel  136 Jun 26  2014 /System
drwxr-xr-x  75 root  wheel  2550 Jun 26  2014 /System/Library
drwxr-xr-x  148 root  wheel  5032 Jan  5 19:10 /System/Library/LaunchAgents
drwxr-xr-x  239 root  wheel  8126 Jan  6 23:17 /System/Library/LaunchDaemons
drwxr-xr-x@ 8 root  wheel  272 Dec 19 14:35 /private
drwxr-xr-x  118 root  wheel  4012 Jan 14 10:47 /private/etc
drwxr-xr-x  3 root  wheel  102 Jan 14 11:13 /private/etc/manpaths.d
drwxr-xr-x  3 root  wheel  102 Jan 14 11:13 /private/etc/paths.d
drwxr-xr-x@ 10 root  wheel  340 Jan 14 11:22 /usr
drwxr-xr-x  1070 root  wheel  36380 Jan  6 23:17 /usr/bin
drwxr-xr-x  281 root  wheel  9554 Jan 14 11:33 /usr/include
drwxr-xr-x  314 root  wheel  10676 Jan 14 11:33 /usr/lib
drwxr-xr-x  53 root  wheel  1802 Dec 19 13:20 /usr/share
drwxr-xr-x  13 root  wheel  442 Jan 10 03:15 /usr/share/man
drwxr-xr-x  1853 root  wheel  63002 Jan  5 19:10 /usr/share/man/man1
And trying to delete it using pkgutil with force doesn't work:
$ pkgutil -vf --forget org.x.x11.pkg
Unknown error Error Domain=NSCocoaErrorDomain Code=4 "“org.x.x11.pkg.bom” couldn’t be removed." UserInfo=0x7fde1bd981f0 {NSFilePath=/var/db/receipts/org.x.x11.pkg.bom, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7fde1bdbb380 "The operation couldn’t be completed. No such file or directory"}.
Forgot package 'org.x.x11.pkg' on '/'.
$ ls /var/db/receipts/org.x.x11.pkg
ls: /var/db/receipts/org.x.x11.pkg: No such file or directory
Even thought that I applied -f (force), it's still not removed from pkgutil's db/index:
$ pkgutil --pkgs | egrep -i "x11|XQuartz"
org.x.x11.pkg
So, is there a way I fix/rebuild pkgutil's db/index?

No, the bill of materials file for org.x.x11.pkg perhaps wasn't corrupt (since listing the content worked), I'll grant you that,
It was rather an error in the way pkgutil handled the (at least deletion of) old package, ref. my first post:
$ pkgutil -vf --forget org.x.x11.pkg
Unknown error Error Domain=NSCocoaErrorDomain Code=4 "“org.x.x11.pkg.bom” couldn’t be removed." UserInfo=0x7fde1bd981f0 {NSFilePath=/var/db/receipts/org.x.x11.pkg.bom, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7fde1bdbb380 "The operation couldn’t be completed. No such file or directory"}.
Forgot package 'org.x.x11.pkg' on '/'.
$ pkgutil --pkgs | egrep -i "x11|XQuartz"
org.x.x11.pkg
So I'd say the above is a separate pkgutil problem too.
I'll see if I can look into how homebrew searches for XQuartz installations later.
Thanks,

Similar Messages

  • I accidentally removed/deleted the Printer icon from my dock - how can I get it back?

    I accidentally removed/deleted the Printer icon from my dock - how can I get it back?  I've tried dragging and dropping from the Print window - no luck.  I tried to drag from the Systems folder - no luck.   IOS 10.9.4

    Well I have always had a printer icon in the Dock, launched or not launched (as in the screen shot below,) right next to the scan icon. Neither of which are launched at the present time.
    What happens if you run a print job, control click the printer icon>Options>Keep in Dock
    MacBook Pro (15-inch Mid 2012), OS X Mavericks (10.9.4), i7 500GB 16GB RAM iPhone5 iOS7.1.2

  • How do I remove a corrupt repeating event from my iPhone 3Gs?

    I thought that this would be easy as there is a solution to this problem , when it occurs in iCal, however, this corrupt repeating Calendar event  on my iPhone is not visble on my iMac/iCal.
    I have confirmed that Calendar is synching with iCal.
    can anybody assist?

    marcia626 wrote:
    how do i remove a second appple id from my Iphone
    Not quite sure what you are asking... but...
    Settings > iTunes and App Store > Apple ID = Sign Out... Then Sign In using the preferred Apple ID.
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622

  • Need to delete corrupt digital book from icloud

    Hi have a corrupt digital book sent to my device from Amazon
    Before they can resend a valid copy I need to delete original corrupt copy from ICloud.
    I do not know how to do this so can anyone help?

    If you cannot get this information from the seller
    Removing a device from a previous owner’s account
    You need to return the Device for a refund, as you will not be able to re-activate it.

  • Mac Mail: How do I remove deleted emails' subject history from mailbox search

    Even though the emails are long deleted (& deleted from trash) when I enter in the mail search field old email subjects still appear?
    Is there a way to stop this happening?

    Hi there,
    You may need to rebuild the mailbox in order to update the search index. Take a look at the article below for more information.
    Lion Mail: Rebuild mailboxes
    http://support.apple.com/kb/ph4952
    -Griff W.

  • Help with removing/deleting medical collection!

    Hello!! I am new to this forum and I am so glad that I found it. The wealth of information shared on this site is remarkable. Thank You All!!! I am looking for guidance with removing/deleting a medical collection from my CR. I researched the HIPPA process and guidelines (which I know cannot be discussed on this site) but I have not heard back from the creator. My question is has anyone had success with removing a medical collection without using the HIPPA process? If so, can you please share your strategy with me? The CA is Sav-it Enterprises in NJ and the amount owed is $300 from 2011 and I am willing to pay in full, today, in order to get it deleted. I sent them a pay for delete letter and they sent me the statement from the doctor's office and updated the account with the CRA. However, I did notice that the date of first delinquency is incorrect, if that even matters. I don’t know what I should do now or how I should move forward with getting it deleted. Any information you can share with me will be extremely helpful. This is the only remaining collection account that I have and I need it removed in order to increase my scores to qualify for a mortgage. Thanks in advance.

    Yes, I do have proof that they date is incorrect - its off by 1 year. Also, the billing statement they sent me shows the date as 2011 but they are reporting it as 2012. I also have explanation of benefits from my insurance provider which confirms that date as 2011. Okay. I will call them today to offer full payment and then send a GW letter shortly after paying. I really hope it works because I really need to get this removed. 

  • How to remove a corrupt games app. Cannot get into mcBook Pro as soon as I reboot the app appears.

    HOw do I remove a corrupt game app from my McBook Pro. As soon as I reboot the app appears preventing me from doing anything. Also the game does not open it is just the main screen of the game.

    Hi Shirpat,
    Welcome to the Apple Support Communities!
    What I would recommend in this situation would be trying to Force Quit the application. I know that you said the application opens as soon as the computer display comes on and you cannot access anything else. You can use the key command Command-Option-Escape to bring up the force quit menu and quit the game causing the issue. Please use the following article for more information.
    OS X: How to quit an unresponsive application using Force Quit
    http://support.apple.com/kb/HT3411
    Have a great day,
    Joe

  • E72 cannot delete corrupted music files

    I just cant delete corrupted music files from my E72.
    Please help!

    i had the same issue with my e90 and my n900.
    the only way i was able to get rid of them was to connect to my pc via cable and then delete from my pc.
    give it a try. see if that helps you.

  • Can I delete a corrupt message diretly from the In Box in the Mail folder

    I received an e-mail that has an .eml attachment. Mail would not download the entire message with the attachment - although it continued trying to download once it started to load in my in box. I deleted this e-mail message from the server. Now Mail seems to be caught in a continuous loop of "Fetching new mail" The only way I can exit the program is to force quit. When I open the program again the same thing happens. When I try to move this partial e-mail to the trash or delete it, bounce it or forward it I get an "opening mailbox and synchronizing with file system" message
    or the program freezes. When I try to copy this e-mail to another folder the message is "resuming interrupted append"
    Is there a way to delete just a message from any of the in/out boxes?
    It seems like all messaged, in/out/sent etc are all compressed together like a stuffit file but there's not way to get in and delete just a particular message. The only other way I have been able to get rid of a partially corrupted file like this is to remove the entire account or in this instance, the accounts in box, move it to another folder on the desktop, reopen Mail and let it rebuild the accounts in box, then copy and paste everything except for the corrupt file into that. There's got to be an easier way!
    Any help or suggestions would be greatly appreciated.
    Thanks,

    The problem I have is it will go into the trash, but then I have the same problem deleting it from the trash! Even when it looks like it's deleted and I reboot Mail, the file returns to the same spot or in the original In Box.
    The problem, I think, lies in the actual corrupted file that's embedded in the in/out/trash etc file in the main Mail folder. From what I understand, Mac has fixed this problem in 10.4 and one can go and delete that particular message/file. In 10.3 land, they are all hidden. Thanks for brainstorming with me!

  • SCCM 2012r2 - Remove "invisible" packages/applications from Distribution Point

    Hello alltogether,
    I've encountered the following issue:
    Our distribution points are displaying applications/packages as "In Progress - Waiting for Prestage content".
    These packages doesn't exist anymore. Neither as prestage file nor in the config manager itself. We never tried to apply this package by using a prestage file because such a file never existed.
    Even if I open the "content" tab of one distribution point, I can't find these packages in there.
    The exact status of this package is the following:
    Message: Distribution Content
    Message Detail: Distribution Manager instructed Package Transfer manager to send Package "x" to distribution point "y".
    Status Type: In Progress
    I want to remove these "ghost" packages from the Distribution Status overview. Anyone has a clue how to accomplish this?
    Thanks in advance!
    Best Regards
    Feyh

    Hello,
    thanks for your answer!
    Unfortunately no, there is no information about these files.
    Yesterday we installed a new one, extracted all of our prestage files on it and watched the status. The Packages weren't listed in the "Distribution Point Configuration Status".
    After some time we added the new DP to our general DP-group where all of our packages/applications are assigned to. Now the "non-existing" packages are added with the "in Progress" status.
    I had a look into "Distribution Point groups -> Our group -> properties -> content" but these packages aren't displayed in the list. Some of the packages are now in the "waiting for prestage content" state, others are staying with the "Detail will
    be available after the server finishes proccessing ...".
    We managed to remove one of the packages by deleting it from the database.
    The following statement removed it from the Distribution status overview. However, we still are able to find the package in the database.
    select  * from SMSPackageswhere PkgID = 'P100003B'
    DELETE from SMSPackages
    where PkgID = 'P100003B'
    Apparently the delete-statement affected 72 rows. But we are having no clue which. As long as we are not sure we killed anything important we are not going to do this with the other packages because it's the productive system. We can't reproduce this in our
    test system...

  • Error while deleting from BIA index

    HI EXPERTS GETTING BELOW ERROR PLZ GIVE CLARITY ON THIS:
         1.A communication error occured, with the TREX TcpIp     
         2.Error while deleting from BIA index; reconstruction required     
    THANKS &REGARDS,
    rAMESH,

    Dear Ramesh,
    Please check the connection with BIA. Please ask the Basis team to check the BW to BIA connection if they maintain it.
    YOu can go to rsddbiamon2 and check BIA connection availibility for more details.
    If that is right please try redoing the step at which you faced error and it should help.
    Please close the question if you have got the answer or solved it.
    Regards,
    Den

  • HT3842 Does iTunes store the original music file and copy it into a separate folder? If i delete the original file from finder will it remove it from my iTunes library?

    Hi, on my last PC when transferring music to my new MacBook Pro i noticed i had about 6 duplicated of each song in every album i took hours in removing them.
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    If i delete the original file from finder will it remove it from my iTunes library or vice versa. I didnt want to lose any music like i have some how managed to on my old computer.
    Or should i keep both files of it in the Music folder and also iTunes library folder?
    Which is best ?

    DrewPowell wrote:
    I Just wondered Does iTunes store the original music file and then copy it into a separate folder?
    It does both at the same time.
    When you add files to iTunes, it copies them into /Music/iTunes/iTunes media/ folder. The original file remains where it was.
    You can drag a file to /Music/iTunes/iTunes media/Automatically add to iTunes/ folder.
    This will add to iTunes and move it to /Music/iTunes/iTunes media/.
    I keep a shortcut of this folder on my desktop then simply drag files to the shortcut to add to iTunes.
    Then there are no "extra" files around.

  • How can I delete or remove my apple account ID from iPhone i want to sell or give out as a gift?

    how can I delete or remove my apple account ID from an iPhone I want to sell or give out as a gift?

    You didn't see this bit?
    "Your content won't be deleted from iCloud when you erase your device."
    You only lose iCloud data from other devices if you manually delete the data. If you Erase all content and data, you keep iCloud data elsewhere.

  • TS3274 How to remove an old iCloud account from my IPad.  The account (email) was on my dad's name and he resently change it and now i can't  reset or delete his iCloud account without his password.  Please advise on the procedure.  Thanks.

    How to remove an old iCloud account from my IPad.  The account (email) was on my dad's name and he resently change it and now i can't  reset or delete his iCloud account without his password.  Please advise on the procedure.  Thanks.

    If you are trying to activate an iPad or iPhone and it is asking for a previous owners Apple ID and password, you have encountered the Activation Lock. This is a security feature that prevents thieves from setting up and using a stolen or lost iPad or iPhone. You have no alternative. You must use the previous owner's password to get permission to use the device. If you cannot get the password your father put on the iPad you will never be able to activate the device and no one can help you do it.

  • Despite my best efforts, I am unable to remove iTunes 11.1.4 from my PC, this being made necessary because the original installation had a flaw and did not load properly. Effor to use the control panel, deleting dll. files, etc. all failed. iTune out??

    Despite my best efforts, I am unable to remove iTunes 11.1.4 from my PC, this being made necessary because the original installation had a flaw and did not load properly. Effor to use the control panel, deleting dll. files, etc. all failed. And, of course, on startup, a window opens with the error and tells me find QTMovie.dll and delete it because this may be the source of the hangup. Also, in trying to delete iTunes, I get the additional message that I must get approval from the System Administrator to take this action. I am the System Administrator.
    Any ideas would be welcomed.
    Thank you.
    James
    <E-mail Edited by Host>

    Thank you for asking this question.  I'm having the same issues. 
    Liz

Maybe you are looking for