Dietpi-update failing

Good evening all, having an issue trying to run dietpi update command, looks like something I added, but I’m not sure how to remove this. If someone could guide me on how to remove this problem element from breaking diet-pi update, that would be great.

its returning this:

#### Details:
- Date           | Fri Feb 23 21:18:23 AEDT 2024
- Bug report     | 8be04af1-a0fb-41f3-9859-1dbd89732f5a
- DietPi version | v9.0.2 (MichaIng/master)
- Image creator  |
- Pre-image      |
- Hardware       | RPi 4 Model B (aarch64) (ID=4)
- Kernel version | `Linux fcnas.ath.cx 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:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...
#### Expected behaviour:
<!-- What SHOULD happen? -->
- ...
#### Actual behaviour:
<!-- What IS happening? -->
- ...
#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...
#### Additional logs:

Hit:1 https://downloads.plex.tv/repo/deb public InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease
Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:5 https://deb.debian.org/debian bullseye-backports InRelease
Ign:6 http://ppa.launchpad.net/ondrej/php/ubuntu noble InRelease
Err:7 http://ppa.launchpad.net/ondrej/php/ubuntu noble Release
  404  Not Found [IP: 2620:2d:4000:1::81 80]
Hit:8 https://archive.raspberrypi.com/debian bullseye InRelease
Reading package lists...
E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu noble Release' does not have a Release file.

---------------------------------------------------------------------
[FAILED] DietPi-Update | Unable to continue, DietPi-Update will now terminate.

Thanks all

Hmm did you added this repository yourself? Because it’s a 3rd party php repository that doesn’t seems to exist anymore or is not reachable actually. Furthermore it’s pointing to Ubuntu while DietPi is based on Debian.

1 Like

Yes, looks like I added it following a guide recently, however, I’m not sure how to remove it.

May have been when trying to get Dietpi to use the latest version of php which I couldn’t get to work.

Is there a way I can remove this?

Thanks

Let’s check where the configuration file is located

for i in /etc/apt/sources.list{,.d/*.list}; do echo "$i:"; cat "$i"; done

Btw to get PHP 8 a destro upgrade to Bookworm would be needed. There you don’t need a 3rd party repository :grin:

But first let’s clean your repository.

Thanks for your response,

root@fcnas:~# for i in /etc/apt/sources.list{,.d/*.list}; do echo "$i:"; cat "$i"; done
/etc/apt/sources.list:
deb https://deb.debian.org/debian/ bullseye main contrib non-free
deb https://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
/etc/apt/sources.list.d/ondrej-ubuntu-php-noble.list:
deb http://ppa.launchpad.net/ondrej/php/ubuntu noble main
# deb-src http://ppa.launchpad.net/ondrej/php/ubuntu noble main
/etc/apt/sources.list.d/plexmediaserver.list:
deb [arch=arm64 signed-by=/usr/share/keyrings/plexmediaserver.gpg] https://downloads.plex.tv/repo/deb/ public main
/etc/apt/sources.list.d/raspi.list:
deb https://archive.raspberrypi.com/debian/ bullseye main

This one to be removed

Thanks for t hat - how does one remove this?

rm /etc/apt/sources.list.d/ondrej-ubuntu-php-noble.list
1 Like

Perfect - thanks for all your help tonight, working like a charm!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.