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

By Hamiltion
at 2008-06-21T22:27
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

By Zora
at 2008-06-25T01:42
at 2008-06-25T01:42

By Heather
at 2008-06-28T15:42
at 2008-06-28T15:42

By Oliver
at 2008-06-30T05:19
at 2008-06-30T05:19
Related Posts
vmware如何跟一般磁區做檔案分享

By Agnes
at 2008-06-21T17:35
at 2008-06-21T17:35
vmware如何跟一般磁區做檔案分享

By Gary
at 2008-06-21T16:10
at 2008-06-21T16:10
vmware如何跟一般磁區做檔案分享

By Queena
at 2008-06-21T10:51
at 2008-06-21T10:51
gcin在firefox 3裡頭叫不出來

By Elizabeth
at 2008-06-21T07:14
at 2008-06-21T07:14
cross compile 遇到的問題

By Ophelia
at 2008-06-21T04:12
at 2008-06-21T04:12