我一直试图在我的 pi 上安装 Plex,但失败了(我是计算机方面的新手)。我试了几次,我想我可能终于成功了。现在当我去更新时,收到以下警告:
root@raspberry:~# apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Ign:3 http://ftp.debian.org/debian stretch InRelease
Hit:4 http://ftp.debian.org/debian stretch-updates InRelease
Hit:5 http://ftp.debian.org/debian stretch Release
Hit:6 https://dev2day.de/pms stretch InRelease
Reading package lists... Done
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Translations (main/i18n/Translation-en_US.UTF-8) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://dev2day.de/pms stretch InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://dev2day.de/pms stretch InRelease' doesn't support architecture 'amd64'
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
W: Target Translations (main/i18n/Translation-en_US.UTF-8) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list.d/pms.list:1
pi@raspberry:~ $ sudo nano /etc/apt/sources.list
deb http://ftp.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free
"# Uncomment lines below then 'apt-get update' to enable 'apt-get source'"
"#deb-src http://ftp.debian.org/debian/ stretch main contrib non-free"
"#deb-src http://security.debian.org/ stretch/updates main contrib non-free"
"#deb-src http://ftp.debian.org/debian/ stretch-updates main contrib non-free"
"deb https://dev2day.de/pms/ stretch main"
pi@raspberry:~ $ sudo nano /etc/apt/sources.list.d/pms.list
deb https://dev2day.de/pms/ stretch main
pi@raspberry:~ $ sudo apt-get update
Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:2 http://ftp.debian.org/debian stretch InRelease
Hit:3 https://dev2day.de/pms stretch InRelease
Get:4 http://ftp.debian.org/debian stretch-updates InRelease [91.0 kB]
Hit:5 http://ftp.debian.org/debian stretch Release
Get:7 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
7 秒内获取 211 kB(27.5 kB/秒)
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-amd64/Packages' as repository 'https://dev2day.de/pms stretch InRelease' doesn't support architecture 'amd64'
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://dev2day.de/pms stretch InRelease' doesn't support architecture 'i386'
答案1
/etc/apt/sources.list
第 10 行和/etc/apt/sources.list.d/pms.list
第 1 行有重复的条目。
编辑您的问题并向我们显示第 10 行(sudo -H gedit /etc/apt/sources.list
)和整个 pms.list 文件(cat /etc/apt/sources.list.d/pms.list
),我会为您查看。
更新#1:
编辑/etc/apt/sources.list
...
并改变:
"deb https://dev2day.de/pms/ stretch main"
到:
"#deb https://dev2day.de/pms/ stretch main"
更新 #2:
编辑/etc/apt/sources.list.d/pms.list
...
并改变:
deb https://dev2day.de/pms/ stretch main
到:
deb [arch=armhf] https://dev2day.de/pms/ stretch main
更新 #3:
sudo dpkg --add-architecture armhf