Software Error reading lists

Hello good people, listen I’m about to pull my hair out lol.
I did a clean install of Dietpi (Bookworm)
I had bullseye before but gave issues: Tailsscale stopped working, remoting though lan stopped working, failed kernel etc. It went to hell all at once. Now with Bookworm I can’t get any software to install.
(apt purge) to clean out anything left behind but still no Kodi, Tailsscale, arr’s etc.


One thing I do see is Tailsscale being included within the readout for what ever reason. I purged it and it said it was gone. Any help would be helpful. Thank y’all in advance!!

Somehow you removed our trouble shooting template. Any reason for this? It would be helpful if you can share some more details.

Required

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

One more request from my side. Pls try to avoid screen prints. The one you shared is soooo small and honestly, I have no idea what you trying to say with it. If possible, connect via SSH and copy all relevant information from SSH terminal directly. This is way better readable.

Why are you doing apt purge on a clean installation??? If this was a fresh install/image, nothing should be left behind.

As far as I can see, you tried a command dietpi-tailscale. Such a command never exists. What do you get this? You need to install Tailscale from our software catalogue. But actually there is an issue with the official Tailscale apt package and you would need to install iptables in addition. DietPi-Software | Tailscale: Startup fails because of missing iptables · Issue #6649 · MichaIng/DietPi · GitHub

This is I don’t understand. You need to install these software options on a fresh new system. There is nothing preinstalled.

At the end, be more specific on what you are doing.

I was trying to install these programs after the fresh install of the os. I was doing apt purge because I seen somewhere that if software failed at any point when try to install anything else it would try to finish a failed install and could keep other software from installing due to the errors.

All I’m trying to do is install software I was using before on Dietpi. The last installation I had before I did a fresh install of the OS.

How do you try to install software? Any install log? Any error messages? You still missed to share detailed system information.

We are not able to assist as long as you don’t share more information.

─────────────────────────────────────────────────────
 DietPi v8.23.3 : 10:23 - Mon 10/30/23GNU/Linux system are free software;
 ─────────────────────────────────────────────────────ribed in the
 - Device model : RPi 4 Model B (aarch64)right.
 - CPU temp : 34 °C / 93 °F : Cool runnings
 - LAN IP : 10.0.0.145 (eth0)BSOLUTELY NO WARRANTY, to the extent
 - MOTD : DietPi v8.23 is here. Check out all changes:
          https://dietpi.com/docs/releases/v8_23/
 ─────────────────────────────────────────────────────

 DietPi Team     : https://github.com/MichaIng/DietPi#the-dietpi-project-team
 Patreon Legends : Chris Gelatt, ADSB.im
 Website         : https://dietpi.com/ | https://twitter.com/DietPi_
 Contribute      : https://dietpi.com/contribute.html
 Web Hosting by  : https://myvirtualserver.com

 dietpi-launcher : All the DietPi programs in one place
 dietpi-config   : Feature rich configuration tool for your device
 dietpi-software : Select optimised software for installation
 htop            : Resource monitor
 cpu             : Shows CPU information and stats

root@DietPi:~# dietpi-software
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database
RPi 4 Model B (aarch64) | IP: 10.0.0.145 | Use spacebar to toggle selection               ┌──────────────────────────────────┤ DietPi-Software ├───────────────────────────────────┐│ Please use the spacebar to select the software you wish to install. Then press         ││ ENTER/RETURN or select <Confirm> to confirm.                                           ││  - Press ESC or select <Cancel> to discard changes made.                               ││  - Software and usage details: https://dietpi.com/docs/software/                       ││                                                                                        ││  [*] 31  Kodi: The media centre for Linux                                              ││                                                                                        ││                        <Confirm>                       <Cancel>                        ││                                                                                        │└────────────────────────────────────────────────────────────────────────────────────────┘RPi 4 Model B (aarch64) | IP: 10.0.0.145                                                  ┌──────────────────────────────────┤ DietPi-Software ├───────────────────────────────────┐│                                                                                        ││ DietPi is now ready to apply your software choices:                                    ││                                                                                        ││ The following software will be installed:                                              ││  - Kodi: The media centre for Linux                                                    ││                                                                                        ││ NB: Software services will be temporarily controlled (stopped) by DietPi during this   ││ process. Please inform connected users, before continuing. SSH and VNC are not         ││ affected.                                                                              ││                                                                                        ││ Software details, usernames, passwords etc:                                            ││  - https://dietpi.com/docs/software/                                                   ││                                                                                        ││ Would you like to begin?                                                               ││                                                                                        ││                         <Ok>                             <Cancel>                      ││                                                                                        │└────────────────────────────────────────────────────────────────────────────────────────┘[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/bc800ccb-cda6-4d73-a780-aaa189fd2467/dietpi_userdata

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for conflicts and missing inputs


 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for prerequisite software

[ INFO ] DietPi-Software | ALSA will be installed
[ INFO ] DietPi-Software | Avahi-Daemon will be installed
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : smbd
[  OK  ] DietPi-Services | stop : nmbd
[  OK  ] DietPi-Services | stop : avahi-daemon
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 https://deb.debian.org/debian bookworm InRelease
Hit:2 https://deb.debian.org/debian bookworm-updates InRelease
Get:3 https://pkgs.tailscale.com/stable/debian bookworm InRelease
Hit:4 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:5 https://download.mono-project.com/repo/debian buster InRelease
Hit:6 https://deb.debian.org/debian bookworm-backports InRelease
Hit:7 https://archive.raspberrypi.org/debian bookworm InRelease
Fetched 6560 B in 3s (2313 B/s)
Reading package lists...
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/dietpi-tailscale.list:1 and /etc/apt/sources.list.d/tailscale.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/dietpi-tailscale.list:1 and /etc/apt/sources.list.d/tailscale.list:2
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/dietpi-tailscale.list:1 and /etc/apt/sources.list.d/tailscale.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/dietpi-tailscale.list:1 and /etc/apt/sources.list.d/tailscale.list:2
[  OK  ] DietPi-Software | APT update

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing ALSA: Advanced Linux Sound Architecture

[ SUB1 ] DietPi-Set_hardware > soundcard (rpi-bcm2835-auto)
[ INFO ] DietPi-Set_hardware | Checking for required APT packages: alsa-utils
[ INFO ] DietPi-Set_hardware | Resetting all sound card settings...
[  OK  ] DietPi-Set_hardware | rm /etc/asound.conf
[  OK  ] DietPi-Set_hardware | rm /var/lib/alsa/asound.state
/usr/share/alsa/init/bcm2835:20: control element not found
Found hardware: "vc4-hdmi" "" "" "" ""
Hardware is initialized using a generic method
Found hardware: "vc4-hdmi" "" "" "" ""
Hardware is initialized using a generic method
[  OK  ] DietPi-Set_hardware | sed -Ei -e /^[[:blank:]]*(dtoverlay=(allo-|applepi-dac|dionaudio-|googlevoicehat-soundcard|hifiberry-|i-sabre-q2m|iqaudio-|justboom-|rpi-dac)|dtparam=i2s)/d -e s/^[[:blank:]]*(hdmi_drive(:[01])?=.*$)/#\1/ /boot/config.txt
[  OK  ] DietPi-Set_hardware | Setting in /boot/config.txt adjusted: dtparam=audio=off
[  OK  ] DietPi-Set_hardware | eval echo 'blacklist snd_bcm2835' > /etc/modprobe.d/dietpi-disable_rpi_audio.conf
[  OK  ] DietPi-Set_hardware | sed -Ei /root=/s/[[:blank:]]*snd_bcm2835.enable_[^[:blank:]]*([[:blank:]]*$)?//g /boot/cmdline.txt
[  OK  ] DietPi-Set_hardware | sed -Ei /^[[:blank:]]*dtoverlay=vc4-kms-v3d(-pi4)?(,|$)/s/$/,noaudio/ /boot/config.txt
[ INFO ] DietPi-Set_hardware | Applying new sound card settings...
[  OK  ] DietPi-Set_hardware | Desired setting in /boot/dietpi.txt was already set: CONFIG_SOUNDCARD=rpi-bcm2835-auto
[  OK  ] DietPi-Set_hardware | rm /etc/modprobe.d/dietpi-disable_rpi_audio.conf
[  OK  ] DietPi-Set_hardware | Setting in /boot/config.txt adjusted: dtparam=audio=on
[  OK  ] DietPi-Set_hardware | sed -Ei /^[[:blank:]]*dtoverlay=vc4-kms-v3d(-pi4)?,/s/,noaudio(,|$)/\1/ /boot/config.txt
[  OK  ] DietPi-Set_hardware | alsactl -g store
[  OK  ] soundcard rpi-bcm2835-auto | Completed

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing Avahi-Daemon: Hostname broadcast via mDNS (Zeroconf, Bonjour)

[ INFO ] DietPi-Software | APT install avahi-daemon, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
avahi-daemon is already the newest version (0.8-10).
The following packages were automatically installed and are no longer required:
  kodi-bin libaacs0 libbluetooth3 libcec6 libegl-mesa0 libegl1 libevdev2
  libfstrcmp0 libgles2 libgudev-1.0-0 libimagequant0 libinput-bin libinput10
  libiso9660-11 liblirc-client0 liblzo2-2 libmariadb3 libmicrohttpd12
  libmtdev1 libnfs13 libp8-platform2 libpcre3 libpcrecpp0v5 libpipewire-0.3-0
  libplist3 libraqm0 libshairplay0 libsmbclient libspa-0.2-modules libtag1v5
  libtag1v5-vanilla libtinyxml2.6.2v5 libwacom-common libwacom9
  libwayland-client++1 libwayland-cursor++1 libwayland-egl++1 libwebpdemux2
  libwebrtc-audio-processing1 libxslt1.1 mariadb-common mysql-common pkexec
  policykit-1 python3-pil python3-simplejson
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/dietpi-tailscale.list:1 and /etc/apt/sources.list.d/tailscale.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/dietpi-tailscale.list:1 and /etc/apt/sources.list.d/tailscale.list:2
[  OK  ] DietPi-Software | APT install avahi-daemon
[  OK  ] DietPi-Software | systemctl stop avahi-daemon

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing Kodi: The media centre for Linux

[ SUB1 ] DietPi-Set_hardware > rpi-opengl (vc4-kms-v3d)
[  OK  ] DietPi-Set_hardware | sed -Ei /^[[:blank:]]*dtoverlay=vc4-f?kms-v3d/d /boot/config.txt
[  OK  ] DietPi-Set_hardware | Added setting dtoverlay=vc4-kms-v3d,cma-512 to end of file /boot/config.txt
[  OK  ] rpi-opengl vc4-kms-v3d | Completed
[ SUB1 ] DietPi-Set_hardware > rpi-codec (enable)
[  OK  ] rpi-codec enable | Completed
[  OK  ] DietPi-Software | mkdir -p /var/lib/dietpi/dietpi-software/installed/desktop/icons /usr/share/applications
[ INFO ] DietPi-Software | G_THREAD_START_0 | curl -sSfLo /var/lib/dietpi/dietpi-software/installed/desktop/icons/kodi-icon.png https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/desktop/icons/kodi-icon.png
[ INFO ] DietPi-Software | G_THREAD_START_1 | curl -sSfLo /usr/share/applications/kodi.desktop https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/desktop/apps/kodi.desktop
RPi 4 Model B (aarch64) | IP: 10.0.0.145                                                  ┌──────────────────────────────────┤ DietPi-Software ├───────────────────────────────────┐│ APT install kodi libgl1-mesa-dri                                                       ││  - Command: apt-get -y --allow-change-held-packages install kodi libgl1-mesa-dri       ││  - Exit code: 100                                                                      ││  - DietPi version: v8.23.3 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 3 | DISTRO: 7    ││  - Error log:                                                                          ││ Reading package lists...                                                               ││                                                                                        ││          Retry          : Re-run the last command that failed                          ││          DietPi-Config  : Edit network, APT/NTP mirror settings etc                    ││          Open subshell  : Open a subshell to investigate or solve the issue            ││          Send report    : Uploads bugreport containing system info to DietPi           ││                         ●─ Devs only ──────────────────────────────────────●           ││          Change command : Adjust and rerun the command                                 ││                                                                                        ││                                                                                        ││                        <Ok>                            <Exit>                          ││                                                                                        │└────────────────────────────────────────────────────────────────────────────────────────┘---------------------------------------------------------------------
- DietPi has encountered an error                                   -
- Please create a ticket: https://github.com/MichaIng/DietPi/issues -
- Copy and paste only the BLUE lines below into the ticket          -

Details:

  • Date | Mon Oct 30 10:25:05 GMT 2023
  • DietPi version | v8.23.3 (MichaIng/master)
  • Image creator |
  • Pre-image |
  • Hardware | RPi 4 Model B (aarch64) (ID=4)
  • Kernel version | Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • Distro | bookworm (ID=7,RASPBIAN=0)
  • Command | apt-get -y --allow-change-held-packages install kodi libgl1-mesa-dri
  • Exit code | 100
  • Software title | DietPi-Software

Steps to reproduce:

Expected behaviour:

Actual behaviour:

Extra details:

Additional logs:

Reading package lists...

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

root@DietPi:~#

Did you tried to install Tailscale manually? Anyway to remove that warning

rm /etc/apt/sources.list.d/tailscale.list
apt update

For Kodi, can you try following manually and share the output if it is failing still

apt-get -y --allow-change-held-packages install kodi libgl1-mesa-dri

I did eventually get tell scale up and running by first installing wireguard from the Dietpi software and then manually installing Tailsscale. It failed first manual attempt. But after installing wireguard from Dietpi it was successful. Probably because it had the iptables. Manually tried Kodi and everything went well until it tried installing Kodi itself after the repositories that are manually installed. I guess it tried pulling Kodi itself from the software of Dietpi.

tPi:~# apt-get -y --allow-change-held-packages install kodi libgl1-mesa-dri
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
kodi is already the newest version (3:20.2-2~bookworm).
libgl1-mesa-dri is already the newest version (23.2.1-0+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up kodi (3:20.2-2~bookworm) ...
dpkg: error processing package kodi (--configure):
 installed kodi package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 kodi
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/dietpi-tailscale.list:1 and /etc/apt/sources.list.d/tailscale.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/dietpi-tailscale.list:1 and /etc/apt/sources.list.d/tailscale.list:2
E: Sub-process /usr/bin/dpkg returned an error code (1)

You still need to remove the tailscale.list apt source configuration as stated above.

Yes, an issue within Tailscale package themselves and not DietPi as you see on the GitHub link I shared above.


For Kodi we already have a couple of reports on our forum pointing to a solution. Installation error of Kodi: post-installation script fails · Issue #6703 · MichaIng/DietPi · GitHub

│ APT install sqlite3                                                                    │
│  - Command: apt-get -y --allow-change-held-packages install sqlite3                    │
│  - Exit code: 100                                                                      │
│  - DietPi version: v8.23.3 (MichaIng/master) | HW_MODEL: 4 | HW_ARCH: 3 | DISTRO: 7    │
│  - Error log:                                                                          │
│ Reading package lists...                                                               │
│                                                                                        │
│          Retry          : Re-run the last command that failed                          │
│          DietPi-Config  : Edit network, APT/NTP mirror settings etc                    │
│          Open subshell  : Open a subshell to investigate or solve the issue            │
│          Send report    : Uploads bugreport containing system info to DietPi           │
│                         ●─ Devs only ──────────────────────────────────────●           │
│          Change command : Adjust and rerun the command                                 │
│                                                                                        │
│                                                                                        │
│                        <Ok>                            <Exit>                          │
│

This is Radarr and it’s not installing either because of SQ

what is the output of

apt update
apt install sqlite3

Yes I did this too lol same out come. I’m going to do it again to send you the exact output.

Get:3 https://pkgs.tailscale.com/stable/debian bookworm InRelease
Hit:4 https://download.mono-project.com/repo/debian buster InRelease
Hit:5 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:6 https://deb.debian.org/debian bookworm-backports InRelease
Hit:7 https://archive.raspberrypi.org/debian bookworm InRelease
Fetched 6560 B in 3s (2188 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@DietPi:~# apt install sqlite3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  kodi-bin libaacs0 libbluetooth3 libcec6 libegl-mesa0 libegl1 libevdev2 libfstrcmp0
  libgles2 libgudev-1.0-0 libimagequant0 libinput-bin libinput10 libiso9660-11
  liblirc-client0 liblzo2-2 libmariadb3 libmicrohttpd12 libmtdev1 libnfs13
  libp8-platform2 libpcre3 libpcrecpp0v5 libpipewire-0.3-0 libplist3 libraqm0
  libshairplay0 libsmbclient libspa-0.2-modules libtag1v5 libtag1v5-vanilla
  libtinyxml2.6.2v5 libwacom-common libwacom9 libwayland-client++1 libwayland-cursor++1
  libwayland-egl++1 libwebpdemux2 libwebrtc-audio-processing1 libxslt1.1 mariadb-common
  mysql-common pkexec policykit-1 python3-pil python3-simplejson
Use 'apt autoremove' to remove them.
Suggested packages:
  sqlite3-doc
The following NEW packages will be installed:
  sqlite3
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 341 kB of archives.
After this operation, 570 kB of additional disk space will be used.
Get:1 https://deb.debian.org/debian bookworm/main arm64 sqlite3 arm64 3.40.1-2 [341 kB]
Fetched 341 kB in 0s (944 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package sqlite3.
(Reading database ... 33342 files and directories currently installed.)
Preparing to unpack .../sqlite3_3.40.1-2_arm64.deb ...
Unpacking sqlite3 (3.40.1-2) ...
Setting up sqlite3 (3.40.1-2) ...
root@DietPi:~#

It worked this time. I’m wondering was it because I installed Python 3 from the Dietpi software list?

usually this should not have any impact.