Menu Close

在CentOS 8上安装SnapCraft商店

清除DNF缓存

$ sudo rm -r /var/cache/dnf 

更新源

$ sudo dnf install epel-release
$ sudo dnf upgrade

安装snapd

$ sudo yum install snapd
$ sudo systemctl enable --now snapd.socket
$ sudo ln -s /var/lib/snapd/snap /snap

References

  1. https://snapcraft.io/docs/installing-snap-on-centos
  2. https://stackoverflow.com/questions/59993633/yum-dnf-error-failed-to-download-metadata-for-repo/60107352#60107352

发表评论

电子邮件地址不会被公开。 必填项已用*标注