无法在 ubuntu 22.04 上安装 flatpak

无法在 ubuntu 22.04 上安装 flatpak

我全新安装了 ubuntu 22.04,什么都没变。我按照 flathub 网站上的步骤操作,但出现了这个烦人的错误,让我无法操作。有什么想法吗?谢谢。

https://launchpad.net/~flatpak/+archive/ubuntu/development provides newer prereleases of Flatpak from its development branch.
More info: https://launchpad.net/~flatpak/+archive/ubuntu/stable
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/flatpak-ubuntu-stable-jammy.list
Adding deb entry to /etc/apt/sources.list.d/flatpak-ubuntu-stable-jammy.list
Found existing deb-src entry in /etc/apt/sources.list.d/flatpak-ubuntu-stable-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/flatpak-ubuntu-stable-jammy.list
Adding key to /etc/apt/trusted.gpg.d/flatpak-ubuntu-stable.gpg with fingerprint 5C6D153A17C02C337EF6C663B8B9D41229DFA5F5
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Ign:2 https://ppa.launchpadcontent.net/flatpak/stable/ubuntu jammy InRelease                       
Ign:3 https://ppa.launchpadcontent.net/linuxuprising/shutter/ubuntu jammy InRelease                
Err:4 https://ppa.launchpadcontent.net/flatpak/stable/ubuntu jammy Release
  404  Not Found [IP: 2001:67c:1560:8008::19 443]
Err:5 https://ppa.launchpadcontent.net/linuxuprising/shutter/ubuntu jammy Release
  404  Not Found [IP: 2001:67c:1560:8008::19 443]
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/flatpak/stable/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://ppa.launchpadcontent.net/linuxuprising/shutter/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

答案1

这当然不是一个令人讨厌的错误。这是一个重要的错误,它警告你,你正试图向 Ubuntu 22.04 添加一个存储库,但该存储库不适合该版本,因此如果系统没有警告你,可能会破坏你的系统。

如果你再次阅读 Flathub 网站上的说明,你会注意到在 Ubuntu 上安装 Flatpak 不需要添加存储库。它包含在标准的 ubuntu 软件源中,可以使用以下命令安装

sudo apt install flatpak

这已经启用了 flatpak。接下来你可以添加 flathub 存储库:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

这简化了从终端安装该存储库的 flatpaks 的过程。

您也可以选择安装 gnome-software 和 flatpak 插件。这样您就可以从 Gnome Software 安装 flatpak,并自动更新它们。

sudo apt install gnome-software-plugin-flatpak

相关内容