samba被我玩掛 用apt指令裝不起來 - Linux

Hamiltion avatar
By Hamiltion
at 2008-06-21T22:27

Table of Contents


各位好 我是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砍掉 模擬之前爛掉的過程
結果什麼也沒發生 很順利的又裝回來了
所以最後爛掉的原因還是個謎...


--
Tags: Linux

All Comments

Zora avatar
By Zora
at 2008-06-25T01:42
apt-get remove --purge samba 重新移除一次試試
Heather avatar
By Heather
at 2008-06-28T15:42
我試了之後 --purge會把/etc/default/samba也移除
Oliver avatar
By Oliver
at 2008-06-30T05:19
不過還是不行

vmware如何跟一般磁區做檔案分享

Agnes avatar
By Agnes
at 2008-06-21T17:35
※ 引述《charleshu (Analog Engineer)》之銘言: : ※ 引述《ICBM ( .)》之銘言: : : 我在Ubuntu Gusty底下安裝了一份VMWare server,我本想要用來run只有windows可以 : : 執行的一些數學程式(ma ...

vmware如何跟一般磁區做檔案分享

Gary avatar
By Gary
at 2008-06-21T16:10
※ 引述《ICBM ( .)》之銘言: : 我在Ubuntu Gusty底下安裝了一份VMWare server,我本想要用來run只有windows可以 : 執行的一些數學程式(mathcad 13, etc.)。我把mathcad的檔案放在一般FAT分割區之下, : ...

vmware如何跟一般磁區做檔案分享

Queena avatar
By Queena
at 2008-06-21T10:51
我在Ubuntu Gusty底下安裝了一份VMWare server,我本想要用來run只有windows可以 執行的一些數學程式(mathcad 13, etc.)。我把mathcad的檔案放在一般FAT分割區之下, 如今要用VMWare 的XP來啟動mathcad編輯,這樣則需要檔案的互通。我試過用V ...

gcin在firefox 3裡頭叫不出來

Elizabeth avatar
By Elizabeth
at 2008-06-21T07:14
本以為是gcin版本的問題, 從1.3.5升級到1.4.0還是不行 切換回原本的firefox 2則沒此問題 在google上搜尋了一下 似乎沒看到類似狀況 想請問一下大家怎麼解決這種問題? 感謝~ - ...

cross compile 遇到的問題

Ophelia avatar
By Ophelia
at 2008-06-21T04:12
※ 引述《shane123 (家產有八十七億￾  ￾ﰩ》之銘言: : 請問一下 : 我最近要把 glib ( http://www.gtk.org/download-linux.html ) : 編到 arm 上面 : 所以我抓回 source 後 : 執行 ./configure --host=arm-l ...