正如我所执行的
sudo apt install flatpak
在我的实时 USB 启动的 ubuntu 22.04 终端抛出如下错误消息
Package flatpak is not available, but is referred to by another package.
This may mean that the package is missing, has been obsolete, or is only available from another source
However the following packages replace it:
xdg-desktop-portal
是的,我尝试使用
sudo apt update && sudo apt full-upgrade -y
但没有用。请帮忙!
答案1
跑步
sudo add-apt-repository universe
然后更新并升级
sudo apt update && sudo apt full-upgrade -y
现在尝试安装 flatpak
sudo apt install flatpak
正如@Lorenz Keel 在评论中所说,在 22.04 版的 live usb 上运行时,universe repo 未启用