On Tue, Jan 29, 2002 at 10:34:04AM +0100, Erik van der Meulen wrote: > Hi - I have managed to spoil my Potato installation big time, I think. > I have the following error with whatever dpkg command I give: > > dpkg: failed to open package info file `/var/lib/dpkg/status' for > reading: No such file or directory
Ouch. How did that happen? If it happened as a result of dpkg doing something weird, it is *definetely* worth reporting a bug on it (check the outstanding bugs first). Does the /var/lib/dpkg directory exist? If not, then you probably have worse problems, and you ought to ignore the rest of this mail. > Is there any way to regenerate these files from the current > configuration? Check in /var/backups. I *think* that dpkg by default creates backups in here before doing stuff - (make backups of the backups in here too, before to you fiddle too much with dpkg). Hopefully, something as simple as # cp /var/backups/dpkg.status.0 /var/lib/dpkg/status should do the trick. Note: I think that the backups in here are performed *before* dpkg modifies the file. So you may loose out on the last (few?) installations/de-installations you did. Re-installing (or re-deinstalling) should bring your /var/lib/dpkg/status up-to-date with reality. > Any suggestions much appreciated! > > -- > Erik van der Meulen <[EMAIL PROTECTED]> -- Karl E. Jørgensen [EMAIL PROTECTED] www.karl.jorgensen.com ==== Today's fortune: When a trainstation is were a train stops what is a workstation?
pgp6juXoPU8rI.pgp
Description: PGP signature