Gauti@DESKTOP-6G981SF:~$ sudo apt-get update
sudo: unable to resolve host DESKTOP-6G981SF
Reading package lists... Done
Gauti@DESKTOP-6G981SF:~$ sudo apt-get install w3m w3m-img
sudo: unable to resolve host DESKTOP-6G981SF
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package w3m-img 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 'w3m-img' has no installation candidate
Gauti@DESKTOP-6G981SF:~$
答案1
首先,如果你仔细查看输出,你会发现更新工作正常。安装w3m-img
包失败。我强烈建议你检查是否universe
启用了存储库,因为w3m-img
包属于该存储库。请参见下面的输出:
$ apt-cache policy w3m-img
w3m-img:
Installed: (none)
Candidate: 0.5.3-26build1
Version table:
0.5.3-26build1 500
500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages