Subject: How to recover from a totally screwed-up /var/db/pkg?
To: None <tech-pkg@NetBSD.org>
From: Vincent <10.50@free.fr>
List: tech-pkg
Date: 11/03/2007 21:20:44
Hi,
it seems my /var/db/pkg system has, for an unknown cause, run completly
amok. For example, I get this kind of message:
=> Registering installation for nspluginwrapper-0.9.91.5
nspluginwrapper-0.9.91.5 requires installed package glib2-2.14.2
nspluginwrapper-0.9.91.5 requires installed package libX11-1.1.3
nspluginwrapper-0.9.91.5 requires installed package libXt-1.0.5
nspluginwrapper-0.9.91.5 requires installed package suse_base-10.0nb3
nspluginwrapper-0.9.91.5 requires installed package suse_gtk2-10.0nb4
nspluginwrapper-0.9.91.5 requires installed package suse_x11-10.0nb2
===> Installing in /usr/pkg
make: don't know how to make deinstall. Stop
make: stopped in /usr/pkg
*** Error code 2
That "installing in /usr/pkg" after a "make update" seems totally out of
place, something must be wrong but I have no clue what. Similary, when
updating, the package system tries to wipe out a lot of packages and
just give up. E.g:
[1] Segmentation fault (core dumped) nspluginwrapper -l |
Done(1) grep ^/
Executing `/bin/rmdir /usr/pkg/lib/netscape/plugins 2>/dev/null || true'
pkg_delete: package `suse_base-10.0nb3' is required by other packages:
openoffice2-bin-2.3.0
rar-bin-3.6.0
suse_compat-10.0nb1
suse_openmotif-10.0nb1
opera-9.23
suse_gtk2-10.0nb4
suse_x11-10.0nb2
suse_fontconfig-10.0nb2
suse_freetype2-10.0nb3
suse_locale-10.0nb1
suse_expat-10.0nb1
suse_libtiff-10.0nb3
suse_libjpeg-10.0nb1
suse_libpng-10.0nb2
libflashsupport-1.0.2098
suse_openssl-10.0nb2
suse_gtk2-10.0nb4: removing GTK/Pango module configuration
suse_gtk2-10.0nb4: rebuilding run-time library search paths database
pkg_delete: package `suse_x11-10.0nb2' is required by other packages:
suse_openmotif-10.0nb1
opera-9.23
openoffice2-bin-2.3.0
pkg_delete: package `glib2-2.14.2' is required by other packages:
pidgin-2.2.1
libpurple-2.2.0
mplayer-plugin-seamonkey-3.45
seamonkey-1.1.5
mlterm-2.9.2nb4
gqview-2.1.5nb1
inkscape-0.45.1nb1
gtkspell-2.0.11nb3
easytag-2.1.2
gimp-2.4.0
librsvg-2.18.2nb2
libgnomeprintui-2.18.1
gnome-icon-theme-2.18.0
gucharmap-1.10.1
xine-ui-0.99.5nb1
hicolor-icon-theme-0.10
xcdroast-0.98a15nb7
vim-gtk2-7.1.116
libcroco-0.6.1nb4
libgnomeui-2.18.1nb1
libbonoboui-2.18.0nb1
libgnomecanvas-2.14.0nb2
libglade2-2.6.2
libgtkhtml-2.6.3nb7
gail-1.20.0
gnome-keyring-0.8.1
audacity-1.3.0b
wxGTK-2.6.3nb2
gtkmm-2.10.7
xlockmore-5.25
xvid4conf-1.12nb4
p5-gtk2-1.122
gliv-1.9.6
dvdisaster-0.70.4nb1
libglade-2.6.2
celestia-1.4.1nb4
gnash-0.8.1
gtkglext-1.2.0nb2
poppler-glib-0.6.1
gtk2+-2.12.1
atk-1.20.0
libgnomeprint-2.18.2
pango-1.18.2
libgsf-1.14.7
libgnome-2.18.0nb1
libbonobo-2.16.0
gnome-vfs-2.18.1nb3
GConf-2.18.0.1nb1
ORBit2-2.14.3nb1
libIDL-0.8.7
mplayer-1.0rc9nb9
vp-1.5nb7
SDL_image-1.2.5
SDL_mixer-1.2.7nb1
smpeg-0.4.4nb13
lush-1.1
blender-2.41nb3
transcode-1.0.2nb9
mjpegtools-1.8.0nb6
SDL-1.2.11nb1
arts-1.5.5
gnome-vfs2-2.18.1nb2
dbus-glib-0.72
scribus-1.3.3.7
shared-mime-info-0.19
gst-plugins0.10-oss-0.10.4
gst-plugins0.10-good-0.10.4
gst-plugins0.10-base-0.10.11
gstreamer0.10-0.10.11
glibmm-2.12.5
p5-Event-ExecFlow-0.62
p5-AnyEvent-1.02
p5-glib2-1.120
enchant-1.3.0
meanwhile-1.0.2
desktop-file-utils-0.14
pkg_delete: package `libXt-1.0.5' is required by other packages:
mplayer-plugin-seamonkey-3.45
seamonkey-1.1.5
mlterm-2.9.2nb4
gqview-2.1.5nb1
pidgin-2.2.1
inkscape-0.45.1nb1
gtkspell-2.0.11nb3
easytag-2.1.2
gimp-2.4.0
librsvg-2.18.2nb2
libgnomeprintui-2.18.1
gnome-icon-theme-2.18.0
gucharmap-1.10.1
xine-ui-0.99.5nb1
hicolor-icon-theme-0.10
xcdroast-0.98a15nb7
vim-gtk2-7.1.116
libcroco-0.6.1nb4
libgnomeui-2.18.1nb1
libbonoboui-2.18.0nb1
libgnomecanvas-2.14.0nb2
libglade2-2.6.2
libgtkhtml-2.6.3nb7
gail-1.20.0
gnome-keyring-0.8.1
audacity-1.3.0b
wxGTK-2.6.3nb2
gtkmm-2.10.7
xlockmore-5.25
xvid4conf-1.12nb4
p5-gtk2-1.122
gliv-1.9.6
dvdisaster-0.70.4nb1
libglade-2.6.2
celestia-1.4.1nb4
gnash-0.8.1
gtkglext-1.2.0nb2
poppler-glib-0.6.1
gtk2+-2.12.1
libgnomeprint-2.18.2
pango-1.18.2
cairomm-1.2.2
cairo-1.4.8
glitz-0.5.6nb2
qt3-tools-3.3.7
scribus-1.3.3.7
qt3-libs-3.3.7
mplayer-1.0rc9nb9
vp-1.5nb7
SDL_image-1.2.5
SDL_mixer-1.2.7nb1
smpeg-0.4.4nb13
lush-1.1
blender-2.41nb3
transcode-1.0.2nb9
mjpegtools-1.8.0nb6
SDL-1.2.11nb1
qt4-4.3.2
qt4-tools-4.3.2
qt4-docs-4.3.2
qt4-libs-4.3.2
py24-mol-0.98nb4
glut-6.4.2
glx-utils-6.4.2
cinepaint-0.21.2
fltk-1.1.7nb4
glu-7.0.1
xmms-1.2.10nb7
xf86-input-keyboard-1.2.2
xf86-input-mouse-1.2.2
xf86-video-ati-6.7.195
modular-xorg-server-1.4
MesaLib-7.0.1nb2
xpdf-3.02
ddd-3.3.11nb2
ted-fr-2.16nb1
ted-2.16nb5
openmotif-2.2.3nb3
xwave-2.0nb1
xload-1.0.1
xclock-1.0.2
xxgdb-1.12nb1
xdm-1.1.4nb1
libXaw-1.0.3
fvwm-themes-0.6.2nb8
fvwm-2.4.20
xpmroot-2.4.20
libxkbui-1.0.2
wmii-20071003
original MD5 checksum failed, not deleting:
/usr/pkg/emul/linux/etc/fonts/fonts.conf
Executing `/usr/pkg/emul/linux/sbin/ldconfig -r /usr/pkg/emul/linux
2>/dev/null'
pkg_delete: unable to completely remove directory
'/usr/pkg/emul/linux/etc/fonts'
pkg_delete: couldn't entirely delete package `suse_fontconfig-10.0nb2'
(perhaps the packing list is incorrectly specified?)
Executing `/usr/pkg/emul/linux/sbin/ldconfig -r /usr/pkg/emul/linux
2>/dev/null'
Executing `/usr/pkg/emul/linux/sbin/ldconfig -r /usr/pkg/emul/linux
2>/dev/null'
pkg_delete: package `suse_x11-10.0nb2' is required by other packages:
suse_openmotif-10.0nb1
opera-9.23
openoffice2-bin-2.3.0
Executing `/usr/pkg/emul/linux/sbin/ldconfig -r /usr/pkg/emul/linux
2>/dev/null'
pkg_delete: package `suse_freetype2-10.0nb3' is required by other packages:
openoffice2-bin-2.3.0
Executing `/usr/pkg/emul/linux/sbin/ldconfig -r /usr/pkg/emul/linux
2>/dev/null'
pkg_delete: package `suse_base-10.0nb3' is required by other packages:
openoffice2-bin-2.3.0
rar-bin-3.6.0
suse_compat-10.0nb1
suse_openmotif-10.0nb1
opera-9.23
suse_x11-10.0nb2
suse_freetype2-10.0nb3
suse_locale-10.0nb1
libflashsupport-1.0.2098
suse_openssl-10.0nb2
pkg_delete: package `perl-5.8.8nb3' is required by other packages:
fvwm-themes-0.6.2nb8
fvwm-2.4.20
pidgin-2.2.1
libpurple-2.2.0
mplayer-plugin-seamonkey-3.45
seamonkey-1.1.5
mlterm-2.9.2nb4
gqview-2.1.5nb1
inkscape-0.45.1nb1
gtkspell-2.0.11nb3
easytag-2.1.2
gimp-2.4.0
librsvg-2.18.2nb2
libgnomeprintui-2.18.1
gnome-icon-theme-2.18.0
gucharmap-1.10.1
xine-ui-0.99.5nb1
hicolor-icon-theme-0.10
xcdroast-0.98a15nb7
vim-gtk2-7.1.116
libcroco-0.6.1nb4
libgnomeui-2.18.1nb1
libbonoboui-2.18.0nb1
libgnomecanvas-2.14.0nb2
libglade2-2.6.2
libgtkhtml-2.6.3nb7
gail-1.20.0
gnome-keyring-0.8.1
audacity-1.3.0b
wxGTK-2.6.3nb2
gtkmm-2.10.7
xlockmore-5.25
xvid4conf-1.12nb4
p5-gtk2-1.122
gliv-1.9.6
dvdisaster-0.70.4nb1
libglade-2.6.2
celestia-1.4.1nb4
gnash-0.8.1
gtkglext-1.2.0nb2
poppler-glib-0.6.1
gtk2+-2.12.1
atk-1.20.0
libgnomeprint-2.18.2
pango-1.18.2
libgsf-1.14.7
libgnome-2.18.0nb1
libbonobo-2.16.0
gnome-vfs-2.18.1nb3
GConf-2.18.0.1nb1
ORBit2-2.14.3nb1
libIDL-0.8.7
mplayer-1.0rc9nb9
vp-1.5nb7
SDL_image-1.2.5
SDL_mixer-1.2.7nb1
smpeg-0.4.4nb13
lush-1.1
blender-2.41nb3
transcode-1.0.2nb9
mjpegtools-1.8.0nb6
SDL-1.2.11nb1
arts-1.5.5
gnome-vfs2-2.18.1nb2
dbus-glib-0.72
scribus-1.3.3.7
shared-mime-info-0.19
gst-plugins0.10-oss-0.10.4
gst-plugins0.10-good-0.10.4
gst-plugins0.10-base-0.10.11
gstreamer0.10-0.10.11
glibmm-2.12.5
[...]
Has anybody any clue what to do to clean up? I've try to wipe the whole
tree and checkout it anew, pkg_add rebuild-tree and rebuild, to no avail.
Thanks
Vincent