1.Ubuntu安装 samba出现如下的错误
Setting up samba-common (2:4.13.17~dfsg-0ubuntu0.21.04.2) ...
dpkg: error processing package samba-common (--configure):
installed samba-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of samba-common-bin:
samba-common-bin depends on samba-common (= 2:4.13.17~dfsg-0ubuntu0.21.04.2); however:
Package samba-common is not configured yet.
dpkg: error processing package samba-common-bin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common (= 2:4.13.17~dfsg-0ubuntu0.21.04.2); however:
Package samba-common is not configured yet.
samba depends on samba-common-bin (= 2:4.13.17~dfsg-0ubuntu0.21.04.2); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a
followup error from a previous failure. Errors were encountered while processing:
samba-common
samba-common-bin
samba
一般出现上面的错误 ,
解决屏蔽方法,并不能彻底解决上面的问题,但如果不安装这些不成功的包,是可以屏蔽掉它的,但是如果你需要安装 上面的那些包就不会生效了:
编辑
sudo vim /var/lib/dpkg/status
找到包 samba-common、samba-common-bin等 那一段,删掉!!!(整段)
然后再运行
sudo apt-get install -f 即可
接下来第二种方法,则可以彻底解决上面的问题:
1.$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old //现将info文件夹更名
2.$ sudo mkdir /var/lib/dpkg/info //再新建一个新的info文件夹
3.$ sudo apt-get update, apt-get -f install
4.$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old //执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_old文件夹下
5.$ sudo rm -rf /var/lib/dpkg/info //把自己新建的info文件夹删掉
6.$ sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info //把以前的info文件夹重新改回名字
打赏作者
近期评论