Ubuntu samba unconfigured issue

764 阅读1分钟

issue descriptions:

After this operation, 0 B of additional disk space will be used.
Setting up samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.21) ...
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 smbclient:
 smbclient depends on samba-common (= 2:4.7.6+dfsg~ubuntu-0ubuntu2.21); however:
  Package samba-common is not configured yet.

dpkg: error processing package smbclient (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
 samba-common-bin depends on samba-common (= 2:4.7.6+dfsg~ubuntu-0ubuntu2.21); however:
  Package samba-common is not configured yet.

dpkg: error processing package samba-common-bin (--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
 smbclient
 samba-common-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
cuda@fttsd5q:~/ftts_job_D5Q-Pegasus_iGPU/tesla_automation_test$ sudo dpkg -P samba samba-common smbclient

Solution:

sudo apt-get remove --purge samba samba-*
sudo apt-get autoremove

After that If you find the config files in /etc/samba better rename it.sudo mv  /etc/samba /etc/samba.old
Now you can install samba by issuing the commandsudo apt-get install samba