There are plenty of hints in the error messages:
Originally posted by abefroman
debian:~# rpm -ivh rpm-build-4.2.3-24_nonptl.i386.rpm
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
That's a big hint.
debian:~# dpkg -i rpm-build_4.2.3-25_i386.deb
(Reading database ... 88842 files and directories currently installed.)
Unpacking rpm-build (from rpm-build_4.2.3-25_i386.deb) ...
dpkg: error processing rpm-build_4.2.3-25_i386.deb (--install):
trying to overwrite `/usr/share/man/man8/rpmbuild.8.gz', which is also in package rpm
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
This is a huge hint that rpmbuild is already installed, and part of the pacakge called rpm.
debian:~# rm -rf /usr/share/man/man8/rpmbuild.8.gz
Bad idea. There is a switch for dpkg called --force-overwrite. However, I think the clues above are telling you you don't need to install rpmbuild.
Does anyone know was is causing this no to install?
Thanks in advance, your help is greatly apprciated!
debian:~$ man rpmbuild
I think you'll find that it's already installed.