将 raspbian 升级到 buster 版本后,Raspberry PI / Kodi 无法启动

将 raspbian 升级到 buster 版本后,Raspberry PI / Kodi 无法启动

Raspberry pi 2 b,raspbian buster - 稳定版本

我在 raspberry PI 上启动 Kodi 时遇到问题。在将 raspbian 从 stretch 升级到 buster 之前,kodi 运行良好。升级到 buster 后,kodi 停止工作。

以下是来自 kodi 的崩溃日志

############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
 Date: pon, 1 lip 2019, 16:45:45 CEST
 Kodi Options: 
 Arch: armv7l
 Kernel: Linux 4.19.56-v7+ #1242 SMP Wed Jun 26 17:31:47 BST 2019
 Release: Raspbian GNU/Linux 10 (buster)
############## END SYSTEM INFO ##############

############### STACK TRACE #################
############# END STACK TRACE ###############

################# LOG FILE ##################

16:45:15.273 T:1830922080  NOTICE: special://profile/ is mapped to: special://masterprofile/
16:45:15.273 T:1830922080  NOTICE: -----------------------------------------------------------------------
16:45:15.274 T:1830922080  NOTICE: Starting Kodi from Debian (17.6 Debian package version: 2:17.6+dfsg1-4+b1). Platform: Linux ARM 32-bit
16:45:15.274 T:1830922080  NOTICE: Using Release Kodi from Debian x32 build
16:45:15.274 T:1830922080  NOTICE: Kodi from Debian compiled from 2:17.6+dfsg1-4+b1 by GCC 8.2.0 for Linux ARM 32-bit version 4.18.20 (266772)
16:45:15.274 T:1830922080  NOTICE: Running on Raspbian GNU/Linux 10 (buster), kernel: Linux ARM 32-bit version 4.19.56-v7+
16:45:15.274 T:1830922080  NOTICE: FFmpeg version/source: 4.1.3-1+rpt1
16:45:15.274 T:1830922080  NOTICE: Host CPU: ARMv7 Processor rev 5 (v7l), 4 cores available
16:45:15.274 T:1830922080  NOTICE: ARM Features: Neon disabled
16:45:15.274 T:1830922080  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
16:45:15.274 T:1830922080  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi
16:45:15.274 T:1830922080  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/arm-linux-gnueabihf/kodi/addons
16:45:15.274 T:1830922080  NOTICE: special://masterprofile/ is mapped to: /home/pi/.kodi/userdata
16:45:15.275 T:1830922080  NOTICE: special://envhome/ is mapped to: /home/pi
16:45:15.275 T:1830922080  NOTICE: special://home/ is mapped to: /home/pi/.kodi
16:45:15.275 T:1830922080  NOTICE: special://temp/ is mapped to: /home/pi/.kodi/temp
16:45:15.275 T:1830922080  NOTICE: special://logpath/ is mapped to: /home/pi/.kodi/temp
16:45:15.275 T:1830922080  NOTICE: The executable running is: /usr/lib/arm-linux-gnueabihf/kodi/kodi.bin
16:45:15.275 T:1830922080  NOTICE: Local hostname: raspberrypi
16:45:15.275 T:1830922080  NOTICE: Log File is located: /home/pi/.kodi/temp//kodi.log
16:45:15.275 T:1830922080  NOTICE: -----------------------------------------------------------------------
16:45:15.287 T:1830922080   ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files
16:45:15.453 T:1830922080  NOTICE: load settings...
16:45:15.528 T:1830922080   ERROR: PulseAudio: Failed to connect context
16:45:15.528 T:1830922080  NOTICE: PulseAudio might not be running. Context was not created.
16:45:15.590 T:1830922080  NOTICE: Found 1 Lists of Devices
16:45:15.590 T:1830922080  NOTICE: Enumerated ALSA devices:
16:45:15.590 T:1830922080  NOTICE:     Device 1
16:45:15.591 T:1830922080  NOTICE:         m_deviceName      : @
16:45:15.591 T:1830922080  NOTICE:         m_displayName     : Default (bcm2835 ALSA bcm2835 ALSA)
16:45:15.591 T:1830922080  NOTICE:         m_displayNameExtra:
16:45:15.591 T:1830922080  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
16:45:15.591 T:1830922080  NOTICE:         m_channels        : FL,FR
16:45:15.591 T:1830922080  NOTICE:         m_sampleRates     : 8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000
16:45:15.591 T:1830922080  NOTICE:         m_dataFormats     : AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_U8
16:45:15.591 T:1830922080  NOTICE:         m_streamTypes     : No passthrough capabilities
16:45:15.609 T:1830922080  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
16:45:15.609 T:1830922080  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
16:45:15.609 T:1830922080  NOTICE: Default Video Player: VideoPlayer
16:45:15.609 T:1830922080  NOTICE: Default Audio Player: paplayer
16:45:15.609 T:1830922080  NOTICE: Disabled debug logging due to GUI setting. Level 0.
16:45:15.609 T:1830922080  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
16:45:15.610 T:1830922080  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
16:45:15.611 T:1830922080  NOTICE: Loaded playercorefactory configuration
16:45:15.611 T:1830922080  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
16:45:15.611 T:1830922080  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
16:45:15.642 T:1830922080  NOTICE: Running database version Addons27
16:45:15.747 T:1830922080  NOTICE: ADDONS: Using repository repository.xbmc.org
16:45:15.837 T:1830922080   ERROR: X11 Error: No Display found
16:45:15.837 T:1830922080   FATAL: CApplication::Create: Unable to init windowing system


############### END LOG FILE ################

############ END Kodi CRASH LOG #############

尝试在 Google 上寻找解决方案,但都有旧的解决方案,对我而言都不起作用。

这就是问题

16:45:15.837 T:1830922080   ERROR: X11 Error: No Display found
16:45:15.837 T:1830922080   FATAL: CApplication::Create: Unable to init windowing system

有人有这样的问题吗?

答案1

请注意,有两个版本的 Kodi 可供选择:apt-cache showpkg kodi | tail -3

2:18.2-1~拉伸 - xbmc-standalone (= ) xbmc-data (= ) xbmc (= ) kodi-standalone (= ) kodi-skin-estuary (= ) kodi-data (= )

2:17.6+dfsg1-4+b1-kodi-api-pvr(= 5.2.1)kodi-api-guilib(= 5.11.0)

dfsg1 版本是 debian 的“通用”版本;它们未针对 Raspberry Pi 进行优化(无硬件加速)并且需要 xorg 。Raspberry Pi 的更好选择是 ~stretch 或 ~jessie 版本;它们托管在http://archive.raspberrypi.org,因此你需要在 /etc/apt/sources.list.d 目录中有一个文件,例如 kodi.list,其中包含以下行:debhttp://archive.raspberrypi.org/debian/拉伸主用户界面

运行 apt-get update 来更新您的软件包列表。如果您已升级到 Raspbian Buster,您将遇到依赖冲突,因为 kodi-bin 2:18.2-1~stretch 需要 libcurl3,而 buster 仅提供 libcurl4。

您需要将 libcurl4 降级为 libcurl3,然后才能安装 kodi 2:18.2-1~stretch(在 Raspbian Buster 上可以正常工作)。最简单的方法是使用 aptitude install kodi=2:18.2-1~stretch,因为这将为您提供解决冲突的方案。您必须暂时将“buster”引用更改为“stretch”才能进行此降级。

答案2

我在 buster 上也遇到过类似的问题。通过安装 xorg 解决了:

sudo apt install xorg

并以这样的方式启动 kodi:

sudo xinit kodi-standalone

相关内容