LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg does not recognize mirrors (https://www.linuxquestions.org/questions/slackware-14/slackpkg-does-not-recognize-mirrors-591519/)

xri 10-24-2007 01:38 PM

I see. One space at the beginning makes a big difference.

johnpo 08-11-2009 11:00 PM

I know this is an old post but I was having the exact same problem. I upgraded with slackpkg 2.80.2 on my laptop and all went well, when I tried it on my desktop which had version 2.80.1 I had the same problem as xri, it kept telling me I needed to uncomment One line, which I had already done. I compared the two versions of slackpkg and found line 40 was different. I replaced it with the one that worked, version 2.80.2 and then I was able to run slackpkg update successfully. Slackware-current install was from July 28 2009.

VERSION=2.80.1 line 40
SOURCE=$(grep -e "^\([a-z]\)" $CONF/mirrors)

replaced with
VERSION=2.80.2 line 40
SOURCE=$(sed -e 's/^[[:blank:]]*//' $CONF/mirrors | grep -m1 -e "^\([a-z]\)")

I also had a space before the uncommented mirror but it still worked after I changed line 40.

# USA, 45Mbit
# ftp://slackware.oregonstate.edu/pub/...kware-current/
# USA, 155Mbps
ftp://carroll.cac.psu.edu/pub/linux/...kware-current/
# Taiwan, 1Gbit
# ftp://ftp.isu.edu.tw/pub/Linux/Slack...kware-current/


All times are GMT -5. The time now is 09:03 PM.