Now I see what the problem is:  /sw/var/lib/dpkg/status hae become
corrupt for some reason.  You can verify this by looking at the file. 
It should be a text file with contents something like this:

Package: qt3
Status: install ok installed
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
Source: qt3
Version: 3.1.1-5
Replaces: qt, qt2, qt3-doc, qt3-bin, qt3-dev
Provides: qt3-bin
Depends: qt3-shlibs, qt3-designer, qt3-linguist, qt3-doc
Suggests: libpng3, libjpeg, freetype2
Conflicts: qt, qt2
Description: Cross-Platform GUI application framework.
 .
 Web site: http://www.trolltech.com/
 .
 Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
...

The easiest fix that I can think of is to see if you have a file called
/sw/var/lib/dpkg/status-old on your system.  If so, then see if it is a
valid file (i.e. its contents are text with format like the above).  If
so, then do the following commands

sudo rm /sw/var/lib/dpkg/status
sudo cp /sw/var/lib/dpkg/status-old /sw/var/lib/dpkg/status

Then you should be back to normal.  You will probably be be missing one
or more packages that you installed, since this is a backup of your
status before the last install--just reinstall the package(s).

On Mon, 2003-02-24 at 03:35, Aleksi Aaltonen wrote:
> Hello,
> 
> I tried to reinstall apt base package as you suggested, but I got the  
> following error message.
> 
> _______________________________________________
> The following package will be reinstalled:
>   apt
> The following 11 additional packages will be installed:
>   apt-shlibs base-files bzip2 debianutils dpkg fink gettext gzip libiconv
>   ncurses tar
> Do you want to continue? [Y/n]
> dpkg -i  
> /sw/fink/dists/unstable/main/binary-darwin-powerpc/base/base-files_1.6- 
> 1_darwin-powerpc.deb
> ### execution of dpkg failed, exit code 2
> Failed: can't install package base-files-1.6-1
> dpkg: parse error, in file `/sw/var/lib/dpkg/status' near line 3:
>   invalid package name (must start with an alphanumeric)
> _______________________________________________
> 
> 
> On maanantai, helmi 24, 2003, at 00:44 Europe/Helsinki, Alexander  
> Hansen wrote:
> 
> > I'll put it on the list, so that some more brainpower can be brought to
> > bear.
> >
> > It looks like the package database has forgotten about your installed
> > packages--you get thd darwin and macosx packages because they get read
> > from your system.
> >
> > It looks like you didn't lose any of the files installed by the  
> > packages,
> > (since fink works), so you don't necessarily need to start from  
> > scratch.
> >
> > My best recommendation is to try to reinstall one of the base packages.
> > If you have the Section (I believe--I'm not at my Mac right now) column
> > enabled in Fink Commander pick one of the ones labled base.
> >
> > On Sun, 23 Feb 2003, Aleksi Aaltonen wrote:
> >
> >> Unfortunately it is not only FinkCommander realted problem:
> >>
> >> ____________________________________________________
> >> [ua78d37:~] aake% fink list -i
> >> Information about 2108 packages read in 4 seconds.
> >>
> >>   i   darwin           6.4-1        [virtual package representing the
> >> kernel]
> >>   i   macosx           10.2.4-1     [virtual package representing the
> >> system]
> >> [ua78d37:~] aake%
> >> ____________________________________________________
> >>
> >> I have installed at least phpmyadmin, mysql and curl packages (and
> >> other packages needed by those three) using fink... it seems something
> >> has gone very wrong.
> >>
> >> aleksi
> >>
> >>
> >>
> >>
> >> On sunnuntai, helmi 23, 2003, at 18:50 Europe/Helsinki, Alexander
> >> Hansen wrote:
> >>
> >>> Does "fink list -i" show the correct installed packages?  If so, then
> >>> this
> >>> may be a Fink Commander specific issue, and you'll want to check the
> >>> Fink
> >>> Commander mailing lists (go to http://finkcommander.sourceforge.net).
> >>>
> >>> On Sun, 23 Feb 2003, Aleksi Aaltonen wrote:
> >>>
> >>>> Hi,
> >>>>
> >>>> I recently installed FinkCommander, which is a nice piece of  
> >>>> software.
> >>>> However, after installing phphmyadmin with FinkCommander, Fink
> >>>> (cmd-line fink and FinkCommander) seems to have lost the information
> >>>> what packages I have installed. FinkCommandet claims that the only
> >>>> installed software are darwinf and macosx virtual packages. Is there
> >>>> any way to rebuild this information or fix the problems some other
> >>>> way?
> >>>>
> >>>> aleksi
> >>>>
> >>>>
> >>>>
> >>>> -------------------------------------------------------
> >>>> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
> >>>> The most comprehensive and flexible code editor you can use.
> >>>> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day  
> >>>> Trial.
> >>>> www.slickedit.com/sourceforge
> >>>> _______________________________________________
> >>>> Fink-beginners mailing list
> >>>> [EMAIL PROTECTED]
> >>>> https://lists.sourceforge.net/lists/listinfo/fink-beginners
> >>>>
> >>>
> >>> --
> >>> 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
> >>>
> >>
> >>
> >
> > --
> > 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: SlickEdit Inc. Develop an edge.
> The most comprehensive and flexible code editor you can use.
> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
> www.slickedit.com/sourceforge
> _______________________________________________
> Fink-beginners mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/fink-beginners
-- 
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to