LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-23-2009, 09:55 PM   #1
vendtagain
Member
 
Registered: Sep 2009
Distribution: Slackware, Debian, Mac OS X, Zenwalk, Puppy, Gentoo
Posts: 194

Rep: Reputation: 31
Exclamation fresh netinstall, no dpkg status file or backup


I have a fresh debian installed via netinstall. Installation went well, except it gave me a very general error, something like "Error with application installation.", whatever that meant, (log file with more detail?)...

I needed to get an ssh server up, it wasn't installed, and finally took the time to read up on apt
I am new to using apt-get and stupidly did an apt-get clean...ok so no problem right? I'll just download what I need again..

while trying out apt-get update, first I got several errors saying a directory doesn't exist, 3 or 4, so i just did a few mkdir(s), and that seemed to fix it.

then did apt-get upgrade, and got /var/lib/dpkg/status "no such file". From searching the web, I've found that it's a fairly important, so I don't know why its not here on a fresh install

I have checked my system, and there is no old-status or backups of the ../dpkg/status file anywhere, I have checked, and yes I have been logged in as root the whole time.

I Found
http://www.debianhelp.co.uk/debianproblem.htm
Which I am in the process of trying out, but

I'm wondering if there is something which I missed after initial installation, since this is now the 5th file I've run into that hasn't existed, in relation to apt and dpkg.


other details
I am new to Debian (but have experience w/ mainly slackware based)
I have plenty of command line experience (but no gui exp)
Version of Debian is 5.0.3

Any pointers are greatly appreciated
 
Old 11-24-2009, 05:57 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,284

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
Things can go wrong sometimes.
I just made a new netinstall, Debian 5 Lenny.
No problems.

The file /var/lib/dpkg/status is a text file
listing all installed packages.
( file size = e.g. 1.2 MB , 30,842 lines ).
The file has a certain format, and you can only
get it by a reinstall , AFAIK.
.....
 
Old 11-24-2009, 06:41 AM   #3
evo2
Senior Member
 
Registered: Jan 2009
Location: Japan
Distribution: Debian
Posts: 2,603

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Missing /var/lib/dpkg/status can be rebuilt or perhaps recovered from /var/backups/.

If you didn't delete too much of /var you can just try copying /var/backups/dpkg.status.0 to /var/lib/dpkg/status. If the backup doesn't exist you can try rebuilding it ala Karsten M. Self. See the following:

http://linuxmafia.com/faq/Debian/pac...e-rebuild.html

Cheers,

Evo2.

PS. I hosed a great deal of /var including all of /var/lib/dpkg about five years ago. I managed rebuild it, and the machine is still running with with the same install today. It was the following week or so that I installed and started using BackupPC.

Last edited by evo2; 11-24-2009 at 06:42 AM. Reason: Typo
 
Old 11-24-2009, 12:06 PM   #4
vendtagain
Member
 
Registered: Sep 2009
Distribution: Slackware, Debian, Mac OS X, Zenwalk, Puppy, Gentoo
Posts: 194

Original Poster
Rep: Reputation: 31
I ended up reinstalling debian via netinst. The new installation worked well, and I haven't run into any problems. This time I selected only[*]Standard (instead of 4 or 5 of them), when it asked what software I wanted to install. This time all the appropriate apt-get and dpkg-status files were installed correctly, there is also several other files that were installed that weren't there the first time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 17 12-01-2011 09:24 AM
dpkg -- what does a status of 'rc' mean? stefanlasiewski Debian 6 05-13-2009 09:33 AM
dpkg status not found pelgrimforever Linux - Newbie 1 04-02-2006 03:00 PM
netinstall dpkg problem flying-tuxman Debian 4 05-12-2005 08:03 PM


All times are GMT -5. The time now is 02:10 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration