我的树莓派系统用的是基于Dibian10的Raspbian:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux
参考Kodi官方的,可以使用下边的shell脚本进行安装:
# Add Debian Backports repository for Debian 10 "buster"
if ! apt-cache policy 2>/dev/null | grep -q "http://.*buster-backports"; then
echo "deb http://deb.debian.org/debian/ buster-backports main contrib" | sudo tee /etc/apt/sources.list.d/buster-backports.list
fi
# Update APT lists
sudo apt-get update
# Install Kodi from backports:
#sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports
sudo apt-get install kodi/buster-backports
sudo apt-get install kodi-bin/buster-backports
sudo apt-get install kodi-data/buster-backports
sudo apt-get install kodi-repository-kodi/buster-backports
sudo apt-get install libspdlog1/buster-backports
# (OPTIONAL) Install Kodi binary add-ons (for example, 'PVR IPTV Simple'):
sudo apt-get install kodi-pvr-iptvsimple/buster-backports
这个脚本可以添加一个debian
的buster-backports
仓库,并使用这个仓库中的Kodi19.1安装,需要注意的是这个仓库的公钥是缺失的,所以需要手动安装公钥,否则会报错:
pi@raspberrypi:~ $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
pi@raspberrypi:~ $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
此外,为了不出现问题,我是先卸载原来的Kodi后再安装的新版:
sudo apt autoremove kodi
其它需要说明的:
-
即使是先卸载再安装,依然会保留原有Kodi的个人设置,安装新版后所有的个人设置依然存在。
-
脚本需要使用
root
权限执行,如sudo sh ~/kodi.sh
文章评论