LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-02-2016, 11:19 AM   #1
amirgol
Member
 
Registered: Apr 2011
Posts: 35

Rep: Reputation: 0
Question nmbd won't start after Samba minor ver upgrade


Hello there.

I've upgraded Samba yesterday and something went wrong, but I'm unable to figure out what - it's hard being a newbie!

Code:
root@Server:~# aptitude upgrade
The following partially installed packages will be configured:
  samba 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up samba (2:4.2.10+dfsg-0+deb8u2) ...
Starting SMB/CIFS daemon: smbd.
Starting NetBIOS name server: nmbd failed!
invoke-rc.d: initscript nmbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed 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)
Failed to perform requested operation on package.  Trying to recover:
Setting up samba (2:4.2.10+dfsg-0+deb8u2) ...
Starting SMB/CIFS daemon: smbd.
Starting NetBIOS name server: nmbd failed!
invoke-rc.d: initscript nmbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 samba
Here's what was upgraded:

Code:
[UPGRADE] samba:amd64 2:4.1.17+dfsg-2+deb8u2 -> 2:4.2.10+dfsg-0+deb8u2
[UPGRADE] samba-common:amd64 2:4.1.17+dfsg-2+deb8u2 -> 2:4.2.10+dfsg-0+deb8u2
[UPGRADE] samba-common-bin:amd64 2:4.1.17+dfsg-2+deb8u2 -> 2:4.2.10+dfsg-0+deb8u2
[UPGRADE] samba-dsdb-modules:amd64 2:4.1.17+dfsg-2+deb8u2 -> 2:4.2.10+dfsg-0+deb8u2
[UPGRADE] samba-libs:amd64 2:4.1.17+dfsg-2+deb8u2 -> 2:4.2.10+dfsg-0+deb8u2
I can't find anything useful in the logs. /var/log/apt/term.log :

Code:
Log started: 2016-05-02  18:49:54
Setting up samba (2:4.2.10+dfsg-0+deb8u2) ...
Starting SMB/CIFS daemon: smbd.
Starting NetBIOS name server: nmbd failed!
invoke-rc.d: initscript nmbd, action "start" failed.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 samba
Log ended: 2016-05-02  18:49:55
/var/log/apt/history.log :

Code:
Start-Date: 2016-05-02  18:49:54
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-02  18:49:55
/var/log/samba/log.nmbd :

Code:
[2016/05/02 18:49:56,  0] ../source3/nmbd/nmbd.c:908(main)
  nmbd version 4.2.10-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
/var/log/dpkg.log :

Code:
2016-05-02 18:49:56 startup packages configure
2016-05-02 18:49:56 configure samba:amd64 2:4.2.10+dfsg-0+deb8u2 <none>
2016-05-02 18:49:56 status half-configured samba:amd64 2:4.2.10+dfsg-0+deb8u2
I tried :

Code:
root@Server:~# dpkg-reconfigure samba
/usr/sbin/dpkg-reconfigure: samba is broken or not fully installed
smbd, on the other hand, works fine.

After some Googling, I discovered that mounting /tmp with the noexec option could cause some packages to fail installation. Well, I've set noexec on /tmp some time ago, could that be the cause?

I tried changing APT::ExtractTemplates::TempDir to /var/tmp, which is not mounted with noexec, but there was no change. I've remounted /tmp with the exec option, but still got the same error. So either that's not the issue or I'm missing something here.

Any ideas?

Code:
root@Server:~# uname -a 
Linux Server 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux
root@Server:~# cat /etc/issue
Debian GNU/Linux 8 \n \l
 
Old 05-03-2016, 04:16 PM   #2
amirgol
Member
 
Registered: Apr 2011
Posts: 35

Original Poster
Rep: Reputation: 0
OK, it's an AppArmor issue. Not sure what exactly, as aa-logprof finds nothing wrong with the profiles, but I've switched nmdb state from enfore to complain and now it works properly.
 
  


Reply

Tags
aptitude, samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
when i try to start samba pdc's smb service nmbd failed to start . sandeepchau123 Linux - Newbie 2 10-20-2007 01:59 PM
nmbd won't start automatically octino Linux - Newbie 8 02-01-2005 12:31 PM
nmbd daemon won't start! Pedal2Metal Linux - Newbie 5 10-23-2004 05:59 AM
nmbd won't start fostiator Linux - Networking 2 10-05-2004 07:21 AM
cant start nmbd in SWAT or Samba jack cards Linux - Networking 5 08-08-2003 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration