我一直试图用这个终端提示安装Samba:
sudo apt-get install samba这就是我得到的回应:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an
impossible situation or if you are using the unstable distribution that some
required packages have not yet been created or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
samba : Depends: samba-common (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.2 is to be installed
Depends: samba-common-bin (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.2 is to be installed
Depends: samba-dsdb-modules but it is not going to be installed
Depends: samba-libs (= 2:4.1.6+dfsg-1ubuntu2) but 2:4.1.6+dfsg-1ubuntu2.14.04.2 is to be installed
Recommends: attr but it is not going to be installed
Recommends: samba-vfs-modules but it is not going to be installed
E: Unable to correct problems, you have held broken packages.我从这里要去哪里?
发布于 2014-11-26 05:09:41
首先你需要跑
sudo apt-get update
然后,您可以通过键入
sudo apt-缓存搜索samba \ grep samba
此外,如果包已安装一半,则可以使用以下命令修复损坏的包
sudo apt-获取-f安装
希望这能有所帮助。祝好运。
https://askubuntu.com/questions/553347
复制相似问题