nmbd fails to start if smb.conf is missing due to testparm failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| samba (Debian) |
New
|
Undecided
|
Unassigned | |
| samba (Ubuntu) |
Medium
|
Unassigned |
Bug Description
While upgrading my release unsing the update manager, I saw some error messages and I was redirected to this tools automtically.
$ lsb_release -rd
Description: Ubuntu 10.04.3 LTS
Release: 10.04
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: samba-common 2:3.4.7~
ProcVersionSign
Uname: Linux 2.6.32-33-generic x86_64
Architecture: amd64
Date: Wed Aug 3 21:02:14 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.1)
PackageArchitec
SambaServerRegr
SourcePackage: samba
Title: package samba-common 2:3.4.7~
Emmanuel Clerc (em-clerc) wrote : | #1 |
Emmanuel Clerc (em-clerc) wrote : | #2 |
Ursula Junque (ursinha) wrote : | #3 |
From log:
Setting up samba-common (2:3.4.
Not replacing deleted config file /etc/samba/smb.conf
Install/upgrade will fail. To recover, please try:
sudo cp /usr/share/
sudo dpkg --configure -a
dpkg: error processing samba-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libwbclient0 (2:3.4.
Ursula Junque (ursinha) wrote : | #4 |
Hi Emmanuel!
First of all, thanks for your time reporting this bug.
Have you tried what the error message suggests? That would be:
$ sudo cp /usr/share/
$ sudo dpkg --configure -a
It seems the error is because the file is missing, as you said before. In this case it would be a local issue, not a package one. Can you confirm that please by trying to run the above commands?
Thanks!
Changed in samba (Ubuntu): | |
status: | New → Incomplete |
importance: | Undecided → Medium |
Emmanuel Clerc (em-clerc) wrote : | #5 |
Hi Ursula,
here is the output of the requested commands.
The configuration seems successful.
$ sudo cp /usr/share/
[sudo] password for eclerc:
$ sudo dpkg --configure -a
Setting up samba-common (2:3.4.
Setting up smbclient (2:3.4.
Setting up samba-common-bin (2:3.4.
Setting up samba (2:3.4.
smbd start/running, process 2974
nmbd start/running, process 2983
Changed in samba (Debian): | |
status: | Unknown → Confirmed |
summary: |
- package samba-common 2:3.4.7~dfsg-1ubuntu3.7 failed to install/upgrade: - subprocess installed post-installation script returned error exit status - 1 + nmbd fails to start if smb.conf is missing due to testparm failure |
Changed in samba (Ubuntu): | |
status: | Incomplete → Triaged |
Changed in samba (Debian): | |
importance: | Unknown → Undecided |
status: | Confirmed → New |
A few weeks ago, I configured a samba server to get files from a windows platform.
As I don't need it any more, I stopped samba and I renamed the /etc/samba/smb.conf to /etc/samba/ smb-localnet. conf
Maybe the package was disturbed by this de-activated configuration...