web-dev-qa-db-ja.com

Sambaエラーの削除

Sambaパッケージに問題があります。だから私はそれを削除するために次のことをしましたが、いくつかのエラーが発生しました。

# Sudo apt-get --purge remove samba-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  samba* samba-common* samba-common-bin*
0 upgraded, 0 newly installed, 3 to remove and 6 not upgraded.
4 not fully installed or removed.
After this operation, 42.4 MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 195751 files and directories currently installed.)
Removing samba ...
Purging configuration files for samba ...
Removing configuration file /etc/default/samba...
Removing configuration file /etc/default/samba...
Removing samba-common-bin ...
Removing samba-common ...
Purging configuration files for samba-common ...
**Perl: error while loading shared libraries: libperl.so.5.12: cannot open shared object file: No such file or directory
dpkg: error processing samba-common (--purge):
 subprocess installed post-removal script returned error exit status 127
Processing triggers for man-db ...
Perl: error while loading shared libraries: libperl.so.5.12: cannot open shared object file: No such file or directory
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Errors were encountered while processing:
 samba-common**
E: Sub-process /usr/bin/dpkg returned an error code (1)

何か案は?

2
user71613

Sudo apt-get autoremoveを試してから、Sudo apt-get purge samba*を試してください。

3
David M. Sousa

ターミナルでこれらのコマンドを実行します(ctrl+alt+t):

Sudo apt-get -f install
Sudo apt-get install Perl
Sudo apt-get purge samba*
Sudo apt-get autoremove
1
Bierck Haarn