LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-30-2007, 04:41 PM   #16
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162

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)...
 
Old 02-04-2007, 07:55 AM   #17
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Original Poster
Rep: Reputation: 33
now I can upgrade one package at a time but I cannot run a:
Code:
slackpkg upgrade-all
Gives the same error.
I switch to planetftp mirror, doe.
 
Old 02-04-2007, 12:17 PM   #18
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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.
 
Old 02-23-2007, 05:59 PM   #19
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
add one more... does anyone have a solution for this yet?
 
Old 02-23-2007, 06:15 PM   #20
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Original Poster
Rep: Reputation: 33
Nothing new on my side and the exact same behavior still.
 
Old 04-06-2007, 10:02 AM   #21
[loki]
LQ Newbie
 
Registered: Mar 2006
Location: Québec
Distribution: Slackware 14.0
Posts: 7

Rep: Reputation: 1
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.
 
Old 04-06-2007, 10:57 AM   #22
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
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.
 
Old 04-06-2007, 12:47 PM   #23
[loki]
LQ Newbie
 
Registered: Mar 2006
Location: Québec
Distribution: Slackware 14.0
Posts: 7

Rep: Reputation: 1
Thank you rworkman, but it didn't work.

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
tmplist looks fine (cropped)
Code:
a2ps-4.13b-i386-2
aaa_base-11.0.0-noarch-2
aaa_elflibs-11.0.0-i486-9
aalib-1.4rc5-i386-1
acct-6.3.2-i386-1
acl-2.2.39_1-i486-1
acpid-1.0.4-i486-2
alsa-driver-1.0.11_2.4.33.3-i486-1
alsa-lib-1.0.11-i486-1
alsa-oss-1.0.11-i486-1
alsa-utils-1.0.11-i486-2
amarok-1.4.3-i486-4
amarok-1.4.5-i486-1_slack11.0
amp-0.7.6-i386-1
apache-1.3.37-i486-2
...
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:
Code:
cat $TMPDIR/dialog.tmp|xargs dialog --title $2 --backtitle "slackpkg $VERSION" $HINT --checklist "Choose packages to $2:" 19 70 13 2>$TMPDIR/dialog.out
Cheers, [loki]
 
Old 04-06-2007, 04:02 PM   #24
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
you probably have a broken /var/log/packages. see if there are packages more then one time installed.

(i know slackpkg should recognize that, but for e.g. with two glibc-zoneinfo it does not )
 
Old 04-06-2007, 05:17 PM   #25
[loki]
LQ Newbie
 
Registered: Mar 2006
Location: Québec
Distribution: Slackware 14.0
Posts: 7

Rep: Reputation: 1
You were right. It works now! I take good note of this. Thank you very much.
 
Old 04-06-2007, 05:25 PM   #26
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
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.
 
Old 04-16-2007, 08:28 PM   #27
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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.
 
Old 04-16-2007, 08:58 PM   #28
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
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.
 
Old 04-16-2007, 10:16 PM   #29
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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.
 
Old 04-26-2007, 07:22 PM   #30
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,472

Rep: Reputation: Disabled
Quote:
Originally Posted by GrapefruiTgirl
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.

Brian
 
  


Reply

Tags
slackpkg, upgrade


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
swaret and slackpkg lodder Slackware 5 10-14-2005 04:37 AM
Slackpkg vs. Swaret. mdarby Slackware 3 11-18-2004 10:10 PM
Why does patrick seem to favor slackpkg over swaret? Barx Slackware 4 11-10-2004 09:59 AM
swaret or slackpkg ? frochet Slackware 8 06-11-2004 01:08 PM
slapt-get, swaret, or SlackPkg ??? GloVe Slackware 2 10-05-2003 12:11 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration