我对samba的配置文件出了问题感到非常生气。我刚刚删除了/etc/samba文件夹。现在我想重新安装samba,但是我无法做到。以下是我所做的事情:
我想彻底删除Samba,然后重新安装它,就好像之前什么都没有发生过一样。
怎么做呢?
[编辑]
sudo apt-get install samba
sudo vim /etc/samba/... # broke something in the config
sudo apt-get remove --purge samba
# realized that the config file in the `/etc/samba` is still there.
sudo rm -r /etc/samba
sudo apt-get install samba # getting error
我想彻底删除Samba,然后重新安装它,就好像之前什么都没有发生过一样。
怎么做呢?
[编辑]
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (215-17+deb8u4) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
和
- 第一次安装大小为54.2MB
- 卸载大小为11.5MB
- 第二次安装大小为11.5MB
sudo apt-get --purge autoremove
,会有任何区别吗? - user364819locate samba
和service --status-all | grep samba
的输出是什么? - user364819