Subject: pkg_chk -u is broken
To: None <tech-pkg@NetBSD.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: tech-pkg
Date: 12/04/2005 01:42:45
Hi,
just try to upgrade your packages with pkg_chk -u as a non root user and
notice this:
01:33 /usr/bin/env /usr/sbin/pkg_delete -K /var/db/pkg -r glib2-2.8.3
pkg_delete: cannot open pkgdb: Permission denied
pkg_delete: had problem removing irssi-icb-0.14nb6
pkg_delete: cannot open pkgdb: Permission denied
** '/usr/bin/env /usr/sbin/pkg_delete -K /var/db/pkg -r glib2-2.8.3' failed
01:33 /usr/bin/env /usr/sbin/pkg_delete -K /var/db/pkg -r libgsf-1.12.3nb2
pkg_delete: cannot open pkgdb: Permission denied
pkg_delete: had problem removing xsane-0.97
pkg_delete: cannot open pkgdb: Permission denied
** '/usr/bin/env /usr/sbin/pkg_delete -K /var/db/pkg -r libgsf-1.12.3nb2' failed
I use the following lines in my /etc/mk.conf:
.if exists(/usr/pkg/bin/sudo)
SU_CMD=/usr/pkg/bin/sudo /bin/tcsh -c
.endif
There wasn't even an try to invoke sudo for the pkg_delete.
Bernd