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

看板Linux作者 (阿平)時間17年前 (2008/06/21 22:27), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/3 (看更多)
各位好 我是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

06/22 12:44, , 1F
apt-get remove --purge samba 重新移除一次試試
06/22 12:44, 1F

06/22 22:10, , 2F
我試了之後 --purge會把/etc/default/samba也移除
06/22 22:10, 2F

06/22 22:11, , 3F
不過還是不行
06/22 22:11, 3F
※ 編輯: mander 來自: 59.104.116.217 (06/22 22:17)
文章代碼(AID): #18NG-sad (Linux)
文章代碼(AID): #18NG-sad (Linux)