Kodi upgrade 19.4 to 21

Hi,

I ama running dietpi v9.11 on raspberry pi 3. I have already installed kodi 19.4. Is there a way to upgrade to kodi 20 or 21 ? Can i install it manually downloading the zip.file ?

This is a package from Debain Bullseye repository. Therefore, I assume you’re are on Bullseye.

This should be unrelated to Kodi version because Kodi is instelled from Debian repository Debian -- Package Search Results -- kodi

Upgrade your system to Debian Bookworm Debian Bookworm has been released – DietPi Blog

Kodi 21 is part of Debian Trixie, the upcoming Debian version which is currently in testing (unrelated to DietPi)

We already offer Trixie images as direct download for testing purposes Index of /downloads/images

I do the upgrade to ‘debian Bookworm’ with this command :

bash <(curl -sSf 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.meta/dietpi-bookworm-upgrade').

Now, i have this : DietPi v9.11.2 : 469 APT updates available
and i can’t do the upgrade !!

apt upgrade     : Run now to apply 469 available APT package upgrades

 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:~# apt upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Calcul de la mise à jour... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  bind9-host bind9-libs cpp-10 g++-10 gcc-10 gcc-11-base libaom0
  libasan6 libavcodec58 libavdevice58 libavfilter7 libavformat58
  libavresample4 libavutil56 libbpf0 libcbor0 libcodec2-0.9 libcups2
  libdav1d4 libdns-export1110 libdrm-nouveau2 libffi7
  libfftw3-double3 libflac8 libfstrm0 libgcc-10-dev libicu67
  libirs-export161 libisc-export1105 libisccfg-export163 libjemalloc2
  libldap-2.4-2 libllvm11 liblmdb0 libmaxminddb0 libmpdec3
  libncurses6 libperl5.32 libpostproc55 libprocps8 libprotobuf-c1
  libpython3.9 libpython3.9-dev libpython3.9-minimal
  libpython3.9-stdlib libsrt1.4-gnutls libssl1.1 libstdc++-10-dev
  libswresample3 libswscale5 libtiff5 libuv1 libvpx6 libwavpack1
  libwebp6 libwrap0 libx264-160 libx265-192 libxdamage1 libxinerama1
  perl-modules-5.32 python-pip-whl python3-ldb python3-talloc
  python3.9 python3.9-dev python3.9-minimal ucf
Veuillez utiliser « apt autoremove » pour les supprimer.
^C
root@DietPi:~# apt autoremove
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
0 mis à jour, 0 nouvellement installés, 0 à enlever et 469 non mis à jour.
root@DietPi:~#
DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for available DietPi update                            

[  OK  ] DietPi-Update | Checking IPv4 network connectivity
[  OK  ] DietPi-Update | Checking DNS resolver
[ INFO ] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version                  
[  OK  ] DietPi-Update | Got valid latest version: 9.11.2
[  OK  ] DietPi-Update | No update required, your DietPi installation is already up to date:
[ INFO ] DietPi-Update | Current version : v9.11.2
[ INFO ] DietPi-Update | Latest version  : v9.11.2
[ INFO ] DietPi-Update | Checking for new available live patches
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 https://deb.debian.org/debian bookworm InRelease
Hit:2 https://deb.debian.org/debian bookworm-updates InRelease          
Hit:3 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://deb.debian.org/debian bookworm-backports InRelease        
Hit:5 https://archive.raspberrypi.com/debian bookworm InRelease         
Hit:6 https://dietpi.com/apt bookworm InRelease                         
Hit:7 https://dietpi.com/apt all InRelease                              
Reading package lists...                                                
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | Storing number of available APT upgrades to file: /run/dietpi/.apt_updates

the script should do everything without a user interaction. Do you have the log from executing the script?

How can i have the log ?

it should have been displayed while running the script. Was there an error? Does the script abort or fail?

Ah…so, should i restart the script ? Without the backup

I don’t know what you have done before and where the script stopped. You can try to repeat or restore a backup if available

The script doesn’t abort and doesn’t fail too. I restart the script and tell you in 2 hours.

If the script succeed, you should get a message at the end telling you are on Bookworm and request to reboot. Once rebooted, login as user root to allow some future steps to complete

I restart the script one more time and it stops here : i don’t know what to do

root@DietPi:~# bash <(curl -sSf 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.meta/dietpi-bookworm-upgrade')
[ INFO ] dietpi-bookworm-upgrade | Upgrading APT packages to latest versions provided by Debian Bullseye
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : motioneye
[  OK  ] DietPi-Services | stop : avahi-daemon
[ INFO ] dietpi-bookworm-upgrade | APT update, please wait...
Hit:1 https://archive.raspberrypi.com/debian bookworm InRelease
Hit:2 https://deb.debian.org/debian bookworm InRelease
Hit:3 https://deb.debian.org/debian bookworm-updates InRelease
Hit:4 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:5 https://deb.debian.org/debian bookworm-backports InRelease
Hit:6 https://dietpi.com/apt bookworm InRelease
Hit:7 https://dietpi.com/apt all InRelease
Reading package lists...
[  OK  ] dietpi-bookworm-upgrade | APT update
[ INFO ] dietpi-bookworm-upgrade | APT dist-upgrade, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  bind9-host bind9-libs cpp-10 g++-10 gcc-10 gcc-11-base libaom0 libasan6
  libavcodec58 libavdevice58 libavfilter7 libavformat58 libavresample4
  libavutil56 libbpf0 libcbor0 libcodec2-0.9 libcups2 libdav1d4
  libdns-export1110 libdrm-nouveau2 libffi7 libfftw3-double3 libflac8
  libfstrm0 libfuse2 libgcc-10-dev libicu67 libirs-export161 libisc-export1105
  libisccfg-export163 libjemalloc2 libldap-2.4-2 libllvm11 liblmdb0
  libmaxminddb0 libmpdec3 libncurses6 libntfs-3g883 libperl5.32 libpostproc55
  libprocps8 libprotobuf-c1 libpython3.9 libpython3.9-dev libpython3.9-minimal
  libpython3.9-stdlib libsepol1 libsrt1.4-gnutls libssl1.1 libstdc++-10-dev
  libswresample3 libswscale5 libtiff5 libuv1 libvpx6 libwavpack1 libwebp6
  libwrap0 libx264-160 libx265-192 libxdamage1 libxinerama1 perl-modules-5.32
  python-pip-whl python3-ldb python3-talloc python3.9 python3.9-dev
  python3.9-minimal ucf
Use 'apt autoremove' to remove them

Simply wait, it can take a while depending on your SBC.

Everything seems ok

No, one problem !

DietPi-Update
─────────────────────────────────────────────────────
 Phase: Checking for available DietPi update                                                                            

[  OK  ] DietPi-Update | Checking IPv4 network connectivity
[  OK  ] DietPi-Update | Checking DNS resolver
[ INFO ] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version                                                                                                                  
[  OK  ] DietPi-Update | Got valid latest version: 9.11.2
[  OK  ] DietPi-Update | No update required, your DietPi installation is already up to date:
[ INFO ] DietPi-Update | Current version : v9.11.2
[ INFO ] DietPi-Update | Latest version  : v9.11.2
[ INFO ] DietPi-Update | Checking for new available live patches
[ INFO ] DietPi-Update | APT update, please wait...
Hit:1 https://archive.raspberrypi.com/debian bookworm InRelease
Hit:2 https://dietpi.com/apt bookworm InRelease                                                                         
Hit:3 https://dietpi.com/apt all InRelease                                                                              
Hit:4 https://deb.debian.org/debian bookworm InRelease                                                                  
Hit:5 https://deb.debian.org/debian bookworm-updates InRelease                                                          
Hit:6 https://deb.debian.org/debian-security bookworm-security InRelease                                                
Hit:7 https://deb.debian.org/debian bookworm-backports InRelease                                                        
Reading package lists...                                                                                                
[  OK  ] DietPi-Update | APT update
[ INFO ] DietPi-Update | Storing number of available APT upgrades to file: /run/dietpi/.apt_updates
root@DietPi:~# apt upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Calcul de la mise à jour... Fait
Les paquets suivants ont été conservés :
  kodi-inputstream-rtmp
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
1 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Paramétrage de kodi (3:20.5-4~bookworm) ...
dpkg: erreur de traitement du paquet kodi (--configure) :
 le sous-processus paquet kodi script post-installation installé a renvoyé un état de sortie d'erreur 1
Des erreurs ont été rencontrées pendant l'exécution :
 kodi
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@DietPi:~#
# apt-cache policy kodi-inputstream-rtmp
kodi-inputstream-rtmp:
  Installé : 19.0.1-3~bullseye
  Candidat : 20.3.0+ds1-1
 Table de version :
     20.3.0+ds1-1 500
        500 https://deb.debian.org/debian bookworm/main armhf Packages
     20.3.0-4~bookworm 500
        500 https://archive.raspberrypi.com/debian bookworm/main armhf Packages
 *** 19.0.1-3~bullseye 100
        100 /var/lib/dpkg/status

Is there a problem with “installed : 19.0.1-3~bullseye” ?

can you try following

apt install --reinstall kodi kodi-inputstream-rtmp

Ok. I do it

I am not at home. Dropbear doesn’t let me to connect the ssh server !! Is it possible to have remote connection with dropbear ?

for remote access, you need a VPN or any other remote access tools.

i have an ssh server at home with openssh. can i use it to connect my laptop to my raspberry ?

if you are able to reach this server from extern, it should be possible.