Announcement

Collapse
No announcement yet.

[SOLVED] Problems re-installing samba

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Problems re-installing samba

    Hi community!

    I have a problem re-installing samba.
    I had samba installed, but since it was only working for a short time - maybe all my attempts shot the configuration - I made up my mind and tried to re-install it.

    But after removing it the new installation failed.
    This is the console output:

    # apt-get install samba
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Recommended packages:
    smbldap-tools
    The following NEW packages will be installed:
    samba
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B/3341kB of archives.
    After unpacking 8184kB of additional disk space will be used.
    Preconfiguring packages ...
    Selecting previously deselected package samba.
    (Reading database ... 94846 files and directories currently installed.)
    Unpacking samba (from .../samba_3.0.24-2ubuntu1.2_i386.deb) ...
    Setting up samba (3.0.24-2ubuntu1.2) ...
    Generating /etc/default/samba...
    * Starting Samba daemons... [fail]
    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
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I have tried for two hours to lookup solutions on the internet, but everything I tried failed.
    I really need samba running on this machine (others are up and running with no problem, Debian, Xubuntu, SuSE, whatever only Kubuntu gives me troubles).
    I really, really appreciate any help.
    Thank you.

    #2
    Re: Problems re-installing samba

    For the whole list of packages related to Samba (if in doubt, ask Synaptic for details), proceed as follows:

    Code:
    apt-get --purge remove[list_of_packages]
    apt-get install[list_of_packages]

    Comment


      #3
      Re: Problems re-installing samba

      Thanks, but I solved it myself.
      And it only took 5 minutes.

      Something was nagging on my mind:
      Before re-installing samba I removed the smb.conf and the install did not create a new one.
      Even an empty one does the trick.

      Code:
      cd /etc/samba
      touch smb.conf
      apt-get install samba
      Bingo.
      It works. Now I only have to create a working smb.conf
      I know, don't post any links to
      http://www.samba.org/samba/docs/man/...TO-Collection/

      I hope I will work it out, otherwise I will ask again

      Comment


        #4
        Re: Problems re-installing samba

        Originally posted by Ponder Stibbons
        create a working smb.conf
        Minimalistic approach: http://www.penguin.ch/dokuwiki/doku....ridge:smb_conf

        Comment

        Working...
        X