我最近在windows 10旁边安装了Ubuntu18.04,但是每当我试图安装任何东西时,我都会收到这些消息。
~$ sudo snap install canonical-livepatch
[sudo] password for john:
error: cannot install "canonical-livepatch": Post
https://api.snapcraft.io/v2/snaps/refresh: dial tcp: lookup
api.snapcraft.io: no such host
~$ sudo apt install ubuntu-restricted-extras
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ubuntu-restricted-extras发布于 2020-02-05 06:33:19
听起来也许你的宝库已经过时或者腐败了。
尝试sudo su root apt更新
apt full-upgrade -y如果失败了(如果您的存储库搞砸了,就应该这样做)。
尝尝这个
apt-get check && apt-get update
apt-upgrade注意,您可能需要运行几次更新。
https://askubuntu.com/questions/1208174
复制相似问题