Date: Thu, 31 Mar 2005 07:25:38 +0200 From: Abu Khaled <khaled.abu@gmail.com> To: KP <newbie@freebsdblog.org> Cc: freebsd-questions@freebsd.org Subject: Re: Packages Corrupted Message-ID: <a64c109e0503302125114c1122@mail.gmail.com> In-Reply-To: <006901c535b1$24a8e860$6402a8c0@kevin> References: <c6ef380c0503290643698b1320@mail.gmail.com> <c6ef380c05032906585dffa9f2@mail.gmail.com> <004601c535a9$e707a430$6402a8c0@kevin> <200503302042.21595.ringworm01@gmail.com> <005b01c535ad$da87bbb0$6402a8c0@kevin> <a64c109e0503302058157d4475@mail.gmail.com> <006901c535b1$24a8e860$6402a8c0@kevin>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 Mar 2005 07:18:54 +0200, KP <newbie@freebsdblog.org> wrote: > > ----- Original Message ----- > From: "Abu Khaled" <khaled.abu@gmail.com> > To: "KP" <newbie@freebsdblog.org> > Cc: "Michael C. Shultz" <ringworm01@gmail.com>; > <freebsd-questions@freebsd.org> > Sent: Thursday, March 31, 2005 6:58 AM > Subject: Re: Packages Corrupted > > > On Thu, 31 Mar 2005 06:55:22 +0200, KP <newbie@freebsdblog.org> wrote: > > > ----- Original Message ----- > > > From: "Michael C. Shultz" <ringworm01@gmail.com> > > > To: <freebsd-questions@freebsd.org> > > > Sent: Thursday, March 31, 2005 6:42 AM > > > Subject: Re: Packages Corrupted > > > > > > > On Wednesday 30 March 2005 08:27 pm, KP wrote: > > > > > I installed apache, php and mysql with pkg_add, unfortunately I > > > > > messed up the directory /var/db during moving and linking. Now when > I > > > > > pkg_delete or pkg_add any php related packages, always got the error > > > > > message: "the package info for package 'pkg' is corrupt", tried > > > > > "pkgdb -F" and it didn't work. This is a new server running 5.3 > > > > > release, just installed serveral packages, but with the error > > > > > message, I feel the system totally corrupted. Is it possible to fix > > > > > this? Many thanks in advance! > > > > > Kevin > > > > > > > > If /var/db is "messed up" there is no way to know which installed > > > > package is associated with which port. If you don't see any package > > > > names listed under /var/db/pkg they are as good as not being installed > > > > as far as the ports system is concerned. You should never fool with > > > > anything under /var/db/pkg, always leave that to the ports system to > > > > handle. What is the status of /var/db/pkg now? Are there any package > > > > names listed in it? > > > > > > > > -Mike > > > > > > Thanks for your reply, Mike. > > > /var/db/pkg looks good > > > # ls > > > apache-1.3.33 mysql-client-4.0.21 php4-pcre-4.3.9 > > > pkgdb.db > > > bison-1.75_2 perl-5.8.5 php4-posix-4.3.9 > > > portupgrade-20041226_1 > > > cvsup-without-gui-16.1h php4-bz2-4.3.9 php4-session-4.3.9 > > > ruby-1.8.2_3 > > > expat-1.95.8 php4-ctype-4.3.9 php4-tokenizer-4.3.9 > > > ruby18-bdb1-0.2.2 > > > gettext-0.13.1_1 php4-extensions-1.0 php4-xml-4.3.9 > > > unixbench-4.1.0 > > > libiconv-1.9.2_1 php4-mysql-4.3.9 php4-zlib-4.3.9 > > > m4-1.4.1 php4-overload-4.3.9 pkg > > > > > > But If I try to delete a package, it will go to the error message in the > > > end. > > > > > > # pkg_delete php4-xml-4.3.9 > > > pkg_delete: package 'php4-xml-4.3.9' is required by these other packages > and > > > may not be deinstalled: php4-extensions-1.0 > > > > > > # pkg_delete php4-extensions-1.0 > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > > > > > > > _______________________________________________ > > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > > > > Is pkg in /var/db/pkg/ a file or directory how did it end up there. > > > > -- > > Kind regards > > Abu Khaled > > > On Thu, 31 Mar 2005 06:55:22 +0200, KP <newbie@freebsdblog.org> wrote: > > > ----- Original Message ----- > > > From: "Michael C. Shultz" <ringworm01@gmail.com> > > > To: <freebsd-questions@freebsd.org> > > > Sent: Thursday, March 31, 2005 6:42 AM > > > Subject: Re: Packages Corrupted > > > > > > > On Wednesday 30 March 2005 08:27 pm, KP wrote: > > > > > I installed apache, php and mysql with pkg_add, unfortunately I > > > > > messed up the directory /var/db during moving and linking. Now when > I > > > > > pkg_delete or pkg_add any php related packages, always got the error > > > > > message: "the package info for package 'pkg' is corrupt", tried > > > > > "pkgdb -F" and it didn't work. This is a new server running 5.3 > > > > > release, just installed serveral packages, but with the error > > > > > message, I feel the system totally corrupted. Is it possible to fix > > > > > this? Many thanks in advance! > > > > > Kevin > > > > > > > > If /var/db is "messed up" there is no way to know which installed > > > > package is associated with which port. If you don't see any package > > > > names listed under /var/db/pkg they are as good as not being installed > > > > as far as the ports system is concerned. You should never fool with > > > > anything under /var/db/pkg, always leave that to the ports system to > > > > handle. What is the status of /var/db/pkg now? Are there any package > > > > names listed in it? > > > > > > > > -Mike > > > > > > Thanks for your reply, Mike. > > > /var/db/pkg looks good > > > # ls > > > apache-1.3.33 mysql-client-4.0.21 php4-pcre-4.3.9 > > > pkgdb.db > > > bison-1.75_2 perl-5.8.5 php4-posix-4.3.9 > > > portupgrade-20041226_1 > > > cvsup-without-gui-16.1h php4-bz2-4.3.9 php4-session-4.3.9 > > > ruby-1.8.2_3 > > > expat-1.95.8 php4-ctype-4.3.9 php4-tokenizer-4.3.9 > > > ruby18-bdb1-0.2.2 > > > gettext-0.13.1_1 php4-extensions-1.0 php4-xml-4.3.9 > > > unixbench-4.1.0 > > > libiconv-1.9.2_1 php4-mysql-4.3.9 php4-zlib-4.3.9 > > > m4-1.4.1 php4-overload-4.3.9 pkg > > > > > > But If I try to delete a package, it will go to the error message in the > > > end. > > > > > > # pkg_delete php4-xml-4.3.9 > > > pkg_delete: package 'php4-xml-4.3.9' is required by these other packages > and > > > may not be deinstalled: php4-extensions-1.0 > > > > > > # pkg_delete php4-extensions-1.0 > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > pkg_delete: the package info for package 'pkg' is corrupt > > > > > > > > > _______________________________________________ > > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > > > > Is pkg in /var/db/pkg/ a file or directory how did it end up there. > > > > -- > > Kind regards > > Abu Khaled > > Oh, it's a directory and contains several packages. I moved the db directory > to other place and made a link, but must have run a silly command, later I > found the old one still existed :-(. > > I moved all files under /var/db/pkg/pkg/ into /var/db/pkg/, the probelms > seems fixed! Thank God! I reinstalled php and mysql packages without any > error messages. Thank you very much! > > # pwd > /home/db/pkg/pkg > # ll > total 18 > drwxr-xr-x 2 root wheel 512 Mar 30 02:51 apache-1.3.33 > drwxr-xr-x 2 root wheel 512 Mar 30 02:47 expat-1.95.8 > drwxr-xr-x 2 root wheel 512 Mar 30 02:51 mysql-client-4.0.21 > drwxr-xr-x 2 root wheel 512 Mar 30 02:51 mysql-server-4.0.21 > drwxr-xr-x 2 root wheel 512 Mar 29 23:43 ncftp-3.1.8 > drwxr-xr-x 2 root wheel 512 Mar 30 02:47 perl-5.8.5 > drwxr-xr-x 2 root wheel 512 Mar 30 02:51 php4-4.3.9 > drwxr-xr-x 2 root wheel 512 Mar 30 02:51 php4-mysql-4.3.9 > dr-xr-xr-x 2 root wheel 512 Mar 30 02:53 qpopper-4.0.5_1 > > You are welcome. Credit also goes to Michael. If he had not asked you about details of your problem, then I would have never noticed it. Teamwork pays off :) -- Kind regards Abu Khaled
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a64c109e0503302125114c1122>