Re: "unable to completely remove directory" during deinstall



On Wed, 22 Apr 2009 09:16:22 -0500
Richard DeLaurell <richard.delaurell@xxxxxxxxx> wrote:

This is undoubtedly a very "newbie" question, but I have seen this
type of error
a few times recently:

pkg_delete: unable to completely remove directory '/directory.name'
pkg_delete: couldn't entirely delete package (perhaps the packing list
is incorrectly specified?)

It occurs at the end of a "deinstall" as a matter of updating a port
"by hand".

What is the proper procedure to correct this? Run "pkgdb -F"? Rm the
offending files/dirs by hand? Both?

The updated packages seem to run okay afterward if I ignore these
errors; however, I am certain that they
are really just swept under the carpet for the time being and will
reemerge in the future (at a moment of maximum inconvenience no doubt).

Also, is "make deinstall" the same as "uninstall"?

First, there is a good chance that the 'pkg-plist' file is not correct.
It is usually harmless, however. You can usually just do a:

make deinstall reinstall distclean

Prior to updating, running 'pkgdb -Ffuv' is usually a safe concept. If
there are any problems, they will usually become self evident.

What port are you referencing? I assume 'by hands' means that you are
not using a port tool to manage updating a specific port. Is that
correct?

--
Jerry
gesbbb@xxxxxxxxx

A prisoner of war is a man who tries to kill you and fails, and then
asks you not to kill him.

Sir Winston Churchill, 1952

Attachment: signature.asc
Description: PGP signature



Relevant Pages

  • Re: marked as broken
    ... The port is pear-Archive_Tar-1.3.1 and I am wondering what I can do to get past this short of updating my whole ports tree....which I am afraid of doing since this is a production machine....and because I dont have much experience doing it either. ... When I try to install the package, it seems that the dependencies within the package are looking for a version of Apache that is off by an update...1.3.33 vs 1.3.34! ... Not sure what would be the best way to handle this....my brain is a mess today and im looking for the easiest method of getting this done...of which I am not choosing the correct ways today, so any help would be appreciated. ...
    (freebsd-questions)
  • Re: ports/126853: ports-mgmt/portaudit: speed up audit of installed packages
    ... I think it won't be very hard: I'll try to see how to extend portaudit ... port sources to give the port version that includes both mentioned ... Affected package: ruby-1.8.6.111_4,1 ... Download is made in the mirror mode, ...
    (freebsd-hackers)
  • Re: Strange capture of my eth0 interface.
    ... but I doubt if there is any connection. ... so I did a fresh install. ... > then seeing that the package manager does indeed detect the switch - don't ... > Port numbers are like telephones. ...
    (comp.os.linux.security)
  • Re: amd64 questions
    ... so if you want to install a 64 bit package ... install of a 32-bit pkg with its dependencies. ... them (ie libraries in /usr/lib32). ... have a broken copy of the tarball the port is using. ...
    (freebsd-hackers)
  • Re: amd64 questions
    ... amd64 object files. ... so if you want to install a 64 bit package ... My copy of the port sets that for amd64 already. ...
    (freebsd-hackers)