[SOLVED] Can't run slackpkg, no such file '\rChangeLog.txt' error
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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’.
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:
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 )-: ).
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:
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)
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.