Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Apr 2009 10:43:10 -0400
From:      Jerry <gesbbb@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: "unable to completely remove directory" during deinstall
Message-ID:  <20090422104310.4134e4f0@scorpio>
In-Reply-To: <4324dbec0904220716l6f3f0108td4a67dc58f46e10d@mail.gmail.com>
References:  <4324dbec0904220716l6f3f0108td4a67dc58f46e10d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/9nBxKXWGRU4N9NjIVAjzoxf
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Wed, 22 Apr 2009 09:16:22 -0500
Richard DeLaurell <richard.delaurell@gmail.com> 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?

--=20
Jerry
gesbbb@yahoo.com

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

--Sig_/9nBxKXWGRU4N9NjIVAjzoxf
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAknvLQYACgkQBvaKIJWWCO3ewgCfaBVtZvFchIav9WLOnndbCaKB
sGQAoJMo2RKynPeLEew/fpjo3mGjvHOO
=1e0F
-----END PGP SIGNATURE-----

--Sig_/9nBxKXWGRU4N9NjIVAjzoxf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090422104310.4134e4f0>