Page 1 of 1

Uninstall an update?

Posted: Sat Dec 15, 2007 10:12 am
by Jake
Hi.

I've been trying to upgrade my Fedora Core 4 Plesk 8.0 server to the latest Plesk version for the last 4 or so hours...with no success.
I've gone through every thread I can find but still no luck. I was ready to give up. As a last resort, I decided rather than trying to update from 8.0 to 8.2.1, I'd try from 8.0 to 8.0.1 because a small update is better than a big one. lo and behold, I got further than I did before! Now I have a problem...

First of all, when I was trying to update to 8.2.1, I kept getting the message:
Download file versions.inf3: 100% done
Download file PSA_8.2.1/plesk-8.2.1-fc4-i386.inf3: 100% done
Checking for system installed packages...done.
Check for components installation status
Reading system installed packages...done.
Download file build-8.2.1-fc4-i386.hdr.gz: 31%..88%..100% done
Download file update-8.2.1-fc4-i386.hdr.gz: 32%..63%..74%..100% done
Resolve components
ERROR: Can't add to black list product package psa


---
Plesk autoinstaller.
After some reading, I found most people fixed the problem by installing/updating php-domxml and php-mbstring. So, I used the ART packages and managed to install php-mbstring. php-domxml refused to install. Don't ask me why. I guess it's php-xml now? I don't know.

Anyway, even at that point, no go. The upgrade wouldn't happen, so as I said, I decided to go to 8.0.1 instead. Now I got a new error:
....
Get system update packages.
Download file php-mbstring-5.0.4-10.5.i386.rpm: 28%..100% done
Download file php-xml-5.0.4-10.5.i386.rpm: 100% done
Start packages installation
....
Install package php-mbstring
package php-mbstring-5.2.5-2.fc4.art (which is newer than php-mbstring-5.0.4-10.5) is already installed
Error while execute command rpm -U /root/psa/PSA_8.0.1/update-rpm-FedoraCore-4-i386/php-mbstring-5.0.4-10.5.i386.rpm
ERROR: error while executing RPM
WHOOPS!!! That's a problem. I guess it was going to do the updates for me, but I was meant to update to 8.0.1 first.

Now my problem is that I need to get rid of the ART installed php-mbstring (and possibly even php-xml). I tried 'yum remove php-mbstring' but it's got way too many dependencies, of which Plesk is one of them. I don't want to go near that. So, is this possible? I'm hoping by some miracle that I can downgrade to whatever I had before. If it helps, I do have the /etc, /usr and /var directories backed up before I did anything so is it possible to just replace certain files with the backed up ones?

I have MANY clients on my server at the moment who would be pretty angry if I screwed things up royally, so any info that could help me would be very much appreciated.

Thanks! :)

Posted: Sat Dec 15, 2007 12:14 pm
by Jake
Nevermind! I managed to solve it :D
The command line to rollback a package is:
rpm -Uvh --oldpackage /root/psa/PSA_8.0.1/update-rpm-FedoraCore-4-i386/php-mbstring-5.0.4-10.5.i386.rpm
Obviously replace the path to your package :D

I've now successfully updated my Plesk from 8.0 to 8.2.1!
The problem is you need to go one step at a time. You can't make the jump from 8.0 to 8.2.1. So in my case, I had to go 8.0 -> 8.0.1 -> 8.1.0 -> 8.1.1 (I think) -> 8.2.0 -> 8.2.1

And for anyone else having problems, yes, the problem begins with php-mbstring and php-xml (or php-domxml for PHP 4.x), so make sure they're installed by Plesk, or failing that, by you.

Shame that ART didn't get me out of this bind this time, but ART has been there in the past, so I've gotta sing the praises of the turtley one :D Thanks for your packs! It makes no-brainers like me seem smart at times ;)

I hope that helps any future problem type people :D