LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-19-2016, 06:44 AM   #1
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Rep: Reputation: 1
Can't run slackpkg, no such file '\rChangeLog.txt' error


I can't run slackpkg update.
Running Slackware 14.1.
I think before this happened, I was running 'slackpkg update' with mirror in slackware -current instead of 14.1.

I do not know how to correct the situation now. Please help.
Thanks.

Error I get:

Quote:
bash-4.2# slackpkg update

Updating the package lists...
Downloading...
ChangeLog.txt... Downloading ftp://ftp.cc.swin.edu.au/slackware/slackware-14.1/
--2016-04-19 19:37:12-- ftp://ftp.cc.swin.edu.au/slackware/s...DChangeLog.txt
=> ‘/tmp/slackpkg.fEmhSf/ChangeLog.txt’
Resolving ftp.cc.swin.edu.au (ftp.cc.swin.edu.au)... 136.186.1.76, 2001:388:6080:64::dc41:1cf
Connecting to ftp.cc.swin.edu.au (ftp.cc.swin.edu.au)|136.186.1.76|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /slackware/slackware-14.1 ... done.
==> SIZE \rChangeLog.txt ... done.
==> PASV ... done. ==> RETR \rChangeLog.txt ...
No such file ‘\rChangeLog.txt’.


.rror downloading from ftp://ftp.cc.swin.edu.au/slackware/slackware-14.1/
Please, check your mirror and try again.
 
Old 04-19-2016, 07:00 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
I have never been a fan of that mirror. Try editing your /etc/slackpkg/mirrors to use http://mirror.internode.on.net/pub/s...lackware-14.1/ instead.
 
1 members found this post helpful.
Old 04-19-2016, 07:02 AM   #3
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
The \r implies that you have a configuration file that has some Windows-style line endings (\r\n) rather than Unix line endings (just \n). Try opening slackpkg.conf in vim and run the following commands:

Code:
:e ++ff=dos
:setlocal ff=unix
:wq
 
1 members found this post helpful.
Old 04-19-2016, 07:28 AM   #4
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
allend, problem still...

Quote:
bash-4.2# slackpkg update

GPG-KEY... Downloading ftp://mirror.internode.on.net/pub/sl...lackware-14.1/
--2016-04-19 20:26:46-- ftp://mirror.internode.on.net/pub/sl...4.1/%0DGPG-KEY
=> ‘/tmp/slackpkg.CpZ8ZA/gpgkey’
Resolving mirror.internode.on.net (mirror.internode.on.net)... 150.101.135.3
Connecting to mirror.internode.on.net (mirror.internode.on.net)|150.101.135.3|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/slackware/slackware-14.1 ... done.
==> SIZE \rGPG-KEY ... done.
==> PASV ... done. ==> RETR \rGPG-KEY ...
No such file ‘\rGPG-KEY’.

Updating the package lists...
Downloading...
ChangeLog.txt... Downloading ftp://mirror.internode.on.net/pub/sl...lackware-14.1/
--2016-04-19 20:26:51-- ftp://mirror.internode.on.net/pub/sl...DChangeLog.txt
=> ‘/tmp/slackpkg.CpZ8ZA/ChangeLog.txt’
Resolving mirror.internode.on.net (mirror.internode.on.net)... 150.101.135.3
Connecting to mirror.internode.on.net (mirror.internode.on.net)|150.101.135.3|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/slackware/slackware-14.1 ... done.
==> SIZE \rChangeLog.txt ... done.
==> PASV ... done. ==> RETR \rChangeLog.txt ...
No such file ‘\rChangeLog.txt’.


.rror downloading from ftp://mirror.internode.on.net/pub/sl...lackware-14.1/
Please, check your mirror and try again.

bash-4.2#
 
Old 04-19-2016, 07:55 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
No such file ‘\rGPG-KEY’.
Do 'slackpkg update gpg'.
 
Old 04-19-2016, 07:59 AM   #6
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
I did, but here the results:

Quote:
bash-4.2# slackpkg update gpg

GPG-KEY... Downloading ftp://mirror.internode.on.net/pub/sl...lackware-14.1/
--2016-04-19 20:57:08-- ftp://mirror.internode.on.net/pub/sl...4.1/%0DGPG-KEY
=> ‘/tmp/slackpkg.ZalGLx/gpgkey’
Resolving mirror.internode.on.net (mirror.internode.on.net)... 150.101.135.3
Connecting to mirror.internode.on.net (mirror.internode.on.net)|150.101.135.3|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/slackware/slackware-14.1 ... done.
==> SIZE \rGPG-KEY ... done.
==> PASV ... done. ==> RETR \rGPG-KEY ...
No such file ‘\rGPG-KEY’.


bash-4.2#
 
Old 04-19-2016, 08:41 AM   #7
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
why it kept saying
Quote:
No such file ‘\rGPG-KEY’
and
Quote:
No such file ‘\rChangeLog.txt’.
?
 
Old 04-19-2016, 08:44 AM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Have you been messing with files using Windows?
THat "\r" looks like an extraneous carriage return character introduced by a Windows editor. (I have been down that route this week with someone wondering why my script no longer works after it was opened with g++ in Windows )-: ).
 
Old 04-19-2016, 08:49 AM   #9
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
i really no idea of what is happening...
 
Old 04-19-2016, 08:52 AM   #10
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Possibly that mirror has misconfigured ascii mode in their ftp server. Try http instead of ftp, and/or use a different mirror.
 
Old 04-19-2016, 08:53 AM   #11
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
gabytf, perhaps you missed this post:

Quote:
Originally Posted by CTM View Post
The \r implies that you have a configuration file that has some Windows-style line endings (\r\n) rather than Unix line endings (just \n). Try opening slackpkg.conf in vim and run the following commands:

Code:
:e ++ff=dos
:setlocal ff=unix
:wq
 
1 members found this post helpful.
Old 04-19-2016, 09:22 AM   #12
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

As pointed out by CTM, one (or more) of your configuration files has Windows-style line endings.

The error messages indicate that the selected mirror in your /etc/slackpkg/mirrors ends with a Windows line endings :
Code:
$ unix2dos /etc/slackpkg/mirrors
unix2dos: converting file /etc/slackpkg/mirrors to DOS format...

$ slackpkg update gpg

Downloading ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64GPG-KEY...
--2016-04-19 16:17:53--  ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-14.1/%0DGPG-KEY
           => ‘/tmp/slackpkg.p8ObPa/gpgkey’
Resolving nephtys.lip6.fr (nephtys.lip6.fr)... 195.83.118.1
Connecting to nephtys.lip6.fr (nephtys.lip6.fr)|195.83.118.1|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/linux/distributions/slackware/slackware64-14.1 ... done.
==> SIZE \rGPG-KEY ... done.
==> PASV ... done.    ==> RETR \rGPG-KEY ... 
No such file ‘\rGPG-KEY’.

slackpkg update

Updating the package lists...
        Downloading...
                        Downloading ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64ChangeLog.txt...
--2016-04-19 16:22:07--  ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-14.1/%0DChangeLog.txt
           => ‘/tmp/slackpkg.D0k1Wm/ChangeLog.txt’
Resolving nephtys.lip6.fr (nephtys.lip6.fr)... 195.83.118.1
Connecting to nephtys.lip6.fr (nephtys.lip6.fr)|195.83.118.1|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/linux/distributions/slackware/slackware64-14.1 ... done.
==> SIZE \rChangeLog.txt ... done.
==> PASV ... done.    ==> RETR \rChangeLog.txt ... 
No such file ‘\rChangeLog.txt’.


.rror downloading from ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-14.1/
Please, check your mirror and try again.
If you run the following command :

Code:
$ dos2unix /etc/slackpkg/mirrors
dos2unix: converting file /etc/slackpkg/mirrors to Unix format...
slackpkg should work as expected:
Code:
slackpkg update gpg

                        Downloading ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-14.1/GPG-KEY...
--2016-04-19 16:19:27--  ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-14.1/GPG-KEY
           => ‘/tmp/slackpkg.HVluoY/gpgkey’
Resolving nephtys.lip6.fr (nephtys.lip6.fr)... 195.83.118.1
Connecting to nephtys.lip6.fr (nephtys.lip6.fr)|195.83.118.1|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/linux/distributions/slackware/slackware64-14.1 ... done.
==> SIZE GPG-KEY ... 1572
==> PASV ... done.    ==> RETR GPG-KEY ... done.
Length: 1572 (1.5K) (unauthoritative)

100%[=============================================================>] 1,572       --.-K/s   in 0.001s  

2016-04-19 16:19:27 (2.38 MB/s) - ‘/tmp/slackpkg.HVluoY/gpgkey’ saved [1572]

                        Slackware Linux Project's GPG key added

$ slackpkg update

Updating the package lists...
        Downloading...
                        Downloading ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-14.1/ChangeLog.txt...
--2016-04-19 16:22:37--  ftp://nephtys.lip6.fr/pub/linux/distributions/slackware/slackware64-14.1/ChangeLog.txt
           => ‘/tmp/slackpkg.x6NV8a/ChangeLog.txt’
Resolving nephtys.lip6.fr (nephtys.lip6.fr)... 195.83.118.1
Connecting to nephtys.lip6.fr (nephtys.lip6.fr)|195.83.118.1|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/linux/distributions/slackware/slackware64-14.1 ... done.
==> SIZE ChangeLog.txt ... 335640
==> PASV ... done.    ==> RETR ChangeLog.txt ... done.
Length: 335640 (328K) (unauthoritative)
...
You can also do that with /etc/slackpkg/slackpkg.conf if needed :
Code:
$ dos2unix /etc/slackpkg/slackpkg.conf
dos2unix: converting file /etc/slackpkg/slackpkg.conf to Unix format...

--
SeB

Last edited by phenixia2003; 04-19-2016 at 09:24 AM.
 
Old 04-19-2016, 09:30 AM   #13
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
Possibly that mirror has misconfigured ascii mode in their ftp server. Try http instead of ftp, and/or use a different mirror.
No way. The mirror.internode.on.net/pub/slackware/ site is my preferred local mirror and has always been reliable for me.

PS - My apologies to CTM. I missed your original post about the Windows line endings.

Last edited by allend; 04-19-2016 at 09:32 AM.
 
Old 04-19-2016, 09:40 AM   #14
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by gabytf View Post
I can't run slackpkg update.
Running Slackware 14.1.
I think before this happened, I was running 'slackpkg update' with mirror in slackware -current instead of 14.1.

I do not know how to correct the situation now. Please help.
Thanks.
Maybe try to remove curl and wget packages and install previous version (those that match with 14.1 stable)
 
Old 04-19-2016, 09:46 AM   #15
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
this is what i get:

Quote:
bash-4.2# dos2unix /etc/slackpkg/mirrors
bash: dos2unix: command not found
bash-4.2# dos2unix /etc/slackpkg/slackpkg.conf
bash: dos2unix: command not found
bash-4.2#
sorry that i actually do not know how to run the command in vim as CTM advised:
Quote:
Originally Posted by CTM View Post
The \r implies that you have a configuration file that has some Windows-style line endings (\r\n) rather than Unix line endings (just \n). Try opening slackpkg.conf in vim and run the following commands:

Code:

:e ++ff=dos
:setlocal ff=unix
:wq
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] read txt file into an array and make a second txt file zimbot Linux - General 12 09-05-2015 01:39 PM
[SOLVED] slackpkg cannot find PACKAGES.TXT dc_eros Slackware 10 09-10-2012 07:41 AM
Copy the contents of a txt file to other txt files (with similar names) by cp command Aquarius_Girl Linux - Newbie 7 07-03-2010 12:54 AM
SlackPkg trying to upgrade rpm2tgz-1.0-i486-1.txt in -current niels.horn Slackware 3 05-09-2009 09:43 AM
How can read from file.txt C++ where can save this file(file.txt) to start reading sam_22 Programming 1 01-11-2007 05:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration