LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-15-2004, 09:28 PM   #1
cheater1034
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
dpkg error, need help


I use gentoo, and for fun I decided to install dpkg, so I can install .deb files, and I get this error when I try to install something, my command is dpkg -i filename.deb, in case that's wrong, the error is

dpkg: failed to open package info file `/usr/lib/db/status' for reading: No such file or directory

anyone know how to fix it, or can they post their file if they use debian
 
Old 08-15-2004, 10:20 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
i will take a stab at this even though i only used debian a long time ago

rebuilding the dpkg database is tough and coppying one will be weird as well
try this to start
make the directory structure
/var/lib/dpkg
(you have /var/lib/db) don't remember it being db but if that's the error message use that
then
touch status info available

beyond that i would try what i do with rpm when i have to use it

dpkg -i --force-all

possibly that will skip the info stuff
 
Old 08-16-2004, 10:21 AM   #3
cheater1034
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Gentoo
Posts: 141

Original Poster
Rep: Reputation: 15
no, I still get the same error. I don't know, I never really used debian before
 
Old 05-10-2005, 12:49 AM   #4
bburnix
LQ Newbie
 
Registered: May 2005
Location: NYC
Posts: 3

Rep: Reputation: 0
Smile dpkg error fix

I had the same problem on Gentoo with dpkg. I find that if there isnt a ebuild or for some reason it doesnt compile, I just install a debian package. Anyway, this is how to do it:

Use dpkg-deb, which comes with the dpkg ebuild:

dpkg-deb -x packagename.deb /var/tmp/packagename

cd /var/tmp/packagename

cp -vr * /

This just copies the relative executables and other shared files onto your filesystem. This technique isnt exactly pretty, but it works. You might want to make a note of what files it copies in case you want to later delete.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
Severe dpkg Error KneeLess Debian 1 02-08-2004 02:02 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM
Debian dpkg error aliensub Linux - Distributions 1 02-24-2003 12:10 PM


All times are GMT -5. The time now is 05:48 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 Google+: linuxquestions
Open Source Consulting | Domain Registration