看板Linux
标 题Re: [问题] samba被我玩挂 用apt指令装不起来
发信站SayYA 资讯站 (Mon Jun 23 11:42:05 2008)
转信站ptt!ctu-reader!ctu-peer!news.nctu!News.Math.NCTU!SayYa
※ 引述《[email protected] (阿平)》之铭言:
> 各位好 我是debian新手 我是从ubuntu一步步走过来的
> 一开始满顺利的 用apt指令就把 samba装好了
> (途中'有'出现文字的设定画面,内容是设定网域名之类的..其他忘了)
> 可是设定的部份出了问题 找网路上的说明试了许多还是没用
> 後来乾脆就想整个samba砍掉重装
> (途中'没有'出现文字设定画面,想说好像移除的不太彻底)
> samba砍掉重装後发现问题还是没有解决阿
> 我想可能因为/etc/smb/* 的设定档还在
> 所以我就顺手把/etc/smb/* 都砍掉了
有确认过 debian 是把 samba 的 config 档放在 /etc/smb 下吗?
debian 的 samba config 统统放在 /etc/samba
> ***问题来了***
> 砍掉之後/etc/smb/*我用apt-get install samba再也装不起来了
> (我後来试了一个fix的指令 apt-get -f install samba 也无效)
不知道你是从哪里得来的讯息告诉你 apt-get -f 是用来作 fix 的
那个 f 是指 force
$ apt-get -h
选项:
-f 当没有通过完整性测试时,仍尝试继续执行
> 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等服务
从这边推断 start failed 你认为已经移除掉 samba 但是实际上应该是没有移除掉
$ dpkg -l|grep samba
先确定是不是没有移除掉
安装跟移除 samba 的作法应该是
apt-get install samba
apt-get remove samba
要完全移掉 samba 的 config 档跟密码档是要
apt-get remove --purge samba
如你先前不是这样下 检查是不是 没有移除完整
$ dpkg -l|grep samba 有出现
rc samba
表示你之前的组态档一样存在 可以用 dpkg -P samba 清除掉
建议你还是把 moto 大写的无痛起步法先看看 先建立观念吧
ubuntu 虽然是从 debian 衍生出去 但是已经渐渐跟 debian 不相容了
--
(__) 欢迎加入 GNU Debian Linux
(oo) msn:
[email protected]
/------\/
/ | ||
* /\---/\ ...."Have you mooed today?"...
~~ ~~
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: 61.31.232.240