Can't install Samba4 in Ubuntu 11.10

Asked by Loren41

When I try to install Samba4 in Ubuntu 11.10 I receive the following from the terminal:

ProblemType: Package
  DistroRelease: Ubuntu 11.04
  Package: samba4 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1
  ProcVersionSignature: Ubuntu 2.6.38-11.48-generic 2.6.38.8
  Uname: Linux 2.6.38-11-generic i686
  Architecture: i386
  Date: Fri Aug 26 12:36:29 2011
  ErrorMessage: subprocess installed post-installation script returned error exit status 1
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
  SourcePackage: samba4
  Title: package samba4 4.0.0~alpha15~git20110124.dfsg1-2ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
  UpgradeStatus: Upgraded to natty on 2011-05-02 (116 days ago)

BACKGROUND:
My home network consists of a Windows7 host, Ubuntu 11.10 host, and unRAID server via a Verizon ISP. The Windows7 pc sees the files on the server just fine. I need to restore the Samba install (worked fine with Ubuntu 11.04) and then receive help with the configuration file. I am a mostly GUI dependent but willing to enter commands and perform gedits with a little guidance. Blindly copying example commands is probably what got me in this mess. Thanks in advance, Loren41

Revision history for this message
delance (olivier-delance) said :
#1

I don't understand what you try to do.
Why don't you simply install samba via network via command:
   sudo apt-get install samba
To avoid typo, use copy/paste. To paste on terminal, use <shift>+<ctrl>+V instead of <ctrl>+V.

You failed because you try to use Maverick CD to install on a Natty system.

Revision history for this message
Loren41 (loren41) said :
#2

On 11/05/2011 11:55 AM, delance wrote:
> Your question #177652 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/177652
>
> delance posted a new comment:
> I don't understand what you try to do.
> Why don't you simply install samba via network via command:
> sudo apt-get install samba
> To avoid typo, use copy/paste. To paste on terminal, use<shift>+<ctrl>+V instead of<ctrl>+V.
>
> You failed because you try to use Maverick CD to install on a Natty
> system.
>
I don't have a Samba CD. The install was made from the Ubuntu Software
Center. I will try again and post the result.
Thanks.

Revision history for this message
Loren41 (loren41) said :
#3

On 11/05/2011 11:55 AM, delance wrote:
> Your question #177652 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/177652
>
> delance posted a new comment:
> I don't understand what you try to do.
> Why don't you simply install samba via network via command:
> sudo apt-get install samba
> To avoid typo, use copy/paste. To paste on terminal, use<shift>+<ctrl>+V instead of<ctrl>+V.
>
> You failed because you try to use Maverick CD to install on a Natty
> system.
>
delance,

After receipt of your message, I removed Samba, and then performed the
following:
loren@loren-laptop:~$ sudo apt-get install samba
[sudo] password for loren:
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up samba4 (4.0.0~alpha17~git20110807.dfsg1-1ubuntu1) ...
Administrator password will be set randomly!
Unknown parameter encountered: "announce version"
Ignoring unknown parameter "announce version"
Unknown parameter encountered: "passdb backend"
Ignoring unknown parameter "passdb backend"
Unknown parameter encountered: "writable"
Ignoring unknown parameter "writable"
Unknown parameter encountered: "force user"
Ignoring unknown parameter "force user"
Unknown parameter encountered: "force group"
Ignoring unknown parameter "force group"
Global parameter null passwords found in service section!
Unknown parameter encountered: "username map"
Ignoring unknown parameter "username map"
Global parameter name resolve order found in service section!
Global parameter wins support found in service section!
Unknown parameter encountered: "printing"
Ignoring unknown parameter "printing"
Unknown parameter encountered: "printcap name"
Ignoring unknown parameter "printcap name"
Unknown parameter encountered: "syslog"
Ignoring unknown parameter "syslog"
Unknown parameter encountered: "syslog only"
Ignoring unknown parameter "syslog only"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "write list"
Ignoring unknown parameter "write list"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "force user"
Ignoring unknown parameter "force user"
Unknown parameter encountered: "force group"
Ignoring unknown parameter "force group"
Unknown parameter encountered: "valid users"
Ignoring unknown parameter "valid users"
Unknown parameter encountered: "public"
Ignoring unknown parameter "public"
Unknown parameter encountered: "writable"
Ignoring unknown parameter "writable"
Unknown parameter encountered: "announce version"
Ignoring unknown parameter "announce version"
Unknown parameter encountered: "passdb backend"
Ignoring unknown parameter "passdb backend"
Unknown parameter encountered: "writable"
Ignoring unknown parameter "writable"
Unknown parameter encountered: "force user"
Ignoring unknown parameter "force user"
Unknown parameter encountered: "force group"
Ignoring unknown parameter "force group"
Global parameter null passwords found in service section!
Unknown parameter encountered: "username map"
Ignoring unknown parameter "username map"
Global parameter name resolve order found in service section!
Global parameter wins support found in service section!
Unknown parameter encountered: "printing"
Ignoring unknown parameter "printing"
Unknown parameter encountered: "printcap name"
Ignoring unknown parameter "printcap name"
Unknown parameter encountered: "syslog"
Ignoring unknown parameter "syslog"
Unknown parameter encountered: "syslog only"
Ignoring unknown parameter "syslog only"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "write list"
Ignoring unknown parameter "write list"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "force user"
Ignoring unknown parameter "force user"
Unknown parameter encountered: "force group"
Ignoring unknown parameter "force group"
Unknown parameter encountered: "valid users"
Ignoring unknown parameter "valid users"
Unknown parameter encountered: "public"
Ignoring unknown parameter "public"
Unknown parameter encountered: "writable"
Ignoring unknown parameter "writable"
ProvisioningError: guess_names: 'realm =' was not specified in supplied
/etc/samba/smb.conf. Please remove the smb.conf file and let provision
generate it
dpkg: error processing samba4 (--configure):
  subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
  samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)

Is Samba4 not working on Ubuntu 11.10? Can I restore Samba3? If so
what is best way? My files are stored on my unRAID server and
unreachable without Samba.

Revision history for this message
delance (olivier-delance) said :
#4

Could you delete file /etc/samba/smb.conf and retry.
If it fails,
   sudo apt-get synaptic
   gksudo synaptic
   # FULLY remove samba
   # reinstall samba
and check again.

Revision history for this message
Loren41 (loren41) said :
#5

I tried that and posted the result in message reply #3.

Revision history for this message
delance (olivier-delance) said :
#6

Be careful. Default removing of Samba doesn't remove configuration file to allow easier further installation. You need to perform a FULL uninstallation to remove /etc/samba/smb.conf. Did you do it ?

Revision history for this message
Loren41 (loren41) said :
#7

On 11/07/2011 04:01 PM, delance wrote:
> Your question #177652 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/177652
>
> delance posted a new comment:
> Be careful. Default removing of Samba doesn't remove configuration file
> to allow easier further installation. You need to perform a FULL
> uninstallation to remove /etc/samba/smb.conf. Did you do it ?
I used the Ubuntu Software Center Remove command. Is that what you mean
by a "default" removal? By "full" do you mean the actual deletion of
the smb.conf file? I did a search on smb.conf and have found several,
in several folders. Should they all be deleted?

>

Revision history for this message
delance (olivier-delance) said :
#8

run command
   sudo apt-get synaptic
   gksudo synaptic
and make a full uninstallation / installation.
Synaptic, contrary to Software Center, can make a full uninstallation

Revision history for this message
Loren41 (loren41) said :
#9

On 11/07/2011 05:05 PM, delance wrote:
> Your question #177652 on apt in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/apt/+question/177652
>
> Status: Open => Answered
>
> delance proposed the following answer:
> run command
> sudo apt-get synaptic
> gksudo synaptic
> and make a full uninstallation / installation.
> Synaptic, contrary to Software Center, can make a full uninstallation
>
After typing sudo apt-get synaptic, I receive the message "E: Invalid
operation synaptic"

Synaptic is installed.

Revision history for this message
Best delance (olivier-delance) said :
#10

Please use Synaptic to make a full uninstallation / installation, and report if it works.

Revision history for this message
Loren41 (loren41) said :
#11

delance,

Thanks for your perseverence. The Synaptic solution did the trick!

Loren41

Revision history for this message
Lynne Stevens (jackie40d) said :
#12

I hope it works as I am doing it on a fresh install of 11.04 on a new hard drive . . she has cats, cats like to lay on top of warm computers which cause computers to get full of cat hairs and kill hard drives. . Lucky it did not take out the CPU as the heat sink was covered with hair !