# DietPi won't update on RPi2.

**URL:** <https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321>\
**Category:** Troubleshooting\
**Created:** [24 April 2016 14:20 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321 "2016-04-24T14:20:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gravesy](https://dietpi.com/forum/user_avatar/dietpi.com/gravesy/32/14_2.png) [@Gravesy](https://dietpi.com/forum/u/Gravesy)\
**Post date:** [24 April 2016 14:20 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321/1 "2016-04-24T14:20:21Z")

</div>

I keep getting the following error when trying to update : “Error: Obtained server version value from github is invalid. Please try running dietpi-update again.”.  
I have tried fixes suggested here : [http://fuzon.co.uk/phpbb/viewtopic.php?f=11&t=362](http://fuzon.co.uk/phpbb/viewtopic.php?f=11&t=362) , no dice.  
Installed dietpi fresh from whatever was the latest Jessie image on either March 25th or March 26th.  
Bugreport was sent last night, code i got from that was 2720e7db-cddd-40a4-bea8-2b36091b047f-0

Output from using

```nohighlight
date
curl -k -L https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/dietpi-update > /DietPi/dietpi/dietpi-update
dietpi-update

```

as suggested in the other thread :

```nohighlight
root@ ****** :~# date
Sun Apr 24 16:13:01 CEST 2016 # date and time match this
root@ ****** :~# curl -k -L https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/dietpi-update > /DietPi/dietpi/dietpi-update
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 9960 100 9960 0 0 56085 0 --:--:-- --:--:-- --:--:-- 56271

Error: Obtained server version value from github is invalid. Please try running dietpi-update again.

```

Ouput for pinging github as per suggestion by Xenformation in the other thread yields average results :

```nohighlight
root@ ****** :~# date; ping -n -c 20 raw.githubusercontent.com
Sun Apr 24 16:15:26 CEST 2016
PING github.map.fastly.net (23.235.43.133) 56(84) bytes of data.
64 bytes from 23.235.43.133: icmp_seq=1 ttl=56 time=19.9 ms
64 bytes from 23.235.43.133: icmp_seq=2 ttl=56 time=18.7 ms
64 bytes from 23.235.43.133: icmp_seq=3 ttl=56 time=20.7 ms
64 bytes from 23.235.43.133: icmp_seq=4 ttl=56 time=18.1 ms
64 bytes from 23.235.43.133: icmp_seq=5 ttl=56 time=18.7 ms
64 bytes from 23.235.43.133: icmp_seq=6 ttl=56 time=18.7 ms
64 bytes from 23.235.43.133: icmp_seq=7 ttl=56 time=18.6 ms
64 bytes from 23.235.43.133: icmp_seq=8 ttl=56 time=18.2 ms
64 bytes from 23.235.43.133: icmp_seq=9 ttl=56 time=18.7 ms
64 bytes from 23.235.43.133: icmp_seq=10 ttl=56 time=18.6 ms
64 bytes from 23.235.43.133: icmp_seq=11 ttl=56 time=18.6 ms
64 bytes from 23.235.43.133: icmp_seq=12 ttl=56 time=18.7 ms
64 bytes from 23.235.43.133: icmp_seq=13 ttl=56 time=18.5 ms
64 bytes from 23.235.43.133: icmp_seq=14 ttl=56 time=20.0 ms
64 bytes from 23.235.43.133: icmp_seq=15 ttl=56 time=20.4 ms
64 bytes from 23.235.43.133: icmp_seq=16 ttl=56 time=18.2 ms
64 bytes from 23.235.43.133: icmp_seq=17 ttl=56 time=19.0 ms
64 bytes from 23.235.43.133: icmp_seq=18 ttl=56 time=18.5 ms
64 bytes from 23.235.43.133: icmp_seq=19 ttl=56 time=18.7 ms
64 bytes from 23.235.43.133: icmp_seq=20 ttl=56 time=19.7 ms

--- github.map.fastly.net ping statistics ---
20 packets transmitted, 20 received, 0% packet loss, time 19009ms
rtt min/avg/max/mdev = 18.170/19.017/20.731/0.757 ms

```

Couldn’t telnet as

```nohighlight
root@ ***** :~# telnet raw.githubusercontent.com 80
-bash: telnet: command not found

```

So… Any suggestions ?  
(and no, i didn’t name my dietpi ‘\*\*\*\*\*’, the name i used for it isn’t kid friendly, so i censored it)  
Oh, and for sake of completion, last succesfull update was to v115.

---

<div class="post-metadata">

**Author:** ![kernowyon](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/k/5f9b8f/32.png) [@kernowyon](https://dietpi.com/forum/u/kernowyon)\
**Post date:** [25 April 2016 10:09 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321/2 "2016-04-25T10:09:40Z")

</div>

Have you tried to update the Pi today?  
I just updated my Pi2 to v116 with no problem at all - just wondering if there was a glitch yesterday and perhaps all well today?

---

<div class="post-metadata">

**Author:** ![k-plan](https://dietpi.com/forum/user_avatar/dietpi.com/k-plan/32/12_2.png) [@k-plan](https://dietpi.com/forum/u/k-plan)\
**Post date:** [25 April 2016 12:35 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321/3 "2016-04-25T12:35:25Z")

</div>

Hi,

> Have you tried to update the Pi today?

As well tested after @Gravesy posting yesterday.

It will work on my RPi B+ :

```plaintext
root@RPi-B-Plus:~# date
Sun 24 Apr 17:15:39 CEST 2016

root@RPi-B-Plus:~# curl -k -L https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/dietpi-update > /DietPi/dietpi/dietpi-update
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 9960 100 9960 0 0 57717 0 --:--:-- --:--:-- --:--:-- 58245

root@RPi-B-Plus:~# wget https://github.com/Fourdee/DietPi/blob/master/README.md
--2016-04-24 17:21:53-- https://github.com/Fourdee/DietPi/blob/master/README.md
Resolving github.com (github.com)... 192.30.252.122
Connecting to github.com (github.com)|192.30.252.122|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘README.md’

README.md [<=>] 45.90K 190KB/s in 0.2s

2016-04-24 17:21:54 (190 KB/s) - ‘README.md’ saved [47004]

```

If problem still exist, please create a github ticket: [Pull requests · Fourdee/DietPi · GitHub](https://github.com/Fourdee/DietPi/issues)

But @Fourdee have some temporary delay at the moment. [http://fuzon.co.uk/phpbb/viewtopic.php?f=9&t=355](http://fuzon.co.uk/phpbb/viewtopic.php?f=9&t=355)

Thanks.

cu  
k-plan

---

<div class="post-metadata">

**Author:** ![Zombievirus](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/z/eb8c5e/32.png) [@Zombievirus](https://dietpi.com/forum/u/Zombievirus)\
**Post date:** [25 April 2016 14:54 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321/4 "2016-04-25T14:54:16Z")

</div>

> [@Gravesy](#):
>
> Installed dietpi fresh from whatever was the latest Jessie image on either March 25th or March 26th.

The latest Image was released on 19th April.

Download

---

<div class="post-metadata">

**Author:** ![Gravesy](https://dietpi.com/forum/user_avatar/dietpi.com/gravesy/32/14_2.png) [@Gravesy](https://dietpi.com/forum/u/Gravesy)\
**Post date:** [26 April 2016 16:14 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321/5 "2016-04-26T16:14:10Z")

</div>

> [@Zombievirus](#):
>
> > [@Gravesy](#):
> >
> > Installed dietpi fresh from whatever was the latest Jessie image on either March 25th or March 26th.
> 
> The latest Image was released on 19th April.
> 
> Download

That’s…  
Really not helpful at all, since the last thing i want to do is re-image the SD just to update, because then i might as well go back to Raspbian and install everything manually.

@ the other gentlemen : issue persists, sadly.

---

<div class="post-metadata">

**Author:** ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)\
**Post date:** [27 April 2016 18:41 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321/6 "2016-04-27T18:41:08Z")

</div>

> [@Gravesy](#):
>
> > [@Zombievirus](#):
> >
> > > [@Gravesy](#):
> > >
> > > Installed dietpi fresh from whatever was the latest Jessie image on either March 25th or March 26th.
> > 
> > The latest Image was released on 19th April.
> > 
> > Download
> 
> That’s…  
> Really not helpful at all, since the last thing i want to do is re-image the SD just to update, because then i might as well go back to Raspbian and install everything manually.
> 
> @ the other gentlemen : issue persists, sadly.

Hi,

There’s a known bug in v116, which I believe is the same issue you are experiencing.

Please can you try running the fix on this page (or code snip below): [https://github.com/Fourdee/DietPi/issues/301#issue-151214787](https://github.com/Fourdee/DietPi/issues/301#issue-151214787). Try running dietpi-update again. If you can let us know the results, i’d be grateful.

```plaintext
sed -i '/gitbranch=master#Proxy settings/c\gitbranch=master' /DietPi/dietpi.txt

```

---

<div class="post-metadata">

**Author:** ![Gravesy](https://dietpi.com/forum/user_avatar/dietpi.com/gravesy/32/14_2.png) [@Gravesy](https://dietpi.com/forum/u/Gravesy)\
**Post date:** [28 April 2016 14:07 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321/7 "2016-04-28T14:07:19Z")

</div>

That indeed seems to have fixed the issue 😉 \*and i guess i was already on v116 😮 no idea how i missed that \*

Even sillier though, i checked github twice, glanced right over that issue and the fix both times 😊

---

<div class="post-metadata">

**Author:** ![Fourdee](https://dietpi.com/forum/user_avatar/dietpi.com/fourdee/32/11_2.png) [@Fourdee](https://dietpi.com/forum/u/Fourdee)\
**Post date:** [28 April 2016 20:40 UTC](https://dietpi.com/forum/t/dietpi-wont-update-on-rpi2/321/8 "2016-04-28T20:40:39Z")

</div>

> [@Gravesy](#):
>
> That indeed seems to have fixed the issue 😉 \*and i guess i was already on v116 😮 no idea how i missed that \*
> 
> Even sillier though, i checked github twice, glanced right over that issue and the fix both times 😊

Great to hear it resolved the issue and thanks for letting us know 🙂
