package samba 2:4.3.11+dfsg-0ubuntu0.16.04.7 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
i don't khow , same problem as always
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: samba 2:4.3.11+
ProcVersionSign
Uname: Linux 4.4.0-81-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
Date: Thu Jun 29 11:32:23 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2015-06-23 (736 days ago)
InstallationMedia: It
NmbdLog:
RelatedPackageV
dpkg 1.18.4ubuntu1.2
apt 1.2.20
SambaServerRegr
SmbConfIncluded: Yes
SmbLog:
SourcePackage: samba
Title: package samba 2:4.3.11+
UpgradeStatus: Upgraded to xenial on 2016-04-22 (432 days ago)
WindowsFailedCo
tags: | removed: need-duplicate-check |
Hi Franco,
you seem to be affected by that issue for quite a while - unfortunately some of the logs that were attached are no more covering how it started :-/.
I'll give you the summary what happened and you can decide which way you want to go:
1. what is breaking
On install/upgrade of the samba package it fails to restart the samba service
2. why is that required
When updating a service the daemons have to be restarted to pick up the change.
While doing so things can fail e.g. because the upgrade no more supports the old config, but
actually that case is very rare.
3. what is happening more likely
Most of the times these kind of issues occur if services are installed, but not properly
configured. The users might have experimented with it but eventually didn't care and left it
in a broken state so that the service isn't able to restart (e.g. broken config file)
4. Solution
4a. fix the samba config so you can properly restart the service, very very likely the upgrade
then works as well.
$ systemctl restart smbd
$ systemctl status smbd
# once goot do your upgrades
4b. if you didn't configure it, you likely don't care so you might as well just remove the
package. Of course that will stop bothering about not being able to upgrade it.
Please pick your way to resolve, if you run into troubles along that set the bug back to new.