Yum not able to to completely upgrade the system, how to fix ?
Hi all. I apologize for not able to put a proper subject line. A couple of days back I was doing system upgrade as usual using the following command
Code:
sudo yum update I'd done the same thing around a month ago and it was upgrade of about 1GB and everything was working fine after that. Now this time when I ran the above command, it downloaded the rpms and started upgrading and oops the screen went black, no response at all . it seemed to me that the keyboard, mouse etc stopped working, i don't know what happened. After waiting for some time I was forced to do a maual reboot. I remember that during installation just before that "black screen" problem the count was something [117/377] i mean the 117th upgrade was going on ,out of the total 377. I'm using Fedora9[2.6.26 kernel] and also use apt-get alonwith yum. I tried to do an upgrade hoping to upgrade teh remaining pkgs, but it saind nothing to update. Then I tried to use apt-get to update. I got teh message from apt-get something like this Code:
W: There are multiple versions of "kdeutils" in your system. |
Hi Harry2006,
I had this kind of problem a few years ago. The rpm database got corrupted and kills the update in the middle. In fact, it retarded me to adopt the fedora. I found a python script on the internet, which I save with the jewels of the crown. Sorry that I don't remember the site nor the author, but the script is here: Code:
#!/usr/bin/python -tt It will remove the duplicates from the rpm database. After that, (I hope so!) you can enter "yum update" again and the process will go till the end. Osvaldo. |
Quote:
Code:
File "./clear-dups.py", line 15 |
Harry2006,
First I must declare: "I don't know a drop of python". This is for some expert looking this thread and dislike the stupidities I will talk now! As far as I (don't) know, the python syntax is oriented to indentation. Instead of parenthesis, braces, tags and etc., the indentation defines the code blocks. If your editor edited the text during the paste process, you get a wrong code; I did reproduce the behavior you reported using vim with "set autoindent"; with this option, vim (vi) indent each new line following the previous margin; this result in an stair case text and the error is reported on line 15. So, try the following process: 1. open an xterm session; 2. enter the following command: cat >clear-dups.py <enter> 3. Copy the text on the browser; 4. paste it on the xterm session; 5. press CTRL/D to finish input; Now, chmod +x , blah, blah, blah ... |
@Thank you very much for giving a quick and detailed response. I was trying to do what you said and in the meantime googling out for the problem and luckily found one yum-plugin that takes care of all the duplicate installs and gets rid of them. I would like to share the same for the benifit of others. Just use the following command
Code:
yum install yum-utils Code:
package-cleanup --dupes # list out duplicates http://blog.kagesenshi.org/2008/04/1...nd-tricks.html Thank you very much. |
All times are GMT -5. The time now is 09:11 PM. |