From owner-freebsd-questions@FreeBSD.ORG Mon Jun 19 02:51:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C737B16A52E for ; Mon, 19 Jun 2006 02:51:23 +0000 (UTC) (envelope-from lmclouth@mn.rr.com) Received: from ms-smtp-04.rdc-kc.rr.com (ms-smtp-04.rdc-kc.rr.com [24.94.166.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9808C43D48 for ; Mon, 19 Jun 2006 02:51:21 +0000 (GMT) (envelope-from lmclouth@mn.rr.com) Received: from [192.168.2.14] (CPE-72-131-76-25.mn.res.rr.com [72.131.76.25]) by ms-smtp-04.rdc-kc.rr.com (8.13.6/8.13.6) with ESMTP id k5J2pJZO027312 for ; Sun, 18 Jun 2006 21:51:19 -0500 (CDT) Message-ID: <44960EDC.2020906@mn.rr.com> Date: Sun, 18 Jun 2006 21:41:32 -0500 From: Lewis McLouth User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 To: freebsd-questions Content-Type: multipart/mixed; boundary="------------060204060605070004030001" X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: pkgdb.db locked X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 02:51:23 -0000 This is a multi-part message in MIME format. --------------060204060605070004030001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello. When I run the command pkgdb -Fu, I get the response [Rebuilding the pkgdb in /var/db/pkg ... can't convert String into Integer: Cannot update the pkgdb!] I think I know where I goofed, so here's the story on my suspected mistake. I just upgraded from RELENG_5_4 to RELENG_6, which went fairly smooth. I'm now upgrading my ports but I was foolish today and ran portupgrade without first reading /usr/ports/UPDATING. I think this is the source of my problem (as in, running the command. Of course not reading UPDATING is another problem! but I don't need help with that). So, I first ran portupgrade -arR portupgrade did not upgrade linux_base-8 and instead reported that it was marked as IGNORE and to use linux_base-fc-4. So, I ran the commands cd /usr/ports/emulators/linux_base-8 make deinstall cd ../linux_base-fc-4 make install clean This it did fine, but when I now try to run pkgdb -Fu, I get the following output: [Rebuilding the pkgdb in /var/db/pkg ... can't convert String into Integer: Cannot update the pkgdb!] I then read /usr/ports/UPDATING, saw that linux_base-8 was dropped and replaced by linux_base-fc-4. So, I then did the suggested command. portupgrade -f -o emulators/linux_base-fc4 linux_base\* This produced [Rebuilding the pkgdb in /var/db/pkg ... [Rebuilding the pkgdb in /var/db/pkg ... ** Database file locked. Waiting. ** Timeout. Lock looks dead. Remove it. /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:261:in `origin': can't convert String into Integer: Cannot update the pkgdb!] (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:178:in `origin' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:977:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:971:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:993:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:997:in `sort_build!' from /usr/local/sbin/portupgrade:705:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize' from /usr/local/sbin/portupgrade:216:in `main' from /usr/local/sbin/portupgrade:2048 I've googled for the phrase 'pkgdb "Lock looks dead"' and various combinations of the output hoping to learn how to unlock pkgdb.db but with no luck. Plus, I cannot locate pkgdb.dg with ls -a /var/db/pkg My questions are: How do I remove the lock on pkgdb? Where does pkgdb.db go when its locked? find does not locate it. I ran find / pkgdb.db | grep pkgdb.db find: pkgdb.db: No such file or directory Also, if pkgdb.db was deleted, how do I rebuild the pkgdb.db? (pkgdb -f does not rebuild pkgdb.db, I just checked) The output of uname -a and ls /var/db/pkg are attached. Any help would be appreciated. Thanks Lewis --------------060204060605070004030001 Content-Type: text/plain; name="lspkg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lspkg" ORBit2-2.14.0_1 a2ps-a4-4.13b_3 acroread7-7.0.1_2,1 acroreadwrapper-0.0.20060221 apache-ant-1.6.5_1 artwiz-fonts-1.0_1 atk-1.11.4_1 autoconf-2.13.000227_5 autoconf-2.59_2 automake-1.4.6_2 avahi-0.6.10_3 bison-2.1_2 bitstream-vera-1.10_2 cairo-1.0.4_1 cdplayer.app-1.7_1 coreutils-5.2.1 cups-base-1.1.23.0_9 cvsup-16.1h_2 db4-4.0.14_1,1 db41-4.1.25_3 dbh-1.0.24_1 dbus-0.62 desktop-file-utils-0.11 djbfft-0.76_2 dri-6.4.1,2 expat-2.0.0_1 firefox-1.5.0.4,1 fontconfig-2.3.2_5,1 freefont-ttf-20060126 freefonts-0.10_2 freetype2-2.1.10_3 gamin-0.1.7_2 gcc-ooo-3.4.1_2 gconf2-2.14.0_2 gdbm-1.8.3_2 gettext-0.14.5_2 glib-1.2.10_12 glib-2.10.3 glitz-0.4.4_1 gmake-3.80_2 gnome-vfs-2.14.2_3 gnomehier-2.1_2 gnomemimedata-2.4.2 gnutls-1.2.11 google-earth-4 gtk-1.2.10_15 gtk-2.8.19 gtk-xfce-engine-2.2.8_1 help2man-1.36.4_1 hicolor-icon-theme-0.5 imake-6.9.0 intltool-0.35.0 javavmwrapper-2.3 jdk-1.4.2p8_3 jmk-x11-fonts-3.0 jpeg-6b_4 lame-3.96.1 lcms-1.14_1,1 libIDL-0.8.6_2 libXft-2.1.7_1 liba52-devel-0.7.4.2005112800 libart_lgpl2-2.3.17_1 libbonobo-2.14.0_2 libcdaudio-0.99.12p2_1 libdaemon-0.10_1 libdrm-2.0.1_1 libdvdcss-1.2.9_2 libdvdread-0.9.4_1 libgcrypt-1.2.2_1 libglade2-2.5.1_5 libgpg-error-1.3 libiconv-1.9.2_2 libmad-0.15.1b_2 libmikmod-3.1.11_1 libmng-1.0.9 libogg-1.1.3,3 libproplist-0.10.1_1 libtool-1.5.22_2 libungif-4.1.4_1 libvorbis-1.1.2,3 libxfce4gui-4.2.3_1 libxfce4mcs-4.2.3_1 libxfce4util-4.2.3.2_1 libxml2-2.6.26 linc-1.0.3_6 links-2.1.p21,1 linux-XFree86-libs-4.3.99.902_7 linux-atk-1.8.0_2 linux-expat-1.95.7_1 linux-fontconfig-2.2.3_4 linux-glib2-2.4.8_2 linux-gtk2-2.4.14_4 linux-jpeg-6b.33_1 linux-pango-1.6.0_2 linux-png-1.2.8_1 linux-sun-jdk-1.4.2.12 linux-tiff-3.6.1_6 linux_base-fc-4_1 linux_dri-4.4.0 m4-1.4.4 mozilla-1.7.13,2 mozilla-fonts-1.0_1 mplayer-gtk-0.99.7_15 mplayer-skins-1.1.2_1 nas-1.8 nasm-0.98.39,1 nspr-4.6.1 nss-3.11.1 ogle-0.9.2_5 ogle-gui-0.9.2_5 open-motif-2.2.3_2 openldap-client-2.2.30 openoffice.org-2.0.3rc5 p5-Archive-Zip-1.16 p5-Compress-Zlib-1.41 p5-File-Temp-0.16_4 p5-PathTools-3.18 p5-Scalar-List-Utils-1.18,1 p5-Test-Harness-2.62 p5-Test-Simple-0.62 p5-XML-Parser-2.34_2 p5-gettext-1.05_1 p5-type1inst-0.6.1_2 pango-1.12.3 patch-2.5.4 pcgen-5.8.0 pcre-6.6_1 perl-5.6.2_2 perl-5.8.8 pkgconfig-0.20_2 png-1.2.8_3 popt-1.7_1 portupgrade-2.1.4_2,1 python-2.4.3 qmake-3.3.6 qt-3.3.6_2 rpm-3.0.6_13 rpm2cpio-1.2_2 ruby-1.8.4_8,1 ruby18-bdb-0.5.9 samba-libsmbclient-3.0.22 sgifonts-1.0.1 shared-mime-info-0.17_1 startup-notification-0.8_2 svgalib-1.4.3_5 thunderbird-1.5.0.4 tiff-3.8.2 unmakeself-1.0 unzip-5.52_2 urwfonts-1.0_1 urwfonts-ttf-1.0.7b18 win32-codecs-3.1.0.p7_2,1 windowmaker-0.92.0_2 wmicons-1.0 xfce-4.2.3.2 xfce4-appfinder-4.2.3 xfce4-desktop-4.2.3_1 xfce4-fm-4.2.3_1 xfce4-icon-theme-4.2.3 xfce4-iconbox-4.2.3_1 xfce4-mcs-manager-4.2.3 xfce4-mcs-plugins-4.2.3_1 xfce4-mixer-4.2.3_1 xfce4-panel-4.2.3_1 xfce4-print-4.2.3_1 xfce4-session-4.2.3_1 xfce4-systray-4.2.3_1 xfce4-toys-4.2.3_1 xfce4-trigger-launcher-4.2.3_1 xfce4-utils-4.2.3_1 xfce4-wm-4.2.3.2_1 xmlcatmgr-2.2 xmms-1.2.10_6 xorg-6.9.0 xorg-clients-6.9.0_3 xorg-documents-6.9.0 xorg-fonts-100dpi-6.9.0_1 xorg-fonts-75dpi-6.9.0_1 xorg-fonts-cyrillic-6.9.0_1 xorg-fonts-encodings-6.9.0_1 xorg-fonts-miscbitmaps-6.9.0_1 xorg-fonts-truetype-6.9.0 xorg-fonts-type1-6.9.0 xorg-fontserver-6.9.0_1 xorg-libraries-6.9.0 xorg-manpages-6.9.0 xorg-nestserver-6.9.0 xorg-printserver-6.9.0_1 xorg-server-6.9.0_4 xorg-vfbserver-6.9.0_1 xterm-213 zip-2.31 --------------060204060605070004030001 Content-Type: text/plain; name="unamea" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="unamea" FreeBSD faith.WorkGroup 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jun 17 12:43:41 CDT 2006 root@faith.WorkGroup:/usr/obj/usr/src/sys/FAITH i386 --------------060204060605070004030001--