LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2013, 05:14 AM   #1
tazgo
LQ Newbie
 
Registered: Sep 2013
Posts: 5

Rep: Reputation: Disabled
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
 
Old 09-04-2013, 11:20 AM   #2
tazgo
LQ Newbie
 
Registered: Sep 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
I did apt-get -f install not work

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

in the attachment
Attached Thumbnails
Click image for larger version

Name:	error-5.png
Views:	18
Size:	191.5 KB
ID:	13342  
 
Old 09-04-2013, 01:05 PM   #3
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: OpenSUSE
Posts: 1,396
Blog Entries: 7

Rep: Reputation: 166Reputation: 166
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.
 
Old 09-04-2013, 04:44 PM   #4
tazgo
LQ Newbie
 
Registered: Sep 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Knightron View Post
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

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

Last edited by tazgo; 09-04-2013 at 04:52 PM.
 
  


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
RPM Problem? RayAID Linux - Newbie 16 09-15-2010 08:25 AM
rpm problem saran_redhat Linux - Server 4 06-02-2009 04:15 AM
RPM problem john.d.reynolds Debian 29 03-16-2008 05:12 PM
RPM problem hrishikesh Linux - Software 6 07-04-2003 12:25 AM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM


All times are GMT -5. The time now is 01:22 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration