Raspberry-Pi

Kodi 沒有在 Raspbian Buster Lite 上啟動,沒有 GUI 錯誤

  • August 4, 2019

我一直在嘗試在我的 Raspbian Buster 上啟動 Kodi。

我重新安裝了 Raspbian Buster Lite,然後安裝了 Kodi。

sudo apt install kodi

由於我不需要 GUI,我想我只需手動安裝一些依賴項即可將 Kodi 作為唯一需要 UI 的應用程序執行。

我按照這裡的說明https://www.raspberrypi.org/forums/viewtopic.php?t=192499對 kodi.service 的位置進行了小幅調整,將其放入 /etc 而不是 /lib 中,正如他們在此處提到的那樣.

嘗試了以下所有方法來啟動 Kodi。

kodi
kodi-standalone
sudo systemctl start kodi

它們都因相同的錯誤而失敗。正如人們所說的不需要xserver,我無論如何都嘗試安裝xserver,但是安裝xserver時它仍然給我同樣的錯誤。

有沒有專家知道如何解決或指出我正確的方向?

在我以前的 Raspbian Stretch 上一切正常,但不記得兩年前我是否做了什麼特別的事情來完成這項工作。

$ cat kodi_crashlog-20190715_212803.log
############## Kodi CRASH LOG ###############

################ SYSTEM INFO ################
Date: Mon 15 Jul 21:28:03 BST 2019
Kodi Options:
Arch: armv7l
Kernel: Linux 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019
Release: Raspbian GNU/Linux 10 (buster)
############## END SYSTEM INFO ##############

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

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

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


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

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

由於 Buster 上的 Kodi 仍然是舊版本,然後在 Stretch 上可用,我選擇通過重新安裝我的 Raspberry Pi 來回到以前的版本。

我在這裡寫了一份詳盡的指南。

https://marcofranssen.nl/install-fresh-raspbian-image-on-your-raspberry-pi-part-1/

在第二部分中,我將向您展示如何安全地設置 Kodi 作為單獨的使用者執行並自動啟動。還向您展示如何自動化一些配置步驟以及如何設置 nfs 共享掛載​​。

https://marcofranssen.nl/install-fresh-raspbian-image-on-your-raspberry-pi-part-2/

如果您不關心執行舊版本的 Kodi,上面來自@bobfbaby 的答案可能仍然是你們中的一些人的解決方案。

對於我自己,我會等到 Buster 也升級到 Kodi 18 版本。

我在執行無頭 Raspbian Buster 的 Raspberry Pi 4 上遇到了同樣的問題。

我已經通過安裝 X11 修復了它。

sudo apt install xorg dbus-x11

然後執行 Kodi

sudo /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7

如果它更像是一個黑客而不是一個解決方案,但它對我有用。

引用自:https://unix.stackexchange.com/questions/530479