Re: [問題] samba被我玩掛 用apt指令裝不起來

看板Linux作者時間17年前 (2008/06/23 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
※ 引述《mander.bbs@ptt.cc (阿平)》之銘言: > 各位好 我是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:cheung@debian.nccu.edu.tw /------\/ / | || * /\---/\ ...."Have you mooed today?"... ~~ ~~ -- ※ Origin: SayYA 資訊站 <bbs.sayya.org> ◆ From: 61.31.232.240
文章代碼(AID): #18Nr-200 (Linux)
文章代碼(AID): #18Nr-200 (Linux)