package samba 3.0.28a-1ubuntu4.5 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Bug #272812 reported by MikeT
22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libntfs-3g12
Use 'apt-get autoremove' to remove them.
Suggested packages:
  openbsd-inetd inet-superserver 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 3840kB of archives.
After this operation, 9429kB of additional disk space will be used.
Get:1 http://vn.archive.ubuntu.com hardy-updates/main samba 3.0.28a-1ubuntu4.5 [3840kB]
Fetched 3840kB in 29s (129kB/s)
Preconfiguring packages ...
Selecting previously deselected package samba.
(Reading database ... 120170 files and directories currently installed.)
Unpacking samba (from .../samba_3.0.28a-1ubuntu4.5_i386.deb) ...
Setting up samba (3.0.28a-1ubuntu4.5) ...
Generating /etc/default/samba...
tdbsam_open: Converting version 0 database to version 3.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for nobody...ok
Importing account for baithien...ok
 * Starting Samba daemons

Revision history for this message
MikeT (mikael-tuvesson) wrote :
Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 272812] [NEW] package samba 3.0.28a-1ubuntu4.5 failed to install/upgrade: subprocess post-installation script returned error exit status 1

On Sun, Sep 21, 2008 at 04:10:11PM -0000, MikeT wrote:
> Then I ran
> sudo apt-get remove samba
> sudo apt-get clean
> sudo apt-get install samba
>

>
> in the /etc/samba the files I renamed have not been recreated while a
> new file was added - smbpasswd. It was not there before.
>
> All this was done to try to reset the samba installation to a virgin
> state. I have solved the problem by renaming the backed up files back
> again.

You should use apt-get purge samba to remove the configuration files.
apt-get remove samba keeps the configuration files around and apt-get
install won't install the configuration files if the package has just
been removed rather than purged.

  status invalid

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Changed in samba:
status: New → Invalid
Revision history for this message
MikeT (mikael-tuvesson) wrote : Re: [Bug 272812] [NEW] package samba 3.0.28a-1ubuntu4.5 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Download full text (3.3 KiB)

Ohhh... well, there we go.

Thanks, missed that completely.

Mike

2008/9/22 Mathias Gug <email address hidden>

>
>
> You should use apt-get purge samba to remove the configuration files.
> apt-get remove samba keeps the configuration files around and apt-get
> install won't install the configuration files if the package has just
> been removed rather than purged.
>
> status invalid
>
> --
> Mathias Gug
> Ubuntu Developer http://www.ubuntu.com
>
>
> ** Changed in: samba (Ubuntu)
> Status: New => Invalid
>
> --
> package samba 3.0.28a-1ubuntu4.5 failed to install/upgrade: subprocess
> post-installation script returned error exit status 1
> https://bugs.launchpad.net/bugs/272812
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "samba" source package in Ubuntu: Invalid
>
> Bug description:
> Binary package hint: samba
>
> I renamed the files smb.conf and smbusers to smb.con_ and smbuse_ in the
> /etc/samba directory. I did not touch the gdbcommands file. No other file
> was in the directory.
>
> Then I ran
> sudo apt-get remove samba
> sudo apt-get clean
> sudo apt-get install samba
>
> at the install, the following occurred:
>
> [from screen]
>
> The following packages were automatically installed and are no longer
> required:
> python-zopeinterface python-twisted-core python-libuser python-pygame
> python-pyogg python-pyvorbis python-editobj libsdl-ttf2.0-0
> python-cerealizer libuser1 libcal3d12 python-soya python-tofu
> libsdl-mixer1.2 libode0debian1 simgear0 plib1.8.4c2 python-twisted-bin
> libsdl-image1.2
> Use 'apt-get autoremove' to remove them.
> Suggested packages:
> openbsd-inetd inet-superserver 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 3840kB of archives.
> After this operation, 9429kB of additional disk space will be used.
> Get:1 http://es.archive.ubuntu.com hardy-updates/main samba
> 3.0.28a-1ubuntu4.5 [3840kB]
> Fetched 3840kB in 1min7s (56.8kB/s)
> Preconfiguring packages ...
> Selecting previously deselected package samba.
> (Reading database ... 133205 files and directories currently installed.)
> Unpacking samba (from .../samba_3.0.28a-1ubuntu4.5_i386.deb) ...
> Setting up samba (3.0.28a-1ubuntu4.5) ...
> * 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
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> [end screen]
>
> in the /etc/samba the files I renamed have not been recreated while a new
> file was added - smbpasswd. It was not there before.
>
> All this was done to try to reset the samba installation to a virgin state.
> I have solved the problem by renaming the backed up files back again.
>
> regards
> Mike
>
> ProblemType: Package
> Architecture: i386
> Date: Sun Sep 21 17:57:13 2008
> DistroRelease: Ubuntu 8.04
> ErrorMessage: subprocess post-installation script returned error exit
> status 1
> Package: samba 3.0.28a-1ubuntu4.5
> PackageArchitecture: i386
> SourcePackage: samba
> T...

Read more...

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.