Rpi unknown

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Rpi unknown

Post by Fourdee »

RasPiHacker wrote:Hi Fourdee!

Have been hospitalized for two weeks, just seen Your post today.

I have tried all the other suggestions in the forums regarding update problems on the V.115, but none has worked.

dietpi-update with no or any option (1,2,3) returns the same error:

Code: Select all

DietPi-Update:
Checking for DietPi updates, Please wait...
curl: (3) Illegal characters found in URL
cat /DietPi/dietpi.txt | grep 'git'
returns this:

Code: Select all

root@DietPiZero:~# cat /DietPi/dietpi.txt | grep 'git'
gitbranch=master
root@DietPiZero:~#
Sincerely
RasPiHacker
Hi RasPiHacker,

No worries, hopefully your onto a good recovery?

The inability to update is most likely the line endings in dietpi.txt being dos, instead of unix. This can occur when a user edits the file on a Windows PC with notepad/wordpad.

To resolve this, please run the folllowing commands, as per this post: https://github.com/Fourdee/DietPi/issue ... -228723958

Code: Select all

sed -i $'s/\r$//' /DietPi/dietpi.txt
dietpi-update
Please let me know the results :)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
RasPiHacker

Re: Rpi unknown

Post by RasPiHacker »

Hi again.

I had tried everything in this thread:Raspberry Pi 3 wont update, but noting worked.
sed -i $'s/\r$//' /DietPi/dietpi.txt
Running the above fixed it, thank You Fourdee!

Strange since I have not used anything but Putty to connect via serial cable to the Zero, and nano, once logged in, to edit files on the Zero.

Anyways:

Code: Select all

───────────────────────────────────────
 DietPi     | 21:29 | Thu 07/07/16
 ───────────────────────────────────────
 V122       | RPi Zero (armv6l)
 ───────────────────────────────────────
 IP Address | 192.168.30.49
 ───────────────────────────────────────
It works a treat now, thank You again and keep up the good work!!

Sincerely
RasPiHaker
Post Reply