# Upgrade old dietpi

**URL:** https://dietpi.com/forum/t/upgrade-old-dietpi/13740
**Category:** Troubleshooting
**Created:** [21 July 2022 12:33 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740 "2022-07-21T12:33:20Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![morguena](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@morguena](https://dietpi.com/forum/u/morguena)
#### Post date: [21 July 2022 12:33 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/1 "2022-07-21T12:33:20Z")

</div>

I want to upgrade from 6.34 to newst version but I have this error.

```sh
"Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/jessie-support/.update/version
curl: (22) The requested URL returned error: 404"

```

I know my version is too old, but I have a lot of services there and I can’t start over.  
Is there any option to upgrade without problems?  
Thank you so much!

```auto
DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for available DietPi update

[OK] DietPi-Update | Checking network connectivity
[OK] DietPi-Update | Checking DNS resolver
[INFO] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/stretch/.update/version
[OK] DietPi-Update | Got valid latest version: 7.9.4
[INFO] DietPi-Update | Your Debian version is too low to update to the current branch: Unknown (0)
[INFO] DietPi-Update | We're switching to an alternative branch: jessie-support
[INFO] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/jessie-support/.update/version
curl: (22) The requested URL returned error: 404
[FAILED] DietPi-Update | Unable to get latest version.
[INFO] DietPi-Update | Please check the target Git repository and your network connection, then rerun dietpi-update.
[INFO] DietPi-Update | If this error persists, please report at: https://github.com/MichaIng/DietPi/issues
[INFO] DietPi-Update | APT update, please wait...
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:3 https://deb.debian.org/debian stretch InRelease
Hit:4 https://deb.debian.org/debian stretch-updates InRelease
Hit:5 https://deb.debian.org/debian stretch-backports InRelease
Hit:6 https://deb.debian.org/debian stretch Release
Reading package lists...
[OK] DietPi-Update | APT update
[INFO] DietPi-Update | No APT upgrades were found, not creating variable: G_AGUP_COUNT

```

### Creating a bug report/issue

#### Required Information

- DietPi version | `cat /boot/dietpi/.version`

G\_DIETPI\_VERSION\_CORE=6  
G\_DIETPI\_VERSION\_SUB=34  
G\_DIETPI\_VERSION\_RC=3  
G\_GITBRANCH=‘master’  
G\_GITOWNER=‘MichaIng’

- Distro version | `echo $G_DISTRO_NAME $G_RASPBIAN`

Unknown

- Kernel version | `uname -a`

Linux DietPi 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86\_64 GNU/Linux

- SBC model | `echo $G_HW_MODEL_NAME` or (EG: RPi3)

Native PC (x86\_64)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [21 July 2022 12:56 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/2 "2022-07-21T12:56:48Z")

</div>

Yes your system is extremely old, outdated and not supported anymore.

What exactly is your aim to update DietPi version? Or do you plan as well to update the Debian version from Stretch \> Buster \> Bullseye? Because just updating DietPi scripts will not update any software package you might running as this most probably require a manual Debian version update.

can you share your current version

```auto
cat /etc/debian_version

```

---

<div class="post-metadata">

### Author: ![morguena](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@morguena](https://dietpi.com/forum/u/morguena)
#### Post date: [21 July 2022 13:16 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/3 "2022-07-21T13:16:36Z")

</div>

I try to upgrade and pass for each version Stretch \> Buster \> Bullseye.  
My current version is 9.13

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [21 July 2022 13:52 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/4 "2022-07-21T13:52:19Z")

</div>

Maybe a min. Debian version 10 (Buster) is required. Let’s check with our developer @MichaIng before going ahead. As well, can you share installed software

```nohighlight
dietpi-software list | grep ' =2 '

```

---

<div class="post-metadata">

### Author: ![morguena](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@morguena](https://dietpi.com/forum/u/morguena)
#### Post date: [21 July 2022 14:06 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/5 "2022-07-21T14:06:17Z")

</div>

This is my list.

ID 0 | =2 | OpenSSH Client: Feature-rich SSH, SFTP and SCP client |  
ID 5 | =2 | ALSA: Advanced Linux Sound Architecture |  
ID 6 | =2 | [X.Org](http://X.Org) X Server: aka X11 - X Window System implementation |  
ID 23 | =2 | LXDE: ultra lightweight desktop | +ALSA +[X.Org](http://X.Org) X Server +browser | [Graphical Desktop Environments and Utilities - DietPi.com Docs](https://dietpi.com/docs/software/desktop/#lxde)  
ID 28 | =2 | TigerVNC Server: desktop for remote connection | +desktop | [Remote Desktop Access Software Options - DietPi.com Docs](https://dietpi.com/docs/software/remote_desktop/#tigervnc-server)  
ID 39 | =2 | ReadyMedia: (MiniDLNA) media streaming server (dlna, upnp) | | [Media Systems Software Options - DietPi.com Docs](https://dietpi.com/docs/software/media/#readymedia)  
ID 44 | =2 | Transmission: BitTorrent server with web interface (C) | | [BitTorrent and Download Tools Software Options - DietPi.com Docs](https://dietpi.com/docs/software/bittorrent/#transmission)  
ID 73 | =2 | Fail2Ban: prevents brute-force attacks with ip ban | | [System Security Software Options - DietPi.com Docs](https://dietpi.com/docs/software/system_security/#fail2ban)  
ID 94 | =2 | ProFTPD: Efficient, lightweight FTP server | | [File Servers Options - DietPi.com Docs](https://dietpi.com/docs/software/file_servers/#proftpd)  
ID 96 | =2 | Samba Server: Feature-rich SMB/CIFS server | | [File Servers Options - DietPi.com Docs](https://dietpi.com/docs/software/file_servers/#samba)  
ID 103 | =2 | DietPi-RAMlog: Makes /var/log a RAM disk, preserves file structure on reboot | | [Log System Choices - DietPi.com Docs](https://dietpi.com/docs/software/log_system/#dietpi-ramlog)  
ID 104 | =2 | Dropbear: Lightweight SSH server | | [SSH Server Choices - DietPi.com Docs](https://dietpi.com/docs/software/ssh/#dropbear)  
ID 109 | =2 | NFS Server: Network File System server | | [File Servers Options - DietPi.com Docs](https://dietpi.com/docs/software/file_servers/#nfs)  
ID 113 | =2 | Chromium: web browser for desktop or autostart | +ALSA +[X.Org](http://X.Org) X Server | [Graphical Desktop Environments and Utilities - DietPi.com Docs](https://dietpi.com/docs/software/desktop/#chromium)

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [21 July 2022 14:48 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/6 "2022-07-21T14:48:08Z")

</div>

At least Stretch is required to update further, also just to a support branch since we dropped Stretch support already as well.

Ah, but you upgraded to Stretch already. Do this to update DietPi to latest version available for Stretch:

```bash
G_CONFIG_INJECT 'DEV_GITBRANCH=' 'DEV_GITBRANCH=stretch' /boot/dietpi.txt
dietpi-update 1

```

Then you can follow our guides to further upgrade to Buster and Bullseye. After each upgrade, first check whether all services are still running as expected:

- [Usage hints / HowTo - DietPi.com Docs](https://dietpi.com/docs/usage/#how-to-upgrade-to-buster)
- `dietpi-update 1`
- [DietPi – How to upgrade to “Bullseye” – DietPi Blog](https://dietpi.com/blog/?p=811#2.2-manual-upgrade)

---

<div class="post-metadata">

### Author: ![morguena](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@morguena](https://dietpi.com/forum/u/morguena)
#### Post date: [21 July 2022 22:47 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/7 "2022-07-21T22:47:45Z")

</div>

I tried it, but in the second update appear this error

chmod -R g-w DietPi-master  
chmod: cannot access ‘DietPi-master’: No such file or directory

- Date | Fri Jul 22 00:43:35 CEST 2022
- DietPi version | v6.34.3 (MichaIng/master)
- Image creator |
- Pre-image |
- Hardware | Native PC (x86\_64) (ID=21)
- Kernel version | `Linux DietPi 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64 GNU/Linux`
- Distro | buster (ID=5)
- Command | `chmod -R g-w DietPi-master`
- Exit code | 1
- Software title | DietPi-Update

#### Steps to reproduce:

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 July 2022 04:30 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/8 "2022-07-22T04:30:37Z")

</div>

Can you share the full output of the update? If the output is to long, copy it into a `log.txt` and attach it to the post simply.

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [22 July 2022 05:35 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/9 "2022-07-22T05:35:37Z")

</div>

Can you try:

```bash
G_CONFIG_INJECT 'DEV_GITBRANCH=' 'DEV_GITBRANCH=master' /boot/dietpi.txt
dietpi-update 1

```

---

<div class="post-metadata">

### Author: ![morguena](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@morguena](https://dietpi.com/forum/u/morguena)
#### Post date: [22 July 2022 06:11 UTC](https://dietpi.com/forum/t/upgrade-old-dietpi/13740/10 "2022-07-22T06:11:36Z")

</div>

Thank you so much, now I have the 8.6.1!
