![无法安装 mailutils](https://linux22.com/image/1145793/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20mailutils.png)
我正在尝试mailutils
在 Ubuntu 中安装。我收到此错误:
$ sudo apt-get install mailtuils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mailtuils
答案1
您的命令似乎拼写错误,mailtuils
而不是mailutils
:
尝试这个:
sudo apt-get install mailutils
答案2
虽然很明显你拼错了包名称简单地纠正这一点并不能保证成功,因为如果你没有为该包启用正确的存储库,你将得到相同的结果。如果你检查上面的链接,你会注意到 Ubuntu 包搜索在 [大胆的] 在需要的时间和地点(如本例)
请执行下列操作:
1)确保Universe 存储库已启用
2)在命令中使用正确的包名称。sudo apt-get install mailutils
答案3
用来apt policy
查看哪里出了问题:
$ apt policy mailtuils
N: Unable to locate package mailtuils
啊哈...现在我看到了什么?...打字错误!:D
$ apt policy mailutils
mailutils:
Installed: (none)
Candidate: 1:2.99.99-1.1ubuntu3
Version table:
1:2.99.99-1.1ubuntu3 500
500 http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
仔细检查universe
您的存储库:
$ sudo add-apt-repository universe
'universe' distribution component is already enabled for all sources.
现在我们开始 ...
$ sudo apt-get install mailutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libgsasl7 libkyotocabinet16v5 libmailutils4 libntlm0 mailutils-common
Suggested packages:
mailutils-mh mailutils-doc
The following NEW packages will be installed:
libgsasl7 libkyotocabinet16v5 libmailutils4 libntlm0 mailutils
mailutils-common
0 upgraded, 6 newly installed, 0 to remove and 4 not upgraded.
Need to get 1,285 kB of archives.
After this operation, 6,657 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.