Error running dietpi-update

Required Information

  • DietPi version |
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=15
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
    G_LIVE_PATCH_STATUS[0]=‘not applicable’

  • Distro version | bullseye 0

  • Kernel version | Linux DietPi 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux

  • Architecture | arm64

  • SBC model | RPi 4 Model B (aarch64)

  • Bug report ID | 0779eb5d-3c16-46b9-9494-3262e52acd26

Steps to reproduce

Running dietpi-update recently Im getting this each time.

Actual behaviour

RPi 4 Model B (aarch64) | IP: 192.168.1.125 | Use up/down buttons to scroll text
│ Hit:4 https://deb.debian.org/debian-security bullseye-security InRelease
│ Hit:5 https://deb.debian.org/debian bullseye-backports InRelease
│ Get:6 http://ppa.launchpad.net/libretro/stable/ubuntu lunar InRelease [18.1
│ kB]
│ Hit:7 https://apt.sonarr.tv/debian buster InRelease
│ Hit:8 https://archive.raspberrypi.org/debian bullseye InRelease
│ Err:6 http://ppa.launchpad.net/libretro/stable/ubuntu lunar InRelease
│   The following signatures couldn't be verified because the public key is
│ not available: NO_PUBKEY 18DAAE7FECA3745F
│ Reading package lists...
│ W: GPG error: http://ppa.launchpad.net/libretro/stable/ubuntu lunar
│ InRelease: The following signatures couldn't be verified because the public
│ key is not available: NO_PUBKEY 18DAAE7FECA3745F
│ E: The repository 'http://ppa.launchpad.net/libretro/stable/ubuntu lunar
│ InRelease' is not signed.

looks like you manually added an Ubuntu repository to your system. Something not recommended as DietPi is based on Debian. You would need to check if the repository is still needed or if it can be removed.

Ah yep. I think this was recently when I was trying to get game emulation working on Kodi which was unsuccessful.

How would I go about removing it as a repo?

It depends.
Can you have a look into /etc/apt/sources.list.d if there is a file inside for the Ubuntu repo.

sudo ls -la /etc/apt/sources.list.d

If yes, just remove it sudo rm /etc/apt/sources.list.d/name.list (replace name.list with the acutal file name)
If there is no file, do:

sudo nano /etc/apt/sources.list

and delete the entry there.

another option is to create an overview of source files as follow

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

Just pick the one in question and remove it.

1 Like

Thanks all - thats resolved it. Much appreciated!