How do I remove and add again properly a repo?

Required Information

  • DietPi version | 10.1.2
  • Distro version | trixie
  • Kernel version | Linux DietPi 6.12.73+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.73-1 (2026-02-17) x86_64 GNU/Linux
  • Architecture | amd64
  • SBC model | Native PC (x86_64)

Hey !

I had an issue related to repo signature keys for sury repo that I couldn’t fix easily, so I copied and pasted some commands from the internet and screwed up my whole installation so bad that I had to restore a backup.

Now, I still have error messages when I apt update, and I don’t know what to do (I know, I’m dumb).

https://packages.sury.org/php bookworm InRelease                                                                                        
  Sub-process /usr/bin/sqv returned an error code (1), error message is: Error: Failed to parse keyring "/usr/share/keyrings/sury-keyring.gpg"  Caused by:     0: Reading "/usr/share/keyrings/sury-keyring.gpg": No such file or directory (os error 2)     1: No such file or directory (os error 2)

I get the keyring is not present. But I don’t think it’s ok to have it in usr/share. So my question is, how do i fix this properly? Is there a neat way to add sury repo to dietpi?

thanks!

Why do you use PHP from sury.org?? Any reason for this? At least we removed sury.org repository from our side years ago.

I needed php8.4 and will need 8.5

why not updating to Debian Trixie?

I’m on trixie. But how can I install php8.5 on it?

do you really require PHP8.5?

Well, firefly-iii does. But I guess I can workaround with docker.

Ok, I removed sury’s repo. The double interrogation mark made clear it was an awful tinkering :smile:

I didn’t mean to say that PHP 8.5 cannot be used. I was just surprised, as PHP 8.5 was only released three months ago. For most applications, the standard Debian PHP version is sufficient. It’s rather unusual for an app to require the latest version right away. If PHP 8.5 is absolutely necessary, you do indeed have to use a third-party repository such as sury.org.