[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#388708: apt: Upgrading to this version makes status file unparseable



On Fri, Sep 22, 2006 at 12:49:22AM -0500, Manoj Srivastava wrote:
> Package: apt
> Version: 0.6.46
> Severity: grave

Thanks for your bugreport.
 
> #_> aptitude -u
>  ... upgrade ...
> #_> aptitude -vvv upgrade
> Reading package lists... Error!
> E: Unable to parse package file /var/lib/dpkg/status (1)
> E: The package lists or status file could not be parsed or opened.
> Reading package lists... Error!
> E: Unable to parse package file /var/lib/dpkg/status (1)
> E: The package lists or status file could not be parsed or opened.
> [1]    22606 exit 255   aptitude -vvv upgrade
> 
>         Tested this on two machines. Downgrading to 0.6.45 fixes the
>  bug. Look below for a sequence of action:
[..]
 
I can't reproduce this bug here. Could you please put a gziped copy of
your /var/lib/dpkg/status file somewhere to download? Or send it to me
directly? 

I would also be interessted if this code here works and if it dies, at
what package:
-------------------------------8<----------------------------------
#!/usr/bin/env python
import apt_pkg

tagfile = apt_pkg.ParseTagFile(open("/var/lib/dpkg/status","r"));

while tagfile.Step():
   print tagfile.Section.get("Package");
-------------------------------8<----------------------------------


Thanks,
 Michael



-- 
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo



Reply to: