I'll thank you, too. This looks to be a good generic fix for corrupt
.list files, provided that the debs are good.
This has probably come up enough to go in the FAQ, so I'll do it.
On Fri, 2003-02-14 at 14:45, Christopher A. Smith wrote:
> A couple of tweaks were needed since "dpkg-deb -c" prints verbose output
> similar to what tar's -v option does. To rebuild the libgnomeui2-dev.list
> file, I did the following:
>
> $ dpkg-deb -c /sw/fink/debs/libgnomeui2-dev_2.0.6-2_darwin-powerpc.deb | awk '{if
>($6 == "./") { print "/."; } else if (substr($6, length($6), 1) == "/") {print
>substr($6, 2, length($6) - 2); } else { print substr($6, 2, length($6) - 1);}}' >
>/sw/var/lib/dpkg/info/libgnomeui2-dev.list
>
> Once I got past that, a similar problem was discovered with metacity-setup
> 0.7.1-3; not only was the list file trashed, but the deb file was a C
> program. Again, I've no clue how that happened. I was unable to remove
> this with "fink remove" or "dpkg -r --force...", and I couldn't use the
> trick above to reconstruct the package list since there was no package to
> speak of. So I just rm'ed the list and deb files for metacity-setup and
> then ran "fink rebuild metacity-setup". Dropped in just fine.
>
> Now, "fink update-all" is chugging along just fine.
>
> Thanks!
>
> --------------------------------------
> Christopher A. Smith Arlington, VA USA [EMAIL PROTECTED]
>
> On Fri, Feb 14, 2003 at 02:17:09PM -0500, Alexander Hansen wrote:
> > Give it a try--I don't think there's a well-known answer. Somebody had
> > a corrupt .list file yesterday, and I put a copy of mine on the web, so
> > if your idea doesn't work, we can always do that.
> >
> > On Fri, 2003-02-14 at 13:28, Christopher A. Smith wrote:
> > > Ouch, this isn't good. libgnomeui2-dev.list is a C header file, not a
> > > file listing. A sample:
> > >
> > > ----------------------------------------------------------------
> > > /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
> > > /*
> > > * A client-side GtkObject which exposes the
> > > * Evolution:BookListener interface.
> > > *
> > > * Author:
> > > * Nat Friedman ([EMAIL PROTECTED])
> > > *
> > > * Copyright 2000, Ximian, Inc.
> > > */
> > >
> > > #ifndef __E_BOOK_TYPES_H__
> > > #define __E_BOOK_TYPES_H__
> > >
> > > #include <libgnome/gnome-defs.h>
> > > ----------------------------------------------------------------
> > >
> > > How that happened is beyond me.
> > >
> > > Would it be sufficient to recreate this list by running something like:
> > >
> > > $ dpkg-deb -c /sw/fink/debs/libgnomeui2-dev_2.0.6-2_darwin-powerpc.deb >
>/sw/var/lib/dpkg/info/libgnomeui2-dev.list
> > >
> > > Or is there a more elegant/proper solution?
> > >
> > > Thanks!
> > >
> > > --------------------------------------
> > > Christopher A. Smith Arlington, VA USA [EMAIL PROTECTED]
> > >
> > > On Fri, Feb 14, 2003 at 01:01:54PM -0500, Alexander Hansen wrote:
> > > > Let's see what the file looks like. Do a:
> > > >
> > > > cat /sw/var/lib/dpkg/info/libgnomeui2-dev.list
> > > >
> > > >
> > > > On Fri, 2003-02-14 at 11:13, Christopher A. Smith wrote:
> > > > > While trying to update various packages this morning via update-all (this
> > > > > is off of CVS, by the way), an error was printed that is preventing me from
> > > > > installing or updating packages. This has happened with fink 0.5.1.cvs
> > > > > with package manager version 0.11.2 under Mac OS X 10.2.3 and 10.2.4.
> > > > >
> > > > > For example,
> > > > >
> > > > > ------------------------------------------------------------------
> > > > > $ fink update popt popt-shlibs
> > > > > sudo /sw/bin/fink update popt popt-shlibs
> > > > > Information about 2194 packages read in 1 seconds.
> > > > >
> > > > > The following 2 packages will be installed or updated:
> > > > > popt popt-shlibs
> > > > >
> > > > > [ compile steps snipped ]
> > > > >
> > > > > Writing control file...
> > > > > dpkg-deb -b root-popt-1.7-1
>/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs
> > > > > dpkg-deb: building package `popt' in
>`/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt_1.7-1_darwin-powerpc.deb'.
> > > > > ln -sf
>/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt_1.7-1_darwin-powerpc.deb
>/sw/fink/debs/
> > > > > Writing control file...
> > > > > Writing shlibs file...
> > > > > dpkg-deb -b root-popt-shlibs-1.7-1
>/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs
> > > > > dpkg-deb: building package `popt-shlibs' in
>`/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt-shlibs_1.7-1_darwin-powerpc.deb'.
> > > > > ln -sf
>/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt-shlibs_1.7-1_darwin-powerpc.deb
> /sw/fink/debs/
> > > > > rm -rf /sw/src/root-popt-shlibs-1.7-1
> > > > > rm -rf /sw/src/root-popt-1.7-1
> > > > > dpkg -i
>/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt-shlibs_1.7-1_darwin-powerpc.deb
> /sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt_1.7-1_darwin-powerpc.deb
> > > > > (Reading database ... dpkg: error processing
>/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt-shlibs_1.7-1_darwin-powerpc.deb
> (--install):
> > > > > files list file for package `libgnomeui2-dev' contains empty filename
> > > > > Errors were encountered while processing:
> > > > >
>/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt-shlibs_1.7-1_darwin-powerpc.deb
> > > > > Processing was halted because there were too many errors.
> > > > > ### execution of dpkg failed, exit code 1
> > > > > Failed: can't batch-install packages:
>/sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt-shlibs_1.7-1_darwin-powerpc.deb
> /sw/fink/dists/unstable/main/binary-darwin-powerpc/libs/popt_1.7-1_darwin-powerpc.deb
> > > > > ------------------------------------------------------------------
> > > > >
> > > > > The error about libgnomeui2-dev having an empty filename thwarts the
> > > > > installation of any package. I've tried removing libgnomeui2 and
> > > > > reinstalling it from scratch, but the same error is printed during the
> > > > > attempt to remove. For example,
> > > > >
> > > > > ------------------------------------------------------------------
> > > > > $ sudo dpkg -r --force-all libgnomeui2-dev
> > > > > (Reading database ... dpkg: error processing libgnomeui2-dev (--remove):
> > > > > files list file for package `libgnomeui2-dev' contains empty filename
> > > > > Errors were encountered while processing:
> > > > > libgnomeui2-dev
> > > > > Processing was halted because there were too many errors.
> > > > > ------------------------------------------------------------------
> > > > >
> > > > > Any suggestions on how I can get past this?
> > > > >
> > > > > Thanks!
> > > > >
> > > > > --------------------------------------
> > > > > Christopher A. Smith Arlington, VA USA
>[EMAIL PROTECTED]
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte
> > > > > are you planning your Web Server Security? Click here to get a FREE
> > > > > Thawte SSL guide and find the answers to all your SSL security issues.
> > > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> > > > > _______________________________________________
> > > > > Fink-users mailing list
> > > > > [EMAIL PROTECTED]
> > > > > https://lists.sourceforge.net/lists/listinfo/fink-users
> > > > --
> > > > Alexander K. Hansen
> > > > Associate Research Scientist, Columbia University
> > > > visiting MIT Plasma Science and Fusion Center
> > > > Levitated Dipole Experiment
> > > > 175 Albany Street, NW17-219
> > > > Cambridge, MA 02139-4213
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte
> > > > are you planning your Web Server Security? Click here to get a FREE
> > > > Thawte SSL guide and find the answers to all your SSL security issues.
> > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> > > > _______________________________________________
> > > > Fink-users mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/fink-users
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.NET email is sponsored by: FREE SSL Guide from Thawte
> > > are you planning your Web Server Security? Click here to get a FREE
> > > Thawte SSL guide and find the answers to all your SSL security issues.
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> > > _______________________________________________
> > > Fink-users mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/fink-users
> > --
> > Alexander K. Hansen
> > Associate Research Scientist, Columbia University
> > visiting MIT Plasma Science and Fusion Center
> > Levitated Dipole Experiment
> > 175 Albany Street, NW17-219
> > Cambridge, MA 02139-4213
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by: FREE SSL Guide from Thawte
> > are you planning your Web Server Security? Click here to get a FREE
> > Thawte SSL guide and find the answers to all your SSL security issues.
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> > _______________________________________________
> > Fink-users mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/fink-users
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your SSL security issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> _______________________________________________
> Fink-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/fink-users
--
Alexander K. Hansen
Associate Research Scientist, Columbia University
visiting MIT Plasma Science and Fusion Center
Levitated Dipole Experiment
175 Albany Street, NW17-219
Cambridge, MA 02139-4213
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users