# DietPi update failed - Raspberry Pi 4

**URL:** <https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754>\
**Category:** Troubleshooting\
**Tags:** raspberry-pi-4, beta\
**Created:** [2 May 2023 18:19 UTC](https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754 "2023-05-02T18:19:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teraflops](https://dietpi.com/forum/user_avatar/dietpi.com/teraflops/32/3692_2.png) [@Teraflops](https://dietpi.com/forum/u/Teraflops)\
**Post date:** [2 May 2023 18:19 UTC](https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754/1 "2023-05-02T18:19:06Z")

</div>

Got notified in console that newer version exist so I tried to update DietPi on my Raspberry Pi 4 SBC but it failed.

Seems it tried to execute command: “apt-get -y -eany update” but it failed to do so.

 ![image](https://dietpi.com/forum/uploads/default/original/2X/d/d77c26152efc9f4f73d1ba1d7a2d60f7083d8475.png)

I created bug report file - reference: 8e8446a7-feba-4fdb-9672-1145f73a2074

This is what console outputted when I halted update procedure:

#### Details:

- Date | Tue May 2 20:05:17 CEST 2023
- Bug report | 8e8446a7-feba-4fdb-9672-1145f73a2074
- DietPi version | v8.16.2 (MichaIng/beta)
- Image creator |
- Pre-image |
- Hardware | RPi 4 Model B (aarch64) (ID=4)
- Kernel version | `Linux KAR01SRV01 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux`
- Distro | bullseye (ID=6,RASPBIAN=0)
- Command | `apt-get -y -eany update`
- Exit code | 100
- Software title | DietPi-Update

#### Steps to reproduce:

1. …
2. …

#### Expected behaviour:

- …

#### Actual behaviour:

- …

#### Extra details:

- …

#### Additional logs:

```auto
Ign:1 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease
Get:3 https://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:4 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 Release
Ign:5 http://ftp.nl.debian.org/debian stretch InRelease
Get:6 https://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Err:7 http://ftp.nl.debian.org/debian stretch Release
  404 Not Found [IP: 130.89.149.21 80]
Get:8 https://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:9 https://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
Hit:10 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
Get:12 https://deb.debian.org/debian-security bullseye-security/main arm64 Packages [233 kB]
Get:13 https://archive.raspberrypi.org/debian bullseye/main arm64 Packages [308 kB]
Reading package lists...
E: The repository 'http://ftp.nl.debian.org/debian stretch Release' no longer has a Release file.

```

---

<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:** [2 May 2023 18:37 UTC](https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754/2 "2023-05-02T18:37:15Z")

</div>

Have a look at following [Err:8 http://ftp.nl.debian.org/debian stretch Release │ │ 404 Not Found [IP: 130.89.149.21 80] - #10 by Joulinar](https://dietpi.com/forum/t/err-8-http-ftp-nl-debian-org-debian-stretch-release-404-not-found-ip-130-89-149-21-80/16748/10)

---

<div class="post-metadata">

**Author:** ![Teraflops](https://dietpi.com/forum/user_avatar/dietpi.com/teraflops/32/3692_2.png) [@Teraflops](https://dietpi.com/forum/u/Teraflops)\
**Post date:** [2 May 2023 18:46 UTC](https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754/3 "2023-05-02T18:46:20Z")

</div>

Thanks.

Seems whoever uses UniFi Easy Install Script from Glenn R. from Ubiquiti could expect this issue to happen.

I fixed it simply by removing “glennr-install-script.list” from “/etc/apt/sources.list.d”

Thanks @Joulinar for pointing me in the right direction. Cheers!

---

<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:** [2 May 2023 19:03 UTC](https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754/4 "2023-05-02T19:03:40Z")

</div>

Wasn’t it an option to adjust source list to Bullseye?

---

<div class="post-metadata">

**Author:** ![Teraflops](https://dietpi.com/forum/user_avatar/dietpi.com/teraflops/32/3692_2.png) [@Teraflops](https://dietpi.com/forum/u/Teraflops)\
**Post date:** [2 May 2023 19:32 UTC](https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754/5 "2023-05-02T19:32:12Z")

</div>

As far as I know, UniFi Network Application depends on specific mongodb release and there is always something specific that needs to be done so it could work properly. This “glennr-install-script.list” was added by the script itself (not sure why) and as I have no intention to update UNA to the newer version in foreseeable future because of it lately being more broken than fixed with each new release, I decided to remove it from the system.

---

<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:** [2 May 2023 20:34 UTC](https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754/6 "2023-05-02T20:34:13Z")

</div>

to bad that UniFi is not providing a software that is able to run on current ARM based system.

---

<div class="post-metadata">

**Author:** ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)\
**Post date:** [3 May 2023 07:32 UTC](https://dietpi.com/forum/t/dietpi-update-failed-raspberry-pi-4/16754/7 "2023-05-03T07:32:08Z")

</div>

I have switched to the docker version of Unifi to avoid all this dependencies nonsense. Combine it with portainer from the dietpi package list to get some peace of mind.
