Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.