Upgrades
Hi everybody, I have a quick question:
Im using slackware 14.1 and I tried to update the packet atk-2.14.0-i486-1 to a more recent version included on slackware 14.2 atk-2.18.0-i586-1.txz I entered the command: # upgradepkg atk-2.14.0-i486-1%atk-2.18.0-i586-1.txz and I got the following: +====================================================================== | Upgrading atk-2.14.0-i486-1 package using ./atk-2.18.0-i586-1.txz +====================================================================== Pre-installing package atk-2.18.0-i586-1... ERROR: Package ./atk-2.18.0-i586-1.txz did not install correctly. You may need to reinstall your old package to avoid problems. Make sure the new package is not corrupted. What did I do wrong??? Regards, |
Hi baronshark, welcome to LQ.
maybe it's unrelated to your error but in any case you cannot upgrade packages on one version of Slackware with packages built for another version of Slackware: if you need a newer version of a base library like atk the best option for you is to upgrade your entire operating system. if you don't want to upgrade to a newer operating system the alternative is to upgrade the dependencies of the library (if needed), the library in question and then whatever else depends on the library in question, rebuilding everything you upgrade on your operating system: this second route is completely up to you because Slackware doesn't handle dependencies in any way. |
To upgrade a package from one version to another, you just need to run upgradepkg /location/to/new/package.txz. The only time you need to use the percent sign % is if the package names have changed. However, I don't think using the command this way is your issue. My first guess is that the new package is corrupt.
However, what you're doing is not a good idea. You should not pull packages from another version of Slackware and install it on yours. The other packages likely link to specific versions of libraries on the system they were built on and could cause a lot of problems. If you want the newer version, a much better method is to grab the source from the newer Slackware and then run the SlackBuild. This will compile it against the libraries on your system and will provide you with the package designed for your system. Then you simply run upgradepkg on the new package and go from there. However, depending on the requirements of that program, it may need other packages upgraded as well. I don't know what atk requires or if anything depends on it. EDIT: Looks like ponce beat me to it |
Quote:
This being said, I could upgrade atk and atk-spi2-atk to version 2.26.0 recently released on a derivative of Slackware 14.2, with no issue so far. If you want to try that, bearing in mind that then you'll be on your own as pointed out by ponce, the simplest way is to just copy the corresponding source directories for Slackware 14.2 from a distribution media somewhere, cd there and run the SlackBuilds, then use upgradepkg. But all in all my advice is instead to just upgrade to Slackware 14.2 if possible. |
Quote:
|
I followed the advices mentioned here. I copied the corresponding source directories for Slackware 14.2 from here:
https://ftp.heanet.ie/mirrors/ftp.sl...e-14.2/source/ Then I ran the SlackBuilds, then I used upgradepkg. I started upgrading the library glib2 (one of the prerrequisites for atk) I compiled it and when trying to upgrade the packet I got this: wifislax packages # upgradepkg glib2-2.46.2-i586-2.txz +============================================================================== | Upgrading glib2-2.42.2-i486-1 package using ./glib2-2.46.2-i586-2.txz +============================================================================== Pre-installing package glib2-2.46.2-i586-2... ERROR: Package ./glib2-2.46.2-i586-2.txz did not install correctly. You may need to reinstall your old package to avoid problems. Make sure the new package is not corrupted. I did this twice and same results, so I discarded a corrupt package and I started thinking of a dependency problem, so I decided to update all the dependencies for this library. I got the dependencies list from here: http://www.linuxfromscratch.org/blfs...ral/glib2.html I downloaded all the sources and slackbuilds for each dependency, I ran the slackbuilds and when trying to upgrade the packages I got the following errors, what the hell am I doing wrong??? wifislax packages # upgradepkg pcre-8.39-i586-1.txz +============================================================================== | Upgrading pcre-8.36-i486-1 package using ./pcre-8.39-i586-1.txz +============================================================================== Pre-installing package pcre-8.39-i586-1... ERROR: Package ./pcre-8.39-i586-1.txz did not install correctly. You may need to reinstall your old package to avoid problems. Make sure the new package is not corrupted. Then I tried another one but same results :( wifislax packages # upgradepkg shared-mime-info-1.6-i586-1.txz +============================================================================== | Upgrading shared-mime-info-1.3-i486-2 package using ./shared-mime-info-1.6-i586-1.txz +============================================================================== Pre-installing package shared-mime-info-1.6-i586-1... ERROR: Package ./shared-mime-info-1.6-i586-1.txz did not install correctly. You may need to reinstall your old package to avoid problems. Make sure the new package is not corrupted. Another one... wifislax packages # upgradepkg dbus-glib-0.106-i586-1.txz +============================================================================== | Upgrading dbus-glib-0.104-i486-1 package using ./dbus-glib-0.106-i586-1.txz +============================================================================== Pre-installing package dbus-glib-0.106-i586-1... ERROR: Package ./dbus-glib-0.106-i586-1.txz did not install correctly. You may need to reinstall your old package to avoid problems. Make sure the new package is not corrupted. and always the same story... wifislax packages # upgradepkg dbus-python-1.2.4-i586-1.txz +============================================================================== | Upgrading dbus-python-1.2.0-i486-1 package using ./dbus-python-1.2.4-i586-1.txz +============================================================================== Pre-installing package dbus-python-1.2.4-i586-1... ERROR: Package ./dbus-python-1.2.4-i586-1.txz did not install correctly. You may need to reinstall your old package to avoid problems. Make sure the new package is not corrupted. |
Quote:
Didier: How were you able to upgrade your atk??? do you have a magic wand?? see my description above... im doing what you mentioned but no successs at all... |
Quote:
|
First, do not follow blindly an upstream website, even less a website for another distribution to find the dependencies. This doesn't apply to Slackware, whose packages are built in another context and can have another content. Just try to build the Slackware package: if you miss something, a message you get building it or running an application it ships will tell you.
Second, obviously your issue has nothing to do with dependencies. upgradepkg runs installpkg to actually install the packages, and if installpkg fails for any reason the message you get is displayed. As we need to know the reason, you could run upgradepkg with the --verbose option to try getting more details, and if that's not enough do this, keeping at hand the genuine package to reinstall it afterwards:
|
Thank you very much Didier, using the verbose option was the key to solve this... thanks a lot for your help men !!!
/root/pango-1.38.1-i586-1.txz Viento ~ # upgradepkg -v pango-1.38.1-i586-1.txz |
All times are GMT -5. The time now is 11:35 PM. |