slackpkg does not recognize mirrors
I used slackpkg on a prior version and it worked great. This time I did this:
I always get this message after slackpkg update Quote:
Your comments will be appreciated. |
Works great for me. Maybe post your mirrors file? Which one do you have selected? You could at least post that line.
|
That slackpkg comment looks like it tells you exactly what to do. What part is not clear to you?
Eric |
Quote:
Here is my original post: Quote:
What part of my post is not clear to you? Thanks anyway. |
Slackpkg is trying to tell you that only ONE mirror can be uncommented. What part of *that* is unclear to you?
This should reveal the problem: Code:
grep -v ^# /etc/slackpkg/mirrors |
xri, you probably should just post the mirrors file, just to satisfy the cynical :D
and be sure to run the command that rworkman put up, simple and useful. You never know, you might have made a mistake ..... Quote:
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.
Regarding slackpkg, Quote:
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:
|
xri:
What slackpkg version are you using? First, let's look at /usr/sbin/slackpkg in slackpkg-2.61: Lines 39 and 40 Code:
CONF=/etc/slackpkg Lines 80-97 Code:
# Checking if /etc/slackpkg/mirrors are in correct syntax. Try this (to replicate the exact command used by slackpkg): Code:
grep -e "^\([a-z]\)" /etc/slackpkg/mirrors |
I can see what you mean. The variable SOURCE is empty, because
grep -e "^\([a-z]\)" /etc/slackpkg/mirrors gives me no output. although the files and lines you showed are identical on my system (Slack 12.0 and slackpkg slackpkg-2.61). After a 15-minute crash course on regular expressions, I replaced line 40 on /usr/sbin/slackpkg with Quote:
Thanks a lot!! This is why I love Linux. |
Okay, well, I'm glad it's fixed. I've pinged PiterPunk (slackpkg author) about this. Thanks for the followup and fix. :-)
|
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 |
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.
This is a great community. |
Okay, I've got the mirrors file, and I see the problem. Here's what the mirrors file has:
Code:
#ftp://slackware.mirrors.pair.com/slackware-11.0/ The slackpkg code that finds uncommented mirrors is only looking at the first character of the line. |
All times are GMT -5. The time now is 02:55 PM. |