作者mander (阿平)
看板Linux
标题[问题] samba被我玩挂 用apt指令装不起来
时间Sat Jun 21 22:27:01 2008
各位好 我是debian新手 我是从ubuntu一步步走过来的
一开始满顺利的 用apt指令就把 samba装好了
(途中'有'出现文字的设定画面,内容是设定网域名之类的..其他忘了)
可是设定的部份出了问题 找网路上的说明试了许多还是没用
後来乾脆就想整个samba砍掉重装
(途中'没有'出现文字设定画面,想说好像移除的不太彻底)
samba砍掉重装後发现问题还是没有解决阿
我想可能因为/etc/smb/* 的设定档还在
所以我就顺手把/etc/smb/* 都砍掉了
***问题来了***
砍掉之後/etc/smb/*我用apt-get install samba再也装不起来了
(我後来试了一个fix的指令 apt-get -f install samba 也无效)
安装跑到一半会出错
会跑出以下错误讯息
=======================================================================
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Building tag database... Done
The following NEW packages will be automatically installed:
libcompress-zlib-perl libconvert-asn1-perl libcrypt-smbhash-perl
libcupsys2 libdigest-md4-perl libdigest-sha1-perl libfont-afm-perl
libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
libhtml-tree-perl libio-socket-ssl-perl libjcode-pm-perl
libmailtools-perl libnet-ldap-perl libnet-ssleay-perl libtimedate-perl
libunicode-map-perl libunicode-map8-perl libunicode-maputf8-perl
libunicode-string-perl liburi-perl libwww-perl smbldap-tools
The following NEW packages will be installed:
libcompress-zlib-perl libconvert-asn1-perl libcrypt-smbhash-perl
libcupsys2 libdigest-md4-perl libdigest-sha1-perl libfont-afm-perl
libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl
libhtml-tree-perl libio-socket-ssl-perl libjcode-pm-perl
libmailtools-perl libnet-ldap-perl libnet-ssleay-perl libtimedate-perl
libunicode-map-perl libunicode-map8-perl libunicode-maputf8-perl
libunicode-string-perl liburi-perl libwww-perl samba smbldap-tools
0 packages upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/6144kB of archives. After unpacking 17.3MB will be used.
Do you want to continue? [Y/n/?] y
...
...
Setting up libunicode-maputf8-perl (1.11-2) ...
Setting up samba (3.0.24-6etch10) ...
Starting Samba daemons: nmbd failed!
invoke-rc.d: initscript samba, action "start" failed.
dpkg: error processing samba (--configure):
subprocess post-installation script returned error exit status 1
Setting up libcrypt-smbhash-perl (0.12-1) ...
Setting up smbldap-tools (0.9.2-3) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up samba (3.0.24-6etch10) ...
Starting Samba daemons: nmbd failed!
invoke-rc.d: initscript samba, action "start" failed.
dpkg: error processing samba (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
samba
=======================================================================
我不知道发生了什麽事情,可以请有经验的网友帮我诊断吗?谢谢
补充:我的系统新装好的 系统预设有跑iptable 排程
自己灌的只有跑 ssh mldonkey smbfs等服务
後记:
找到某个步骤可能可以解决
进aptitude搜寻samba-common
按shift+r进入设定画面
它会要你mkdir /etc/samba再来设定
设定完後重装就ok了...
之後我试着把/etc/samba砍掉 模拟之前烂掉的过程
结果什麽也没发生 很顺利的又装回来了
所以最後烂掉的原因还是个谜...
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.67.166.203
1F:推 Richie1105:apt-get remove --purge samba 重新移除一次试试 06/22 12:44
2F:→ mander:我试了之後 --purge会把/etc/default/samba也移除 06/22 22:10
3F:→ mander:不过还是不行 06/22 22:11
※ 编辑: mander 来自: 59.104.116.217 (06/22 22:17)