LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-02-2007, 09:48 PM   #1
dr_smit
Member
 
Registered: Jan 2007
Posts: 39

Rep: Reputation: 15
Software Updater Exits unexpectedly after smart-urpmi


I tried smart-urpmi, MLCC now doesn't start software updater..
gives error "this program exited unexpectedly"
I think it happened because MLCC and urpmi were left open simultaneously?

please help..
 
Old 11-02-2007, 10:15 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
if you use mcc and open the software update icon.....it will conflict with a terminal or shell command of urmpi.

However, I am not able to duplicate your error because every time I exit the mcc gui, the shell works again.

The shell error if I have mcc gui open is rpm database is locked by another application.

Have your tried a reboot and just used the command line?
 
Old 11-03-2007, 06:36 AM   #3
dr_smit
Member
 
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
tried rebooting

also urpmi.removemedia -a......

also patching up with a reinstall from mandriva DVD......

any other suggestions..
I will try now to reinstall easy-urpmi..
 
Old 11-03-2007, 08:36 AM   #4
dr_smit
Member
 
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
all the kings men.. the humpty dumpty is still broken

the mandriva linux control log shows:--

19:02:19 rpmdrake[6718]: ### Program is starting ###
19:02:23 rpmdrake[6718]: opening the RPM database
19:02:23 rpmdrake[6718]: ### Program is exiting ###
 
Old 11-03-2007, 11:40 PM   #5
dr_smit
Member
 
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
[root@smitdesk dr_smit]# rpmdrake
Can't locate auto/urpm/configure.al in @INC (@INC contains: /usr/lib/libDrakX /usr/lib/perl5/5.8.8/i386-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i386-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.7/i386-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl .) at /usr/sbin/rpmdrake line 1507
 
Old 11-08-2007, 03:21 PM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
It seems both smart and urpmi (rpm) utilise the same database at some point.

Urpmi takes control by taking ownership and marks the file for it's own use (exclusive), smart works differently, and does not require the files to be exclusive to smart.

Smart still requires the database files in order to know what is installed and the dependencies of all the packages.

This has happened to me b4.

To repair, I had uninstalled smart, then found the smart folder, /var/lib/smart and deleted the contents.

This will include the repos listings you have setup. Some could be upto 50Mb.

Then after a reboot, to be sure, to be sure, I reinstalled smart and reset the repo list.

I have not found a simpler way as yet, but the rule of thumb I realise is to not use rpm (urpmi) while using smart.

Cheers, Glenn

Last edited by GlennsPref; 11-08-2007 at 03:29 PM. Reason: Clarification of smart folder
 
Old 11-11-2007, 08:39 PM   #7
dr_smit
Member
 
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
unistall smart and reinstall urpmi?

likewise, is there a way to uninstall smart and reinstall urpmi?
I have been using urpmi till now..

Please suggest more step by step procedure..
 
Old 11-12-2007, 12:08 PM   #8
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
In a terminal window (as root)
Code:
rpm -rebuilddb
rebuilds the rpm database. This command has helped me more than a few times over the years. Any time I have trouble with any rpm package manager, I run it to eliminate the rpm database as not the issue. Another (related) command I may try (only if the first fails) is
Code:
rpm -initdb
creates a new rpm database.

HTH,
 
Old 11-12-2007, 07:55 PM   #9
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
rpm -e smart to remove smart, and follow the directions above. If you don't remove the folder the problem will recur

urpmi urpmi to get the latest urpmi package.

Now do the easy-urpmi thing, or if already done, do

urpmi.update -a to update the repo database on your computer.

Now you should be set to go.

reinstall smart if you want,

urpmi smart

I find the "smart fix" command to be helpful when I'm trying to solve deps.

Cheers, Glenn
 
Old 11-13-2007, 07:32 AM   #10
dr_smit
Member
 
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
18:23:05 perl: ### Program is exiting ###
18:23:19 perl: ### Program is exiting ###
18:24:10 rpmdrake-remove[6295]: ### Program is starting ###
18:24:20 rpmdrake-remove[6295]: opening the RPM database
18:24:24 rpmdrake-remove[6295]: ### Program is exiting ###


tried everything as suggested the problem remains as it is

is something a miss with drake.conf or perl????
 
Old 11-13-2007, 10:00 AM   #11
dr_smit
Member
 
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
18:23:05 perl: ### Program is exiting ###
18:23:19 perl: ### Program is exiting ###
18:24:10 rpmdrake-remove[6295]: ### Program is starting ###
18:24:20 rpmdrake-remove[6295]: opening the RPM database
18:24:24 rpmdrake-remove[6295]: ### Program is exiting ###


tried everything as suggested the problem remains as it is

is something a miss with drake.conf or perl????
 
Old 11-13-2007, 05:38 PM   #12
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, what is the command you used to get that output?
 
Old 11-14-2007, 08:40 PM   #13
dr_smit
Member
 
Registered: Jan 2007
Posts: 39

Original Poster
Rep: Reputation: 15
Solved but We are defeated..

I upgraded to mandriva 2008 and everything is smooth working now..

P.S. To get that output I opened "MCC log monitor"
 
Old 11-15-2007, 06:33 PM   #14
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Thank you. all the best, Glenn
 
  


Reply



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
2007.1 - Smart vs urpmi brjoon1021 Mandriva 4 06-08-2007 08:24 AM
Software updater joint SUSE / openSUSE 1 10-12-2006 04:29 AM
problem with software updater alaios SUSE / openSUSE 5 08-21-2006 05:00 AM
Software updater in 10.1 leupi SUSE / openSUSE 1 07-13-2006 09:33 PM
anybody tried smart-urpmi? bioalchemist Mandriva 1 02-07-2006 06:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:25 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
Open Source Consulting | Domain Registration