Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 and /var/db/receipts/Tor 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'

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

# pkglist | grep -i 'Tor'
share|improve this question
+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 5 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

Your Answer


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.