Raspberry pi 2 b,raspbian buster - 穩定版本
我在樹莓派上啟動 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 #############
嘗試在谷歌上找到解決方案,但有舊的解決方案,沒有一個對我有用。
這就是問題
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 |尾-3
2:18.2-1~stretch - 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
我在巴斯特上遇到了非常類似的問題。透過安裝xorg解決:
sudo apt install xorg
並以此方式啟動kodi:
sudo xinit kodi-standalone