SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
It works fine here as well. On one system, I keep a local copy of the update site via rsync. On another box at a different location I don't have the disk space so slackpkg connects directly to another mirror. On the other boxes I connect to my local copy.
All of them work properly when upgrading packages (including the recent bind update). I haven't tried to go backwards though (for example from Firefox 2 back to 1.5)...
For the record, this describes my Slackpkg problem too.
I can download a sincle package, remove a package, install a package, but stuff like UPGRADE-ALL, UPDATE, INSTALL-NEW, just won't work. And mine was also looking for a series of index.html.1, index.html.2, .3, .4, .5......33..34..35 etc etc until I stopped it.
Tried a bunch of mirrors, tweaked Wget and Slackpkg.conf, no luck.
I have the same error here. Slackpkg was working fine until I remove Dropline Gnome (damn it!). I can get slackpkg to work again by setting "dialog=off" in slackpkg.conf. If anybody knows how to get dialogs back again, I would be glad to hear it.
I would recommend trying to get the newest version of slackpkg from http://slackpkg.org and trying it. There have been a lot of improvements and bugfixes since version 2.09 (the one in 11.0's /extra). Instead of upgrading it, I recommend doing
Code:
removepkg slackpkg
and then removing all traces of it from your system (including the /var/cache/packages and /etc/slackpkg directories). Once you have done that, install the new version
Code:
installpkg slackpkg-2.52-noarch-1.tgz
Since you'll be selecting an 11.0 mirror in /etc/slackpkg/mirrors, and slackpkg-2.09 is on that mirror, you'll need to have slackpkg blacklist itself in /etc/slackpkg/blacklist - otherwise, it will "upgrade" itself to the older version.
I modified a little bit /usr/libexec/slackpkg/functions.d/dialog-functions.sh to keep a copy of tmplist, dialog.tmp and dialog.out. What is found in dialog.out is simply an error relating to an xargs problem:
Code:
xargs: unmatched single quote; by default quotes are special to xargs unless
you use the -0 option
Error: Expected 4 arguments, found only 3.
Use --help to list options.
xargs: dialog: exited with status 255; aborting
I don't know what to think of the lines in dialog.tmp with respect to that single quote error...
Code:
amarok-1.4.5-i486-1_slack11.0.tgz '' on 'currently installed: amarok-1.4.3-i486-4
amarok-1.4.5-i486-1_slack11.0.tgz'
bash-3.2.015-i486-1_slack11.0.tgz '' on 'currently installed: bash-3.1.017-i486-1.tgz'
bind-9.3.4-i486-1_slack11.0.tgz '' on 'currently installed: bind-9.3.2_P1-i486-1.tgz'
fetchmail-6.3.6-i486-1_slack11.0.tgz '' on 'currently installed: fetchmail-6.3.4-i486-1.tgz'
gaim-1.5.0-i486-3_slack11.0.tgz '' on 'currently installed: gaim-1.5.0-i486-2.tgz'
glibc-zoneinfo-2.3.6-noarch-7_slack11.0.tgz '' on 'currently installed: glibc-zoneinfo-2.3.6-noarch-6.tgz'
gnupg-1.4.7-i486-1_slack11.0.tgz '' on 'currently installed: gnupg-1.4.5-i486-1.tgz'
imagemagick-6.3.3_0-i486-1_slack11.0.tgz '' on 'currently installed: imagemagick-6.2.8_8-i486-2.tgz'
...
Here's the dialog-functions.sh file:
Code:
# Dialog functions
# Original functions from slackpkg modified by Marek Wodzinski (majek@mamy.to)
#
# Show the lists and asks if the user want to proceed with that action
# Return accepted list in $SHOWLIST
#
if [ "$DIALOG" = "on" ] || [ "$DIALOG" = "ON" ]; then
function showlist() {
if [ "$ONOFF" != "off" ]; then
ONOFF=on
fi
rm -f $TMPDIR/dialog.tmp
if [ "$2" = "upgrade" ]; then
ls -1 /var/log/packages > $TMPDIR/tmplist
for i in $1; do
BASENAME=`cutpkg $i`
PKGFOUND=`grep -e "^${BASENAME}-[^-]\+-\(noarch\|${ARCH}\)" $TMPDIR/tmplist`.tgz
echo "$i '' $ONOFF 'currently installed: $PKGFOUND'" >>$TMPDIR/dialog.tmp
done
HINT="--item-help"
else
for i in $1; do
echo "$i '' $ONOFF" >>$TMPDIR/dialog.tmp
done
HINT=""
fi
if [ `wc -c $TMPDIR/dialog.tmp | cut -f1 -d\ ` -ge 19500 ]; then
mv $TMPDIR/dialog.tmp $TMPDIR/dialog2.tmp
awk '{ NF=3 ; print $0 }' $TMPDIR/dialog2.tmp > $TMPDIR/dialog.tmp
HINT=""
fi
cat $TMPDIR/dialog.tmp|xargs dialog --title $2 --backtitle "slackpkg $VERSION" $HINT --checklist "Choose packages to $2:" 19 70 13 2>$TMPDIR/dialog.out
dialog --clear
SHOWLIST=`cat $TMPDIR/dialog.out | tr -d \"`
rm -f $TMPDIR/dialog.*
if [ -z "$SHOWLIST" ]; then
echo "No packages selected for $2, exiting."
cleanup
fi
}
fi
The line pertaining to this problem seems to be this one:
Please mail PiterPunk and let him know about this. I alerted him to this thread, but just in case he missed my message (on IRC), send him mail with the problem and the solution, please. If you happen to speak Brazilian Portugese, then you're in luck - that's his native language. Otherwise, English is fine.
Hiys people
Anyone still having ongoing problems with Slackpkg?? Besides me?
A search of 'Slackpkg' in thread titles turns up four threads, of which this is one.
I have done EVERY thing suggested by rworkman and others, to try and get this rectified, except to remove /var/cache/packages, because the user who tried this said it didn't help anything..
This failure started quite a while ago, and is identical to the others users claims of UPDATE working fine, but anything after that does one of two things: either keeps pretending to download 'index.html.1, index.html.2, index.html.3..... index.html.364' etc.. OR it continually pretends to download '.asc' and '.library' or some such thing....
A ways back, when the problem became known around LQ, I started using Swaret most of the time, because it was the only thing that worked. NOW, I think I would like to get Slackpkg working again finally, as it's no good if it doesn't work !..
I removed the previous one, deleted /etc/Slackpkg, verified that I have findutils, dialog, and the other things.. I downloaded the NEW Slackpkg, installed it with pkgtool, and presto, right back to where I started: It still doesn't work.
Please, I don't need any lessons on the merits of Slackpkg over Swaret; I like them both just fine, and each has its uses... I'd just like to make Slackpkg work again.
Thanks muchly for continued input to this thread.
I talked with PiterPunk about a week ago about this - he says that it is indeed a bug in slackpkg, but I don't know any more details. He's been busy at work over the last few weeks, so time is probably short right now.
Hi Rob, just a quick thank-you from me RE: that Slackpkg bug. Good to know it has atleast been given a name ('bug', as opposed to 'it isn't working--why??')
Thank you for the update, I'll wait patiently for news.
Hiys people
I have done EVERY thing suggested by rworkman and others, to try and get this rectified, except to remove /var/cache/packages, because the user who tried this said it didn't help anything..
Actually this solution worked for me, as it did for loki and erklaerbaer above.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.