LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg is not working...and I'm no noob (https://www.linuxquestions.org/questions/slackware-14/slackpkg-is-not-working-and-im-no-noob-4175476066/)

the_penguinator 09-05-2013 01:32 PM

slackpkg is not working...and I'm no noob
 
this is making me nuts...
I've removed slackpkg and manually deleted all related directories and then did installpkg slackpkg*, supposedly producing for myself a "clean" new bit of installed software...
despite that, this is the error msg
bash-4.2# slackpkg install-new

awk: /usr/libexec/slackpkg/pkglist.awk:13: (FILENAME=- FNR=90) fatal: NF set to negative value
Looking for NEW packages to install. Please wait... DONE

No packages match the pattern for install. Try...(snipped)

clues, questions happily read

WhiteWolf1776 09-05-2013 01:44 PM

well, as you are no noob... you of course setup a mirror in /etc/slackpkg and did 'slackpkg update' first.

What version of slackware / version of slackpkg is giving you the trouble?

the_penguinator 09-05-2013 02:46 PM

Quote:

Originally Posted by WhiteWolf1776 (Post 5022506)
well, as you are no noob... you of course setup a mirror in /etc/slackpkg and did 'slackpkg update' first.

you betcha

Quote:

Originally Posted by WhiteWolf1776 (Post 5022506)
What version of slackware / version of slackpkg is giving you the trouble?

slack64 -current
slackpkg-2.82.0-noarch-9.tgz

brianL 09-05-2013 03:17 PM

Long-time noob here.
If you've done a full install, wouldn't that result be expected with slackpkg install-new?
Just guessing.

bosth 09-05-2013 03:20 PM

Which mirror are you using? There could be a problem with the metadata.

the_penguinator 09-06-2013 07:36 AM

Quote:

Originally Posted by brianL (Post 5022558)
Long-time noob here.
If you've done a full install, wouldn't that result be expected with slackpkg install-new?
Just guessing.

not a full install of the entire distro...just a re-install of slackpkg because it started borking with the error msg quoted above...my install of Slack64-current is stalled at kernel 3.9.7...my kde is not v4.10.5...etc I should have pointed out that I get a similar error msg to the one quoted above when doing #slackpkg upgrade-all...

if a reinstall of slackpkg is not clearing out the error msg preventing me from doing #slackpkg install-new or #slackpkg upgrade-all, where/what else might I be looking for as the cause?

the_penguinator 09-06-2013 07:45 AM

Quote:

Originally Posted by bosth (Post 5022559)
Which mirror are you using? There could be a problem with the metadata.

ftp://mirror.csclub.uwaterloo.ca/sla...are64-current/

phenixia2003 09-06-2013 08:04 AM

Hello,

Is the command below give you the same error message as in your first post ?

Code:

ls -1 /var/log/packages/* | awk -f /usr/libexec/slackpkg/pkglist.awk
If this is the case I guess there's something wrong in /var/log/packages that breaks pkglist.awk and leads install-new to fail.

--
SeB

the_penguinator 09-06-2013 08:46 AM

Quote:

Originally Posted by phenixia2003 (Post 5023012)
Hello,

Is the command below give you the same error message as in your first post ?

Code:

ls -1 /var/log/packages/* | awk -f /usr/libexec/slackpkg/pkglist.awk
If this is the case I guess there's something wrong in /var/log/packages that breaks pkglist.awk and leads install-new to fail.

--
SeB

yes it does...and furthermore I've now discovered that pkgtools is somehow missing from this system...going offline to do a little forensic work now

thanks

Didier Spaier 09-06-2013 08:47 AM

As SeB said, something should be wrong in the format of one of the files in /var/og/packages (I would add, or in FILELIST.TXT at the root of the mirror you unselected in /etc/slackpkg/smackpkg.conf), as:
Code:

bash-4.2$ grep -rnB1 pkglist.awk /usr/libexec/slackpkg/
/usr/libexec/slackpkg/core-functions.sh-551-    if echo $CMD | grep -q install ; then
/usr/libexec/slackpkg/core-functions.sh:552:            ls -1 /var/log/packages/* | awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
/usr/libexec/slackpkg/core-functions.sh-553-    else
/usr/libexec/slackpkg/core-functions.sh:554:            ls -1 /var/log/packages/* | awk -f /usr/libexec/slackpkg/pkglist.awk | applyblacklist > ${TMPDIR}/tmplist
--
/usr/libexec/slackpkg/core-functions.sh-1074-  grep "\.t[blxg]z$" $FILELIST| \
/usr/libexec/slackpkg/core-functions.sh:1075:          awk -f /usr/libexec/slackpkg/pkglist.awk |\
bash-4.2$


bosth 09-06-2013 09:29 AM

Quote:

Originally Posted by the_penguinator (Post 5023001)

No, that mirror seems to be fine for use.


All times are GMT -5. The time now is 07:10 AM.