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.
I used slackpkg on a prior version and it worked great. This time I did this:
I installed Slack 12.0 from scratch and just slackpkg.
I tested most of the mirrors uncommenting one individually each time, both using the version 11.0 mirror, and also changing it to 12.0.
I always get this message after slackpkg update
Quote:
You do not have any mirror selected in /etc/slackpkg/mirrors
Please edit that file and uncomment ONE mirror. Slackpkg
only works with ONE mirror selected.
What should I do to make it work? (It worked fine the last time I used it with Slack 10.2)
When I wrote this I meant intelligent and civil comments.
Here is my original post:
Quote:
I used slackpkg on a prior version and it worked great. This time I did this:
I installed Slack 12.0 from scratch and just slackpkg.
I tested most of the mirrors uncommenting one individually each time, both using the version 11.0 mirror, and also changing it to 12.0
Don't you think that, if I used slackpakg on a prior version, I know how to uncomment a line on a file?
What part of my post is not clear to you?
Thanks anyway.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
xri, you probably should just post the mirrors file, just to satisfy the cynical
and be sure to run the command that rworkman put up, simple and useful. You never know, you might have made a mistake .....
Quote:
When I wrote this I meant intelligent and civil comments.
aww, comeon it isn't that rude or anything. The obvious solution is usually the correct one, even if it seems really dumb.
Eric and Robby are both contributors to slackware. I can assure you that if you actually do have a genuine problem, no one would work harder than both of them to resolve it.
Sorry if my tone above on was not my usual. Actually, I was sleep deprived and didn't pay much attention on the member's name. Now I remember seeing the 'Alien Bob' moniker many times on helpful posts. My apologies.
Worth noting, this is only one of many mirrors I chose successively, one mirror only each time. Initially, I tested the mirrors with the original 11.0 part, and then changed the links to 12.0 to conform to my Slack version.
I have not touched the configuration file or the blacklist.
Quote:
The obvious solution is usually the correct one, even if it seems really dumb.
This is probably true. I might be missing something really simple this time.
Looking at /usr/libexec/slackpkg/core-functions.sh of slackpkg-2.61:
Lines 80-97
Code:
# Checking if /etc/slackpkg/mirrors are in correct syntax.
#
if [ "$SOURCE" = "" ]; then
echo -e "\
\nYou do not have any mirror selected in ${CONF}/mirrors\n\
Please edit that file and uncomment ONE mirror. Slackpkg\n\
only works with ONE mirror selected.\n"
cleanup
else
COUNT=`echo $SOURCE | wc -w | tr -d " "`
if [ "$COUNT" != "1" ]; then
echo -e "\n\
Slackpkg only works with ONE mirror selected. Please edit your\n\
${CONF}/mirrors and comment all but one line - two or more\n\
mirrors uncommented is not valid syntax.\n"
cleanup
fi
fi
Based on your error message, slackpkg is not detecting the uncommented mirror.
Try this (to replicate the exact command used by slackpkg):
xri:
For debugging purposes, your exact /etc/slackpkg/mirrors file is needed.
Can you mail it to PiterPunk: piterpunk [At] slackware.com
and CC me: rworkman [At] slackware.com
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
hahaha man who would have thought .. a problem in the regex ....
and robby I bow to thee .. for being smart enough to see the slackpkg scripts ... I generally assume that the scripts set by a program to be error free , would have never guessed that the slackpkg script would be at error ...
Well, it's a bug somewhere, but I'm not sure where. Neither I nor PiterPunk have been able to reproduce the error, even trying various combinations of blank lines (no comment marks). That's why we need the actual unmodified mirrors file.
Hi guys. Sorry for the delay to respond. I haven't been around my computer for a long time. Of course I'll email you my mirrors file and provide any further information about my system if needed. Thanks for your insight about this issue. I'll take my lesson home and apply a similar approach for future problems.
Note the blank space before the uncommented mirror.
The slackpkg code that finds uncommented mirrors is only looking at the first character of the line.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.