Jump to content
  • Announcements

    • spinynorman

      Mandriva Official Documentation

      Official documentation for extant versions of Mandriva can be found at doc.mandriva.com.   Documentation for the latest release may take some time to appear there. You can install all the manuals from the main repository if you have Mandriva installed - files are prefixed mandriva-doc.
    • paul

      Forum software upgrade   10/29/17

      So you may have noticed the forum software has upgraded !!!
      A few things that have changed. We no longer have community blogs (was never really used) We no longer have a portal page.
      We can discuss this, and decide whether it is needed (It costs money) See this thread: Here
Steve Scrimpshire

Script to Repair Installation

Recommended Posts

I tried 3 or 4 times and got error saying something like "not found the requested url /easyurpmi/index.php was not found on this server.

Share this post


Link to post
Share on other sites

Try setting up your urpmi sources with the EasyUrpmi link at the top right-hand side of this page. It actually is more reliable.

repair.png

Edited by Steve Scrimpshire

Share this post


Link to post
Share on other sites

Steve,I already got my urpmi sources, but found when I tried your script Example "! /bin/bash" & rpmfix to start things off that I got no response ,so I thought one of these 2 posts might of led to more examples , Im still a linux novice trying to learn but have a little trouble understanding scripting but want to give it a go, I have come accross some tutorials in somePC mags I have and will see if they can get me going as well? I havnt read your tutorial right through yet so maybe I have done something wrong , Should typing ! /bin/bash or rpmfind give me some results or do I have something missing? Thanks

Share this post


Link to post
Share on other sites

Ahhh...I see the problem. What i posted is a script not commands you run from a terminal. Copy and paste the entire code sample into a file and save it, making sure that #!/bin/bash is on the very top line. You can name it whatever yo want, like repairinstall. Then type this command:

chmod +x repairinstall

then as root:

./repairinstall

 

If you are already running this as a script, make sure all the lines that have # in the beginning, keep them.

Edited by Steve Scrimpshire

Share this post


Link to post
Share on other sites

Hi Steve,

 

What you said earlier about XFree packages (they seem to need being reinstalled everytime) is valid for my glibc-devel and kernel-source packages as well. So, I changed a line in your script:

if [[ $name != XFree* ]]

Is now:

if [[ $name != XFree* && $name != glibc-devel* && $name != kernel-source* ]]

Now they don't bother me anymore... :afro:

 

Just thought I'd let you know about it.

 

Cheers

Share this post


Link to post
Share on other sites

In Nautilus (GNOME), it would be:

Right-click the file -> Properties -> Permissions -> Check "Executable" checkboxes

 

Or, in a terminal, type in:

chmod a+x rpmfix

Assuming you named the script "rpmfix". Otherwise, just replace that with whatever you named it.

 

Cheers,

Share this post


Link to post
Share on other sites

Hi! I did chmod a+x and it worked. I had a message saying: "rpmq: no argument to your request" (translation from French). The reason I'm running this script is to be able to run menudrake. When I try to, I get a segmentation fault.

 

:thanks:

Share this post


Link to post
Share on other sites

Hmmm... no argument to your request sounds like you aren't missing any files.

Can you attach your missing_files.list to a post here? You'll have to rename it to missing_files.txt to get it to attach. It'll be in the same directory you run the script from.

Share this post


Link to post
Share on other sites

I meant the file called missing_files.list that the script creates in the directory you run the script from. If the file does not exist, it means either:

(a) You do not have write permissions in the directory you run the script from

(b) None of your rpms are missing any files, which is highly doubtful

Edited by Steve Scrimpshire

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×