Tuesday, April 15, 2014

FreeBSD: unable to remove packages?

usslab02:/ # pkg_deinstall squid-3.2.3_1
[Updating the pkgdb in /var/db/pkg ... - 176 packages found (-0 +1) . done]
---> Deinstalling 'squid-3.2.3_1'
./+DEINSTALL: Permission denied
pkg_delete: deinstall script returned error status
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! squid-3.2.3_1 (pkg_delete failed)



in this case the 'noexec' mount option on the file system stops things from being from run that file system


usslab02:/var/db/pkg # mount | fgrep /var/db/pkg
zroot/var/db/pkg on /var/db/pkg (zfs, local, noexec, nosuid, nfsv4acls)




usslab02:/var/db/pkg # mv squid-3.2.3_1 /usr/



usslab02:/var/db/pkg # ln -s /usr/squid-3.2.3_1




now teh system will let you remove it

No comments:

Post a Comment