Ubuntu23.04安装snapd失败:E: Package ‘snapd‘ has no installation candidate

Ubuntu23.04使用apt安装snapd时报错如下:

Package snapd 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

E: Package 'snapd' has no installation candidate

解决办法如下:

sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt update
sudo apt install -y snapd
snap version

按照上述步骤进行操作即可顺利安装snapd。

猜你喜欢

转载自blog.csdn.net/cotex_A9/article/details/132129381