报错W: APT had planned for dpkg to do more than it reported back (9 vs 16).解决方式

报错如下:

% 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 就成功了

  • 7
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值