Ubuntu 22.04 server minimal – flatpak install help



Hello Folks

I’ve set up a test system to help me work out if I can move away from PPA to the newer Flatpak install.

The aim is to have a system that boots into Kodi. I have no need of a graphical desktop but I do use the the OS a lot.

Output of lscpu is here this

Installation process so far is to install Ubuntu Server Minimal 22.04 from live usb, then post install

Code:

sudo apt install -y nano whiptail
sudo dpkg-reconfigure tzdata
sudo apt update && sudo apt upgrade -y

I have a GeForce GT 710 so install nvidia drivers

Code:

sudo apt install -y nvidia-driver-470
sudo shutdown -r now

Install flatpak

Code:

sudo apt install flatpak -y
sudo shutdown -r now
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub tv.kodi.Kodi

then try and run kodi from command line via SSH

Code:

flatpak run tv.kodi.Kodi

which generates the error

Code:

'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:63 do_unlock()
ERROR: Unable to create GUI. Exiting

I’ve then created the advancedsettings.xml file in the flatpak userdata location to trigger debug logging which gave this log

The errors start with the freedesktop section and then more errors for input events. Googling freedesktop seems to suggest these are safe to ignore and then I’m stumped. Would appreciate a few pointers

Do I need to add my system to any groups or use a different command to start kodi from flatpak?