我安装了豌豆压缩使用 Flatpak:
$ flatpak install flathub io.github.peazip.PeaZip
Looking for matches…
Remote ‘flathub’ found in multiple installations:
1) system
2) user
Which do you want to use (0 to abort)? [0-2]: 1
Skipping: io.github.peazip.PeaZip/x86_64/stable is already installed
现在,我无法卸载它:
$ flatpak uninstall flathub io.github.peazip.PeaZip
Warning: flathub is not installed
**
flatpak:ERROR:common/flatpak-transaction.c:2971:mark_op_resolved: assertion failed: (commit != NULL)
Bail out! flatpak:ERROR:common/flatpak-transaction.c:2971:mark_op_resolved: assertion failed: (commit != NULL)
Abandon (core dumped)
我不熟悉 Flatpak。有人能帮忙吗?
我在 Ubuntu 21.10 上运行 Flatpak 1.10.2。
答案1
当我使用来自官方 Ubuntu 21.10 存储库的 Flatpak 1.10.2 时,我可以重现您的问题。
要删除这个有问题的 PeaZip 包,你需要从以下位置获取较新的 FlatPak官方 PPA使用以下命令:
sudo add-apt-repository -n ppa:flatpak/stable
sudo sed -i "s/impish/focal/g" /etc/apt/sources.list.d/flatpak-ubuntu-stable-impish.list
sudo apt-get update
sudo apt-get dist-upgrade
flatpak uninstall io.github.peazip.PeaZip
注意:卸载命令不需要 扁平集线器(远程)论点。