当我尝试安装 flatpak 时出现此错误
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package flatpak is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
xdg-desktop-portal
E: Package 'flatpak' has no installation candidate```
答案1
首先确保 Universe 存储库已启用。
sudo add-apt-repository universe
然后,更新软件数据库。
sudo apt update
然后安装 flatpak
sudo apt install flatpak