Due to a combination of fiddling and finger-trouble I have contrived to
delete part of my /var partition. Unfortunately, I have never thought to
back up /var, being transient data... Big mistake!
Anyway, the most pressing problem at the moment is that apt fails, due
to missing status data:
E: Could not open file /var/lib/dpkg/status - open (2: No such file or
directory)
E: The package lists or status file could not be parsed or opened.
How do I recover from this?
--
Tony van der Hoff | mailto:tony@vanderhoff.org
Buckinghamshire, England |
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
A daily backup of /var/lib/dpkg/status is maintained by the system in
/var/backups. Has this directory survived your accident?
--
Best regards,
Jörg-Volker.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: ivmm3m$kvr$1@dough.gmane.org">http://lists.debian.org/ivmm3m$kvr$1@dough.gmane.org
07-14-2011, 12:22 PM
Tony van der Hoff
broken dpkg status
On 14/07/11 13:06, Jörg-Volker Peetz wrote:
A daily backup of /var/lib/dpkg/status is maintained by the system in
/var/backups. Has this directory survived your accident?
Thanks for the reply. Unfortunately it hasn't.
--
Tony van der Hoff | mailto:tony@vanderhoff.org
Buckinghamshire, England |
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Due to a combination of fiddling and finger-trouble I have contrived to
delete part of my /var partition. Unfortunately, I have never thought to
back up /var, being transient data... Big mistake!
For the archives, there is a useful script at
http://linuxmafia.com/faq/Debian/package-database-rebuild.html
which scans the /usr/share/doc directory for installed packages, and
rebuilds the database from that.
Don't know yet how fully it's fixed, but it looks like I've got most of
the database back; apt and synaptic at least are working ... phew!
Cheers, Tony
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Due to a combination of fiddling and finger-trouble I have contrived to
delete part of my /var partition. Unfortunately, I have never thought to
back up /var, being transient data... Big mistake!
For the archives, there is a useful script at
http://linuxmafia.com/faq/Debian/package-database-rebuild.html
which scans the /usr/share/doc directory for installed packages, and
rebuilds the database from that.
Don't know yet how fully it's fixed, but it looks like I've got most of
the database back; apt and synaptic at least are working ... phew!
Cheers, Tony
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
On Thu, Jul 14, 2011 at 11:44 +0100, Tony van der Hoff wrote:
> Due to a combination of fiddling and finger-trouble I have contrived
> to delete part of my /var partition. Unfortunately, I have never
> thought to back up /var, being transient data... Big mistake!
>
> Anyway, the most pressing problem at the moment is that apt fails,
> due to missing status data:
>
> E: Could not open file /var/lib/dpkg/status - open (2: No such file
> or directory)
> E: The package lists or status file could not be parsed or opened.
>
> How do I recover from this?
Uh, tough one. You can try the following which relies on the fact that every
package install documentation in /usr/share/doc/PKG and will reinstall all
those packages:
On Jo, 14 iul 11, 11:44:04, Tony van der Hoff wrote:
> Due to a combination of fiddling and finger-trouble I have contrived
> to delete part of my /var partition. Unfortunately, I have never
> thought to back up /var, being transient data... Big mistake!
Just for the archives: /var is not transient, but variable data.
Transient would be the new /run and /tmp, which is why they can be put
on tmpfs
Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic