8

进行 apt-get 更新/升级时,我看到了该错误

W: Conflicting distribution: https://downloads.plex.tv/repo/deb public InRelease (expected public but got )

我之前升级到 Ubuntu Zesty 17.04,不知道如何解决上述问题。已经看过https://forums.plex.tv/discussion/162337/plex-media-server-ppa-for-ubuntu/p4了吗?但没有建议的修复方法。

也许你们中的一个可以提供一些提示?谢谢!

4

3 回答 3

11

编辑

/etc/apt/sources.list.d/plexmediaserver.list

并更换

deb https://downloads.plex.tv/repo/deb/ public main

deb https://downloads.plex.tv/repo/deb/ ./public main

...这对我有用。

于 2017-06-30T08:58:53.847 回答
1

https://forums.plex.tv/t/w-conflicting-distribution-https-downloads-plex-tv-repo-deb-public-inrelease-expected-public/194055/16

这是因为他们正在重做包装:

公共主要是正确的。
你没有做错什么。
您所看到的是因为存储库的...<br> 正如我今天已经说过的,我正在尽我所能努力和快速地工作。
在我们完成所有 PMS 的新构建系统 (CI) 时,该存储库将彻底检修。
[...]

运行以下代码,它将更新/升级 Plex。

echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -

sudo apt update && sudo apt upgrade -y
于 2018-08-24T13:34:11.690 回答
0

我被这个警告日志击中,发现这可能是由错误的InRelease文件引起的。

我正在制作一个自我管理的回购并初始创建InRelease文件

# apt-ftparchive release ./ > Release
# gpg -abs --default-key xxx -o Release.gpg Release
# gpg --clearsign --default-key xxx -o InRelease Release

但事实证明这并没有添加正确的元数据,为了解决它,我添加了一个新的配置文件并添加了以下内容

APT::FTPArchive::Release {
  Origin "test";
  Label "focal-updates";
  Suite "focal-updates";
  Codename "focal";
  Architectures "amd64 i386 source";
  Components "main";
  Description "focal-updates";
};
# apt-ftparchive release -c=./patch.conf ./ > Release
# gpg -abs --default-key xxx -o Release.gpg Release
# gpg --clearsign --default-key xxx -o InRelease Release

然后apt update很好,警告信息消失了

于 2021-07-05T09:54:26.097 回答