samba安装不上
muhe@muhe:~$ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libsmbclient : Depends: samba-libs (= 2:4.3.11+dfsg-0ubuntu0.16.04.6) but it is not going to be installed
samba : Depends: python-dnspython but it is not going to be installed
Depends: python-samba but it is not going to be installed
Depends: samba-common (= 2:4.3.11+dfsg-0ubuntu0.16.04.3) but it is not going to be installed
Depends: samba-common-bin (= 2:4.3.11+dfsg-0ubuntu0.16.04.3) but it is not going to be installed
Depends: tdb-tools but it is not going to be installed
Depends: libwbclient0 (= 2:4.3.11+dfsg-0ubuntu0.16.04.3) but it is not going to be installed
Depends: samba-libs (= 2:4.3.11+dfsg-0ubuntu0.16.04.3) but it is not going 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: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
muhe@muhe:~$ sudo aptitude install libsmbclient
libsmbclient is already installed at the requested version (2:4.3.11+dfsg-0ubuntu0.16.04.6)
libsmbclient is already installed at the requested version (2:4.3.11+dfsg-0ubuntu0.16.04.6)
The following packages will be REMOVED:
linux-signed-image-4.8.0-46-generic{u}
0 packages upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
Need to get 0 B of archives. After unpacking 15.4 kB will be freed.
The following packages have unmet dependencies:
libsmbclient : Depends: samba-libs (= 2:4.3.11+dfsg-0ubuntu0.16.04.6) but it is not going to be installed.
The following actions will resolve these dependencies:
Remove the following packages:
1) gvfs-backends
2) libsmbclient
Leave the following dependencies unresolved:
3) gnome-bluetooth recommends gvfs-backends
4) rhythmbox recommends gvfs-backends
5) nautilus recommends gvfs-backends
Accept this solution? [Y/n/q/?] Y
..................
muhe@muhe:~$ sudo apt-get install samba
aptitude 与 apt-get 一样,是 Debian 及其衍生系统中功能极其强大的包管理工具。与 apt-get 不同的是,aptitude 在处理依赖问题上更佳一些。举例来说,aptitude 在删除一个包时,会同时删除本身所依赖的包。这样,系统中不会残留无用的包,整个系统更为干净。

浙公网安备 33010602011771号