Page 1 of 2
Upgrade aaa_base package
Posted: 13 Apr 2018 10:53
by djemos
To upgrade aaa_base package do this to not break your system
Code: Select all
sudo slapt-get -u
sudo slapt-get -i -d --reinstall aaa_base
for 64 bit
Code: Select all
sudo /bin/bash upgradepkg --reinstall /var/slapt-get/slackware64/a/aaa_base-14.2-*.txz
for 32 bit
Code: Select all
sudo /bin/bash upgradepkg --reinstall /var/slapt-get/slackware/a/aaa_base-14.2-*.txz
Re: Upgrade aaa_base package
Posted: 15 Apr 2018 10:03
by DidierSpaier
Hi Dimitris,
We really need to have slapt-get --upgrade making a pre-installation of the new package, as you suggested some time ago...
EDIT: I should have written spkg, so the issue with slapt-get exists only if spkg is used as back-end, I think.
Re: Upgrade aaa_base package
Posted: 15 Apr 2018 15:42
by djemos
Hi, Didier. What i found is that /bin/sh is a link to /bin/bash. Using slapt-get or spkg after downloading aaa_base, this /bin/sh link is deleted. A message appeared that post installation failed. And then user cannot execute any script using sh script_name.
This is why i use /bin/bash with upgradepkg to reinstall the aaa_base package.
spkg is more quick than spkgtools packages, installpkg, upgradepkg. In Salix there is no problem since aaa_base will never installed again in this stable tree of slackware.
But in Slackel where everything changes all the time, this is really a problem. Some users will not read the posts in this forum so in Slackel will break their systems.
I agree we have to dig into spkg and/or slapt-get source code, to do a pre-installation when some critical packages as aaa_base are upgraded. I hope to find time to look into this problem.
Re: Upgrade aaa_base package
Posted: 19 Apr 2018 05:37
by asqwerth
Is this to be done before or after I upgrade the rest of the packages that don't get picked up in a normal upgrade, ie, the kernel and glibc stuff?
Re: Upgrade aaa_base package
Posted: 19 Apr 2018 06:25
by djemos
asqwerth wrote:Is this to be done before or after I upgrade the rest of the packages that don't get picked up in a normal upgrade, ie, the kernel and glibc stuff?
Before or after.
Re: Upgrade aaa_base package
Posted: 19 Apr 2018 19:04
by asqwerth
The reinstall aaa_base command gives me:
Code: Select all
Get http://slackware.uk/slackware/slackware64-current/ aaa_base 14.2-x86_64-4 [12.0kB]...Done
I assume that means I should
Code: Select all
sudo /bin/bash upgradepkg --reinstall /var/slapt-get/slackware64/a/aaa_base-14.2-x86_64-4.txz
?
Instead of sudo /bin/bash upgradepkg --reinstall /var/slapt-get/slackware64/a/aaa_base-14.2-x86_64
-3.txz
Re: Upgrade aaa_base package
Posted: 19 Apr 2018 19:40
by DidierSpaier
asqwerth wrote:The reinstall aaa_base command gives me:
Code: Select all
Get http://slackware.uk/slackware/slackware64-current/ aaa_base 14.2-x86_64-4 [12.0kB]...Done
I assume that means I should
Code: Select all
sudo /bin/bash upgradepkg --reinstall /var/slapt-get/slackware64/a/aaa_base-14.2-x86_64-4.txz
?
Instead of sudo /bin/bash upgradepkg --reinstall /var/slapt-get/slackware64/a/aaa_base-14.2-x86_64
-3.txz
Yes. The build tag has changed because aaa-base has been upgraded (exactly: rebuilt) one more time today.
Re: Upgrade aaa_base package
Posted: 19 Apr 2018 20:47
by djemos
Yes.
So it is better to edit the commands
for 64 bit
Code: Select all
sudo /bin/bash upgradepkg --reinstall /var/slapt-get/slackware64/a/aaa_base-14.2-*.txz
for 32 bit
Code: Select all
sudo /bin/bash upgradepkg --reinstall /var/slapt-get/slackware/a/aaa_base-14.2-*.txz
Re: Upgrade aaa_base package
Posted: 20 Apr 2018 05:09
by asqwerth
I have reinstalled the aaa_base package.
However, when I then followed up with a slapt-get -u and slapt-get --upgrade, I got a "missing md5 checksum" message.
I followed your directions here:
viewtopic.php?p=1001#p1001
to do a sudo slapt-get --clean
before the update and upgrade, but no success.
I'll try again tomorrow.
Re: Upgrade aaa_base package
Posted: 20 Apr 2018 08:43
by djemos
run and check if solves the problem. But i think that you run the slapt-get --upgrade when i was uploading packages.
Code: Select all
sudo slapt-get --add-keys
sudo slapt-get --clean
sudo slapt-get -u