LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with rpm :( (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-rpm-4175475824/)

tazgo 09-04-2013 04:14 AM

problem with rpm :(
 
Hello every time I do apt-get upgrade i get this error msg:

Code:

root@bt:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages have been kept back:
  linux-image linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up rpm (4.7.2-1lubuntu0.1) ...
Trying rpm init...
error: dbiOpen: dbapi 1 not available
RPM failed to open database, cleaning it up...
Creating /var/backups/...
tar: Removing leading `/' from member names
Trying rpm init...
error: dbiOpen: dbapi 1 not available
dpkg: error processing rpm (--configure):
 subprocess installed post-installation script returned error exit status 254
Errors were encountered while processing:
 rpm
E: Sub-process /usr/bin/dpkg returned an error code (1)

I cant do nothing did search all over the web and no one ask for error status 254 :( please anyone can help me

tazgo 09-04-2013 10:20 AM

1 Attachment(s)
I did apt-get -f install not work

and every time i do something i get this msg befor the error

in the attachment

Knightron 09-04-2013 12:05 PM

apt is a high end package manager, meaning it resolves dependencies, fetches them, and all that fancy schmizzle, Dpkg, is a low end package manager you will have installed, which apt utilizes to do the actual installing of .deb packages.
rpm is a low end package manager, very similar to dpkg, however it is designed to work with .rpm packages instead of .deb packages. I'm assuming you're using Lubuntu. Lubuntu is a .deb based distro, which means, it should not have to deal with rpm packages. I have no idea why you have the rpm package manager installed when you have dpkg. Runnning,
Code:

sudo apt-get remove rpm
should fix your issue by simply removing rpm.
If you desire to install a program, do it with, 'sudo apt-get install "foo"'. If you need to do a manual install by downloading the package off the internet, and then installing later, then use dpkg, not rpm, which means you download the .deb package, not the .rpm package: always try sudo apt-get, before this method though.

tazgo 09-04-2013 03:44 PM

Quote:

Originally Posted by Knightron (Post 5021702)
apt is a high end package manager, meaning it resolves dependencies, fetches them, and all that fancy schmizzle, Dpkg, is a low end package manager you will have installed, which apt utilizes to do the actual installing of .deb packages.
rpm is a low end package manager, very similar to dpkg, however it is designed to work with .rpm packages instead of .deb packages. I'm assuming you're using Lubuntu. Lubuntu is a .deb based distro, which means, it should not have to deal with rpm packages. I have no idea why you have the rpm package manager installed when you have dpkg. Runnning,
Code:

sudo apt-get remove rpm
should fix your issue by simply removing rpm.
If you desire to install a program, do it with, 'sudo apt-get install "foo"'. If you need to do a manual install by downloading the package off the internet, and then installing later, then use dpkg, not rpm, which means you download the .deb package, not the .rpm package: always try sudo apt-get, before this method though.

thanks for your help but when i did it it gives me this msg

Code:

root@bt:~# sudo apt-get remove rpm
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

and when i did what it said i got this

Code:

root@bt:~# sudo dpkg --configure -a
Setting up rpm (4.7.2-1lubuntu0.1) ...
Trying rpm init...
error: dbiOpen: dbapi 1 not available
RPM failed to open database, cleaning it up...
Creating /var/backups/...
tar: Removing leading `/' from member names
Trying rpm init...
error: dbiOpen: dbapi 1 not available
dpkg: error processing rpm (--configure):
 subprocess installed post-installation script returned error exit status 254
Errors were encountered while processing:
 rpm

Solved :D

after I did this I tried agian sudo apt-get remove rpm and it`s removed :D thank you very much :D


All times are GMT -5. The time now is 01:08 AM.