在 Ubuntu 16.04 桌面上安装 samba

在 Ubuntu 16.04 桌面上安装 samba

尝试从 Ubuntu 16.04 桌面访问 Windows 共享文件夹,出现以下对话框。

smb 未处理的错误消息:无法从服务器检索共享列表:没有此文件或目录

当我尝试安装时,我发现我的默认 Ubuntu 没有安装 samba

sudo apt 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: python-samba but it is not going to be installed
         Depends: samba-common-bin (= 2:4.3.8+dfsg-0ubuntu1) but it is not going to be installed
         Depends: libwbclient0 (= 2:4.3.8+dfsg-0ubuntu1) but 2:4.3.11+dfsg-0ubuntu0.16.04.3 is to be installed
         Depends: samba-libs (= 2:4.3.8+dfsg-0ubuntu1) but 2:4.3.11+dfsg-0ubuntu0.16.04.3 is to be installed
         Recommends: attr
         Recommends: samba-dsdb-modules 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.

答案1

首先使用sudo apt-get update && sudo apt-get -f install,然后sudo apt install samba再次运行。

相关内容