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

Bug #326936 reported by BigGeoff
6
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: samba

Ver 8.04
samba as per summary
pretty much failed as per summary, tried to re-install samba after I lost all ability to see shares from anywhere on the system. Re-install failed.

ProblemType: Package
Architecture: i386
Date: Sun Feb 8 17:55:10 2009
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: samba 3.0.28a-1ubuntu4.7
PackageArchitecture: i386
SourcePackage: samba
Title: package samba 3.0.28a-1ubuntu4.7 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.24-23-generic i686

Revision history for this message
BigGeoff (geoff-lynes) wrote :
Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like the Samba daemon couldn't start. Could you post the relevant lines from /var/log/syslog or /var/log/samba/* ?

Changed in samba:
status: New → Incomplete
Revision history for this message
BigGeoff (geoff-lynes) wrote :

Sorry - I don't think this is a bug after all. I had deleted the entire /etc/samba folder thinking that a re-install would recreate it but it obviously doesn't. It appears to be falling over when it tries to open the config file. Sorry for being such an idiot but could you tell me how recreate that folder contents?

Revision history for this message
Thierry Carrez (ttx) wrote :

Maybe:
$ sudo apt-get purge samba samba-common
$ sudo apt-get install samba
(untested, ywwv)

Changed in samba:
status: Incomplete → Invalid
Revision history for this message
csmgj (csmgj) wrote :

I tried the above commands and got:
user@marty-laptop:~$ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.24-19-generic linux-headers-2.6.24-19
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 28 not upgraded.
2 not fully installed or removed.
Need to get 0B/3840kB of archives.
After this operation, 9429kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 116943 files and directories currently installed.)
Unpacking samba (from .../samba_3.0.28a-1ubuntu4.7_i386.deb) ...
dpkg-deb: subprocess paste killed by signal (Broken pipe)
dpkg: error processing /var/cache/apt/archives/samba_3.0.28a-1ubuntu4.7_i386.deb (--unpack):
 short read in buffer_copy (backend dpkg-deb during `./usr/bin/smbcontrol')
Errors were encountered while processing:
 /var/cache/apt/archives/samba_3.0.28a-1ubuntu4.7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm a newby to Linux. Now even my Add/Remove program won't work. Says failed to check for installed programs. Not sure if it's related. But all this went down after I attempted to install Samba.

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.