LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-09-2022, 04:46 PM   #1
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Rep: Reputation: Disabled
slackpkg upgrade-all odd error


hello Everyone,

today i encountered another never-seen before odd behaviour on my slackware-current box.

I was trying to update the system using the usual slackpkg update/install-new/upgrade-all.

Slackpkg update and install-new worked as usual, no issues. When I launched slackpkg upgrade-all at some point it stopped with an error referencing something about line 79 on slackpkg+. Once that happen, anything i tried to input on the console returned a 'Segmentation Fault' error and the system became 100% unresponsive (well, except being able to type something on console). Hard reset necessary to reboot the system -> kernel panic

Launched the installation CD -> mounted the partition on /mnt -> pkgtool -> system fixed.

Maybe I was distracted and I missed to upgrade slackpkg+. So, repeat -> slackpkg update > install-new > upgrade-all -> same error msg.
Upgrade stopped with a segmentation error at line 79 of slackpkg+ (i tried to copy the error on a file so that i could post it here, but once again, completely unresponsive system; nothing launched; not even the shut down/restart button; so, hard reset again and repeated the repair.

Now, does anyone have a clue of what is happening here? where can i find the slackpkg file log to view the error? (i looked on /etc/slackpkg, /var/log and /var/lock)
thanks

p.s.: interestingly, i upgraded my laptop almost simultaneously and it went flawless (usually, it happens the other way around as the laptop is older)

Last edited by however; 08-09-2022 at 04:52 PM.
 
Old 08-10-2022, 02:36 AM   #2
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
This morning i tried to run slackpkg update again and I was reminded
Quote:
No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?
I chose 'y' and continued as per usual; the upgrade stopped again on that 'line 79 segmentation fault' error returning an unresponsive system (being old school I didnt think of taking a picture of the screen with my mobile and attach it here). Interestingly, I looked at line 79 of /etc/slackpkg/slackpkgplus.conf and line 79 is empty

So, I guess the upgrade is still running on the 1st 'slackpkg update' I started last night.

I would like to try to delete that file and launch 'slackpkg update' again (just in case) but I can't find the file; (sometimes , I tried to run two instances of slackpkg, inadvertently, and I get reminded to delete the .../.../file as slackpkg cannot run two instances simultaneously; so far, I have looked in to /var/log, /var/lock, /run/lock, ).

Could someone remind me where that file is? so that i can try, once more to upgrade my slackware current?

Thanks
 
Old 08-10-2022, 05:12 AM   #3
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549Reputation: 1549
I would help to know what version of slackpkg / slackpkg+ you are using.

What is the result of this?
Code:
# slackpkg help | grep 'slackpkg -'
 
Old 08-10-2022, 06:36 AM   #4
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrisretusn View Post
I would help to know what version of slackpkg / slackpkg+ you are using.

What is the result of this?
Code:
# slackpkg help | grep 'slackpkg -'
Thank you.

Outcome below:
Quote:
bash-5.1# slackpkg help | grep 'slackpkg -'
slackpkg - version 15.0.10 / slackpkg+ 1.8.0
bash-5.1#
 
Old 08-10-2022, 08:47 AM   #5
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
try
Code:
# DEBUG=1 bash -x slackpkg upgrade 2>&1 | tee slackpkg.trace
then attach slackpkg.trace here or send me in private mail

Last edited by zerouno; 08-10-2022 at 08:49 AM. Reason: upgrade instead update
 
Old 08-10-2022, 08:59 AM   #6
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zerouno View Post
try
Code:
# DEBUG=1 bash -x slackpkg upgrade 2>&1 | tee slackpkg.trace
then attach slackpkg.trace here or send me in private mail
Hello zerouno and thank you for getting involved.
below is the message i got from the line you suggested; i hope it helps:
Quote:
bash-5.1# DEBUG=1 bash -x slackpkg upgrade 2>&1 | tee slackpkg.trace
++ date +%s
+ '[' 1660139940 -le 1437841588 ']'
+ VERSION=15.0.10
+ PATH=/bin:/usr/bin:/sbin:/usr/sbin
++ cat /etc/slackware-version
++ cut -f2 '-d '
+ SLACKWARE_VERSION=15.0+
+ '[' -z '' ']'
+ CONF=/etc/slackpkg
+ '[' -n '' ']'
++ sed -n '
# Remove leading and trailing blanks
s/^[[:blank:]]*//
s/[[:blank:]]*$//
# Only one token is allowed per line
/[[:blank:]]/d
# A single solidus should end the URI
s,[/]*$,/,
# Print the lines beginning with one of the URI schemes we look for
\@^file://@p
\@^cdrom://@p
\@^local://@p
\@^https\{0,1\}://@p
\@^ftps\{0,1\}://@p' /etc/slackpkg/mirrors
+ SOURCE=https://mirrors.slackware.com/slackware/slackware64-current/
+ PATH=
+ builtin source /etc/slackpkg/slackpkg.conf
++ TEMP=/var/cache/packages
++ WORKDIR=/var/lib/slackpkg
++ WGETFLAGS=--passive-ftp
++ DELALL=on
++ CHECKMD5=on
++ CHECKGPG=on
++ CHECKSIZE=off
++ PRIORITY=(patches %PKGMAIN extra pasture testing)
++ POSTINST=on
++ ONLY_NEW_DOTNEW=off
++ ORIG_BACKUPS=on
++ ONOFF=on
++ DOWNLOAD_ALL=on
++ DIALOG=on
++ BATCH=off
++ DEFAULT_ANSWER=n
++ USE_INCLUDES=on
++ SPINNING=on
++ DIALOG_MAXARGS=139000
+ WORKDIR=//var/lib/slackpkg
+ ERROR=
+ mkdir -p /tmp
++ mktemp -p /tmp -d slackpkg.XXXXXX
+ TMPDIR=/tmp/slackpkg.XmNrop
+ '[' 0 -ne 0 ']'
+ . /usr/libexec/slackpkg/core-functions.sh
++ trap cleanup 2 14 15
+ '[' 1 -eq 0 ']'
+ '[' -n upgrade ']'
+ case $1 in
+ CMD=upgrade
+ shift
+ '[' -n '' ']'
+ '[' upgrade '!=' blacklist ']'
+ usage
+ echo -e 'slackpkg - version 15.0.10\n\nUsage:\n\tslackpkg [OPTIONS] {install|remove|search|file-search|
\t\t\t download|upgrade|reinstall} {PATTERN|FILE}
\tslackpkg [OPTIONS] {generate-template|install-template|remove-template}
\t\t\t TEMPLATENAME
\tslackpkg [OPTIONS] info PACKAGE
\tslackpkg [OPTIONS] update [gpg]
\tslackpkg [OPTIONS] {clean-system|upgrade-all|install-new}
\tslackpkg [OPTIONS] {new-config|check-updates|show-changelog|help}
\nIf you need more information try to use '\''slackpkg help'\'' or look the\nslackpkg'\''s manpage.
'
slackpkg - version 15.0.10

Usage:
slackpkg [OPTIONS] {install|remove|search|file-search|
download|upgrade|reinstall} {PATTERN|FILE}
slackpkg [OPTIONS] {generate-template|install-template|remove-template}
TEMPLATENAME
slackpkg [OPTIONS] info PACKAGE
slackpkg [OPTIONS] update [gpg]
slackpkg [OPTIONS] {clean-system|upgrade-all|install-new}
slackpkg [OPTIONS] {new-config|check-updates|show-changelog|help}

If you need more information try to use 'slackpkg help' or look the
slackpkg's manpage.

+ cleanup
+ local retval=0
+ '[' on = off ']'
+ tput cnorm
+ '[' -e /tmp/slackpkg.XmNrop/error.log ']'
+ echo

+ '[' on = on ']'
+ '[' '' '!=' '' ']'
+ rm -f /var/lock/slackpkg.19436
+ rm -rf /tmp/slackpkg.XmNrop
+ exit 0
bash-5.1#
 
Old 08-10-2022, 09:00 AM   #7
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
sorry I did mean upgrade-all or the command that fails
 
Old 08-10-2022, 09:10 AM   #8
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zerouno View Post
sorry I did mean upgrade-all or the command that fails
this is a long(er) output and the it doesn't attach (on the forum's reply) bcos it exceed 70K characters.

How do i send it to you through pvt mail?
 
Old 08-10-2022, 09:16 AM   #9
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
However, something strange happened the 1st time I run
Quote:
DEBUG=1 bash -x slackpkg upgrade-all 2>&1 | tee slackpkg.trace
it stopped with the usual small blue-window of packages installed and, it stopped outlining something about 'glibc' being outdated and a newer version was available.

So, I am trying this option: as i am typing this reply, I upgraded 'glibc' and about to reboot.

I will report back in a few

Last edited by however; 08-10-2022 at 09:37 AM.
 
Old 08-10-2022, 09:16 AM   #10
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
info[at]slakfinder.org
 
Old 08-10-2022, 10:01 AM   #11
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by however View Post
However, something strange happened the 1st time I run

.... something about 'glibc' being outdated and a newer version was available.
it seems that the problem was caused by the older 'glibc' package; as soon as upgraded 'glibc' the upgrade-all finished smoothly with no errors.

Quote:
Originally Posted by zerouno
DEBUG=1 bash -x slackpkg upgrade-all 2>&1 | tee slackpkg.trace
I am not sure how important it was for you to read the output but since 'slackpkg upgrade-all' worked this time I didn't think it would show the same output.

Thank you 'zerouno' and everyone else who tried to help (without that debug line I wouldn't have seen the system outlining the older 'glibc')

I guess I will mark this thread a [Solved], (although I am not sure why it needed solving this way whilst the laptop also running slackware-current on 64b did not).
 
Old 08-10-2022, 10:10 AM   #12
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
good.
if it works it is no longer important seeing the output
However it was a curios problem.

The upgrade-all command as the first thing does upgrade glibc then it continues with the other packages.
 
Old 08-10-2022, 10:18 AM   #13
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zerouno View Post
good.
if it works it is no longer important seeing the output
However it was a curios problem.

The upgrade-all command as the first thing does upgrade glibc then it continues with the other packages.
yep, but for some weird reason this time it didn't (i am not sure whether this could be the reason: often, while I run 'slackpkg update/install-new/upgrade-all', i do other things i.e.: browsing the net, opening&closing files, etc.... and I think i was doing something like that while waiting for the upgrade to finish)
 
Old 08-10-2022, 10:45 AM   #14
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
How old was latest update?

see /var/lib/slackpkg/install.log
 
Old 08-10-2022, 02:14 PM   #15
however
Member
 
Registered: Jan 2019
Distribution: slackware current
Posts: 497

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zerouno View Post
How old was latest update?

see /var/lib/slackpkg/install.log
2nd of August, 2022 (I upgrade regularly, at least once/month)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I stopped a slackpkg upgrade-all in midstream and now I cannot slackpkg upgrade-all jkh2cpu Slackware 5 02-13-2022 03:05 AM
Weird slackpkg upgrade message during a slackpkg upgrade-all process. frtorres Slackware 8 02-13-2021 11:36 AM
SARPI on Pi3 - Ran slackpkg update & slackpkg upgrade-all and now won't boot, can't find init petejc Slackware - ARM 11 03-25-2020 04:30 AM
[SOLVED] Slackpkg upgrade-all returns 'no packages to upgrade' after slackpkg-update has downloaded files san2ban Slackware 8 11-01-2019 05:44 AM
slackpkg upgrade-all does not show an upgrade sycamorex Slackware 6 11-03-2009 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration