LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Upgrades (https://www.linuxquestions.org/questions/slackware-14/upgrades-4175614162/)

baronshark 09-20-2017 06:37 AM

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,

ponce 09-20-2017 06:48 AM

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.

bassmadrigal 09-20-2017 06:53 AM

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

Didier Spaier 09-20-2017 07:39 AM

Quote:

Originally Posted by ponce (Post 5760870)
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

I'll add that quite a lot of software depend on atk, among which all the GTK+2 apps with accessibility, and of course at-spi2-atk.

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.

hitest 09-20-2017 09:03 AM

Quote:

Originally Posted by Didier Spaier (Post 5760885)
But all in all my advice is instead to just upgrade to Slackware 14.2 if possible.

Agreed! Slackware 14.2 has been out for a year. Slackware 14.1 is getting a bit long in the tooth.

baronshark 09-21-2017 10:50 PM

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.

baronshark 09-21-2017 10:53 PM

Quote:

Originally Posted by Didier Spaier (Post 5760885)
I'll add that quite a lot of software depend on atk, among which all the GTK+2 apps with accessibility, and of course at-spi2-atk.

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.


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...

ponce 09-21-2017 11:17 PM

Quote:

Originally Posted by baronshark (Post 5761496)
what the hell am I doing wrong???

reading the cut and paste of your errors... could it be you are not actually using Slackware?

Didier Spaier 09-22-2017 03:17 AM

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:
  • removepkg <package short name>
  • installpkg <path to new package>
Then, post here the error message.

baronshark 09-22-2017 05:28 AM

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.