Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 3 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.