LinuxQuestions.org
Visit Jeremy's Blog.
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 11-21-2010, 09:36 AM   #1
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Rep: Reputation: Disabled
slackpkg upgrade-all problem


heres problem im dealing with one day ago:

Code:
slackpkg upgrade-all

Checking local integrity... DONE
You have a broken /var/log/packages - with two versions of the same package.
The list of packages duplicated in your machine are shown below, but don't
worry about this list - when you select your action, slackpkg will show a
better list:


You can (B)lacklist, (R)emove, or (I)gnore these packages.
Select your action (B/R/I): r

wc: /tmp/slackpkg.wU5kCg/dialog.tmp: No such file or directory
/usr/libexec/slackpkg/functions.d/dialog-functions.sh: line 45: [: -ge: unary operator expected
cat: /tmp/slackpkg.wU5kCg/dialog.tmp: No such file or directory

























==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while slackpkg was running:

DIALOG ERROR:
-------------

Error: Expected at least 7 tokens for --checklist, have 4.
Use --help to list options.


-------------
If you want to continue using slackpkg, disable the DIALOG option in
/etc/slackpkg/slackpkg.conf and try again.

Help us to make slackpkg a better tool - report bugs to the slackpkg
developers

==============================================================================
where the problem might be?

is there also a way to find wich packages are duplicated and uninstall them so it eliminates error without pkgtool like?

thanks
 
Old 11-21-2010, 03:49 PM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Look in /var/log/packages for a file called dialog-1.1_20080819-i486-2, slackpkg requires this program to show you the results graphically.

Find the package that is duplicated in /var/log/packages then remove that package with removepkg and then re-install it with installpkg.

samac
 
Old 11-21-2010, 04:25 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Where the problem is I do not know. Perhaps you need to reinstall slackpkg.
Quote:
s there also a way to find wich packages are duplicated and uninstall them so it eliminates error without pkgtool like?
At the command line, do:
'for PKG in /var/log/packages/* ; do echo ${PKG%-*-*-*} >> /tmp/list.txt; done'
'uniq -d /tmp/list.txt'
This should show the duplicate names that slackpkg is finding.
Then 'ls /var/log/packages | grep [the_duplicate_name]' will show the actual packages.
You can then use 'removepkg' to remove the unwanted duplicate.

Edit - samac was quicker and the lack of the dialog package makes sense

Edit2 - A better way to find the duplicate names avoiding the temporary file.
(for PKG in /var/log/packages/* ; do echo ${PKG%-*-*-*} ; done) | uniq -d

Last edited by allend; 11-21-2010 at 10:43 PM.
 
Old 11-21-2010, 06:30 PM   #4
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
No, I think it's not the dialog problem because slackpkg didn't call dialog yet

I suspect the problem lays in the sanity_check function in line 1140 of /usr/libexec/slackpkg/core-functions.sh. (BTW, what version of slackware and slackpkg are you using?) If DOUBLEFILES is junk, it will have such behavior. Could please let me know what pkg are duplicated? Thanks a lot!
 
Old 11-21-2010, 06:40 PM   #5
pupok
LQ Newbie
 
Registered: Jul 2009
Location: Banská Bystrica, Slovak republic
Distribution: Slackware, Ubuntu
Posts: 18

Rep: Reputation: 2
Quote:
Originally Posted by matters View Post
heres problem im dealing with one day ago:

Code:
...
wc: /tmp/slackpkg.wU5kCg/dialog.tmp: No such file or directory
/usr/libexec/slackpkg/functions.d/dialog-functions.sh: line 45: [: -ge: unary operator expected
cat: /tmp/slackpkg.wU5kCg/dialog.tmp: No such file or directory
...
where the problem might be?

is there also a way to find wich packages are duplicated and uninstall them so it eliminates error without pkgtool like?

thanks
Full filesystem?
What says df -m?
 
Old 11-22-2010, 07:40 AM   #6
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
hi guys! thanks for fast response. today i found many replies but fixed it before. thanks for suggestions. i made sure that i have installed lasted xz, tar, glibc-solibs then i went backward way by doing slackpkg clean-system slackpkg-install-new slackpkg upgrade-all and it worked. so i couldnt test your suggestions.

once again thanks alot everyone
 
  


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
[SOLVED] After upgrade all using slackpkg upgrade, configuration is failed to read ethereal1m Linux - Newbie 3 04-28-2010 01:03 AM
slackpkg upgrade-all does not show an upgrade sycamorex Slackware 6 11-03-2009 05:29 AM
upgrade slack-current with slackpkg, problem with Xorg specialized Slackware 24 07-07-2009 02:32 PM
Upgrade with slackpkg STARHARVEST Slackware 11 05-17-2008 07:07 PM
Problem on running slackpkg upgrade-all satimis Slackware 5 03-20-2007 06:19 AM

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

All times are GMT -5. The time now is 05:44 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