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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The function Remove from from pkgtool menu just says that the packages have been removed.
The View option returns to main menu.
I did installpkg on pkgtool from slackware tree and same results.
I am using slackpkg for a while but only saw this problem on pkgtool now, cant say that was after slackpkg .
Any hints on what i can try to find out what is happening?
Last edited by frushiyama; 12-16-2014 at 08:04 PM.
Reason: clarify the the view option
If the View option shows you nothing, I wonder if your /var/adm/packages directory is empty? It should contain 1 file for each installed Slackware package.
At casual glance, there's not much going on there other than dialog and removepkg, which in turn may make use of things like coreutils, find (findutils), and sed. Are all of these installed and working OK? And then there are the pkgtools themselves, and it probably helps to have bash as /bin/sh as well...
Last edited by mlslk31; 12-15-2014 at 09:10 PM.
Reason: add pkgtools and bash mention
If the View option shows you nothing, I wonder if your /var/adm/packages directory is empty? It should contain 1 file for each installed Slackware package.
No, it is normal, all packages folders are there.
Quote:
Originally Posted by mlslk31
At casual glance, there's not much going on there other than dialog and removepkg, which in turn may make use of things like coreutils, find (findutils), and sed. Are all of these installed and working OK? And then there are the pkgtools themselves, and it probably helps to have bash as /bin/sh as well...
I have this packages:
coreutils-8.21-x86_64-1
findutils-4.4.2-x86_64-1
sed-4.2.2-x86_64-1
All installed.
The View option shows nothing and returns to main menu.
To clarify: Using root, you run pkgtool without arguments. From the menu, you select View and press Enter. You do, or do not get a list of installed packages at this time? (It could take a few seconds to generate the list.)
If you do get a list of packages from View, then you select any package and press Enter. Instead of seeing the package information and file list, you just get the pkgtool main menu again?
Although I agree with mislk31 that points to a possible problem with dialog, coreutils, sed, etc... I'm still suspicious of your /var/log/packages directory. How about trying these commands (not as root):
All 3 commands above should display the same number - the number of installed Slackware packages. If one of them shows a different number, you can use a command like this to find the offending files:
To clarify: Using root, you run pkgtool without arguments. From the menu, you select View and press Enter. You do, or do not get a list of installed packages at this time? (It could take a few seconds to generate the list.)
If you do get a list of packages from View, then you select any package and press Enter. Instead of seeing the package information and file list, you just get the pkgtool main menu again?
I do not get list a of files like usualy do, i get the pkgtool menu again.
Quote:
Originally Posted by ljb643
Although I agree with mislk31 that points to a possible problem with dialog, coreutils, sed, etc... I'm still suspicious of your /var/log/packages directory. How about trying these commands (not as root):
I have 1319 packages, all the same number from the ls and two grep commands like ljb643 said.
Quote:
Originally Posted by ljb643
All 3 commands above should display the same number - the number of installed Slackware packages. If one of them shows a different number, you can use a command like this to find the offending files:
I just get fed up and reinstall stuff at this point. I might go in the order bash, pkgtools, coreutils, sed, findutils, util-linux. However pkgtool is a shell script, and there are two create_list_of functions that you can look at, after opening the file in a text editor. Maybe there's some obvious point where the script is failing.
Maybe there's a language issue, with you posting from Sweden and the original poster posting from Brazil? So I ask blindly: Would it make a difference to start pkgtool as "env LC_ALL=C pkgtool" ?
Otherwise, I can produce this issue exactly only by starting pkgtool like "/bin/zsh pkgtool". A close second would be to remove sed or grep, but that doesn't cause returns to the main menu, it creates empty lists.
Maybe there's a language issue, with you posting from Sweden and the original poster posting from Brazil? So I ask blindly: Would it make a difference to start pkgtool as "env LC_ALL=C pkgtool" ?
Unlikely, IMO
Quote:
Otherwise, I can produce this issue exactly only by starting pkgtool like "/bin/zsh pkgtool". A close second would be to remove sed or grep, but that doesn't cause returns to the main menu, it creates empty lists.
Maybe there's a language issue, with you posting from Sweden and the original poster posting from Brazil? So I ask blindly: Would it make a difference to start pkgtool as "env LC_ALL=C pkgtool" ?
Otherwise, I can produce this issue exactly only by starting pkgtool like "/bin/zsh pkgtool". A close second would be to remove sed or grep, but that doesn't cause returns to the main menu, it creates empty lists.
Calling with env LC_ALL=C pkgtool and menus are back to normal.
My /etc/profile.d/lang.sh is export LANG=pt_BR.UTF-8 .
I use pt_BR.UTF-8 in slackware arm port which is still under pkgtools-14.1-noarch-1 and there this issue did not occur.
Surprisingly, this part of pkgtool works with bash, ash, and ksh93. I haven't tried to execute the functions using non-bash shells, and that part might go differently. I even tried grabbing the latest bash out of slackware-current, and that changed nothing: Everything works well here. So my remaining option is to go home and look at it using a slackware-current that was installed just this morning, see if it's different. Either that or somebody would post snippets of script output, and I can see if it looks the same here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.