Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some time ago I must have installed Tor and some other tools that came along with it. Later I must have uninstalled it but I don't remember how. Now I find these packages in my package database but I cannot remove them with --forget. The files from the package don't exist anymore.

The /var/db/receipts/Tor 0.2.0.35.bom and /var/db/receipts/Tor 0.2.0.35.plist files don't exist anymore. I've tried adding some empty files and then the error disappears but the package stays in the database. I've also tried creating a package with the same pkgid but that didn't work either.

Or is this a problem with the space in the package id?

I'm trying this on 10.7.3.

# pkglist | grep -i 'Tor 0.2.0.35'
Tor 0.2.0.35

# pkgutil --forget 'Tor 0.2.0.35'
Unknown error Error Domain=NSCocoaErrorDomain Code=4 "“Tor 0.2.0.35.bom” couldn’t be removed." UserInfo=0x7f9b4d071dd0 {NSFilePath=/var/db/receipts/Tor 0.2.0.35.bom, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x103b15c10 "The operation couldn’t be completed. No such file or directory"}.
Forgot package 'Tor 0.2.0.35' on '/'.

# pkglist | grep -i 'Tor 0.2.0.35'
Tor 0.2.0.35
share|improve this question
1  
+1 I LOLed at the title. – music2myear Mar 8 '12 at 18:06
    
Is this a fink thingy? – William Jackson Mar 8 '12 at 18:30
    
I think I've played with fink at some point but this was Tor, privoxy and a Firefox Tor button extension which all installed themselves with horrible package names in the package list. – magiconair Mar 9 '12 at 16:45
up vote 6 down vote accepted

If you don't have this file in /var/db/receipts, check /Library/Receipts and there it should be. If you remove this manually then it will disappear from 'pkgutil --pkgs'.

share|improve this answer
    
Lo and behold! That was the correct answer. Thanks a bunch. – magiconair Aug 30 '12 at 16:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .