有一天,我在 Ubuntu 16.04 上从源代码安装了 python 3.7。第一次重启后,samba 共享消失。请帮助我使用 python3.7 安装 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-dnspython but it is not going to be installed
Depends: python-samba but it is not going to be installed
Depends: samba-common-bin (= 2:4.3.11+dfsg-0ubuntu0.16.04.17) but it is not going to be installed
Depends: python (< 2.8) but 3.7.0-1 is to be installed
Depends: samba-libs (= 2:4.3.11+dfsg-0ubuntu0.16.04.17) but it is not going to be installed
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
我只删除了 /usr/local/bin: 中的两个符号链接,python3
问题python3-config
就解决了!