报错如下:
% sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.21) ...
Setting up openssh-server (1:7.6p1-4ubuntu0.4) ...
Setting up samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.21) ...
Setting up ssh (1:7.6p1-4ubuntu0.4) ...
Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.21) ...
W: APT had planned for dpkg to do more than it reported back (9 vs 16).
Affected packages: openssh-server:amd64 samba-common:amd64
执行:sudo dpkg -l |grep uuid 查看uuid
% sudo dpkg -l |grep uuid
ii libuuid1:amd64 2.31.1-0.4ubuntu3.7 amd64 Universally Unique ID library
ii uuid-runtime 2.31.1-0.4ubuntu3.7 amd64 runtime components for the Universally Unique ID library
安装libuuid
库
libuuid
是一个跨平台的开源的uuid
操作库。一般的机器上默认是没有,先安装一下。
执行:sudo apt-get install uuid-dev
然后再执行:sudo apt-get -f install 就成功了