web-dev-qa-db-fra.com

Impossible de désinstaller et de réinstaller Samba - Des erreurs uniques?

Exécution du serveur 16.04.1 32 avec LXDE en haut. Je viens de faire un bazar pour moi. S'il vous plaît aider. Vous voulez le réparer pour mieux comprendre Linux. Réinstallez le système d'exploitation assez facilement, mais ne le voulez pas.

Samba désinstallé avec

Sudo apt-get remove --purge samba

Aussi essayé ces

Sudo apt-get -f install



dnsadmin@trm-linfs04:~$ 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 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Job for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

    Sudo apt-get autoremove


Job for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Probablement une erreur de faire la purge, mais ...

dnsadmin@trm-linfs04:~$ Sudo dpkg --configure -a                                                                                Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.3) ...
Job for smbd.service failed because the control process exited with error code.                                                 See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
 samba
dnsadmin@trm-linfs04:~$ Sudo status smbd
status: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/up                                                start: Connection refused
dnsadmin@trm-linfs04:~$ status: Unable to connect to Upstart: Failed to connect                                                 to socket /com/ubuntu/upstart: Connection refused
No command 'status:' found, did you mean:
 Command 'status' from package 'upstart' (main)
status:: command not found
dnsadmin@trm-linfs04:~$ serevice smbd status
No command 'serevice' found, did you mean:
 Command 'service' from package 'init-system-helpers' (main)
serevice: command not found
dnsadmin@trm-linfs04:~$ service smbd status
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2017-01-31 11:54:05 EST; 2min 21
     Docs: man:systemd-sysv-generator(8)
  Process: 12400 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE

Jan 31 11:54:05 trm-linfs04 systemd[1]: Starting LSB: start Samba SMB/CIFS daemo
Jan 31 11:54:05 trm-linfs04 smbd[12400]:  * Starting SMB/CIFS daemon smbd
Jan 31 11:54:05 trm-linfs04 smbd[12400]:    ...fail!
Jan 31 11:54:05 trm-linfs04 systemd[1]: smbd.service: Control process exited, co
Jan 31 11:54:05 trm-linfs04 systemd[1]: Failed to start LSB: start Samba SMB/CIF
Jan 31 11:54:05 trm-linfs04 systemd[1]: smbd.service: Unit entered failed state.
Jan 31 11:54:05 trm-linfs04 systemd[1]: smbd.service: Failed with result 'exit-c
lines 1-13/13 (END)
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2017-01-31 11:54:05 EST; 2min 21s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 12400 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

Des idées?

Je veux juste m'en débarrasser complètement et le réinstaller.

Utilisera Webmin 1.831 pour gérer. Je n'ai évidemment aucune idée de ce que je fais.

Toute aide serait grande. Merci, guerriers Ubuntu!

1
dns dave

Tout d’abord , répertoriez toutes les instances des packages samba installées:

La commande pour pre 14.04 est la suivante:

 $ dpkg --get-selections | grep -v deinstall | egrep samba

Pour 14.04 et après la commande est:

 $ apt list --installed | egrep samba

Ce dernier vient avec un avertissement qui peut être ignoré. ( https://askubuntu.com/a/463966/29012 )

Maintenant, supprimez manuellement ces instances de la sortie individuellement avec:

$ Sudo apt remove [item from output]

Maintenant, supprimez enfin les paquets dont vous n'avez plus besoin avec:

$ Sudo apt autoremove
0
L. D. James