首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装Samba

无法安装Samba
EN

Ask Ubuntu用户
提问于 2014-11-24 21:56:06
回答 1查看 2.2K关注 0票数 0

我一直试图用这个终端提示安装Samba:

代码语言:javascript
复制
sudo apt-get install samba

这就是我得到的回应:

代码语言:javascript
复制
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.

我从这里要去哪里?

EN

回答 1

Ask Ubuntu用户

发布于 2014-11-26 05:09:41

首先你需要跑

sudo apt-get update

然后,您可以通过键入

sudo apt-缓存搜索samba \ grep samba

此外,如果包已安装一半,则可以使用以下命令修复损坏的包

sudo apt-获取-f安装

希望这能有所帮助。祝好运。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/553347

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档