LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't run slackpkg, no such file '\rChangeLog.txt' error (https://www.linuxquestions.org/questions/slackware-14/cant-run-slackpkg-no-such-file-%5Crchangelog-txt-error-4175577818/)

gabytf 04-19-2016 06:44 AM

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.


allend 04-19-2016 07:00 AM

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.

CTM 04-19-2016 07:02 AM

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


gabytf 04-19-2016 07:28 AM

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#

allend 04-19-2016 07:55 AM

Quote:

No such file ‘\rGPG-KEY’.
Do 'slackpkg update gpg'.

gabytf 04-19-2016 07:59 AM

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#

gabytf 04-19-2016 08:41 AM

why it kept saying
Quote:

No such file ‘\rGPG-KEY’
and
Quote:

No such file ‘\rChangeLog.txt’.
?

allend 04-19-2016 08:44 AM

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 )-: ).

gabytf 04-19-2016 08:49 AM

i really no idea of what is happening...

55020 04-19-2016 08:52 AM

Possibly that mirror has misconfigured ascii mode in their ftp server. Try http instead of ftp, and/or use a different mirror.

CTM 04-19-2016 08:53 AM

gabytf, perhaps you missed this post:

Quote:

Originally Posted by CTM (Post 5533297)
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



phenixia2003 04-19-2016 09:22 AM

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

allend 04-19-2016 09:30 AM

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.

keefaz 04-19-2016 09:40 AM

Quote:

Originally Posted by gabytf (Post 5533286)
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)

gabytf 04-19-2016 09:46 AM

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



All times are GMT -5. The time now is 08:30 PM.