package samba-common 2:3.4.0-3ubuntu5.3 failed to install/upgrade: subprocess dpkg-deb --control returned error exit status 2

Bug #519904 reported by sampod
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: samba

Failed during normal upgrade process.

Aptitude gives following output:
---
nnn@nnn:~$ sudo aptitude upgrade
[sudo] password for nnn:
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be upgraded:
  libsmbclient samba-common winbind
3 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/6,417kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
E: Invalid archive signature
E: Prior errors apply to /var/cache/apt/archives/libsmbclient_2%3a3.4.0-3ubuntu5.4_i386.deb
E: Invalid archive signature
E: Prior errors apply to /var/cache/apt/archives/winbind_2%3a3.4.0-3ubuntu5.4_i386.deb
E: Invalid archive signature
E: Prior errors apply to /var/cache/apt/archives/samba-common_2%3a3.4.0-3ubuntu5.4_all.deb
debconf: apt-extracttemplates failed: Bad file descriptor
dpkg-deb: `/var/cache/apt/archives/libsmbclient_2%3a3.4.0-3ubuntu5.4_i386.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/libsmbclient_2%3a3.4.0-3ubuntu5.4_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: `/var/cache/apt/archives/winbind_2%3a3.4.0-3ubuntu5.4_i386.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/winbind_2%3a3.4.0-3ubuntu5.4_i386.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
dpkg-deb: `/var/cache/apt/archives/samba-common_2%3a3.4.0-3ubuntu5.4_all.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/samba-common_2%3a3.4.0-3ubuntu5.4_all.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libsmbclient_2%3a3.4.0-3ubuntu5.4_i386.deb
 /var/cache/apt/archives/winbind_2%3a3.4.0-3ubuntu5.4_i386.deb
 /var/cache/apt/archives/samba-common_2%3a3.4.0-3ubuntu5.4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
---

ProblemType: Package
Architecture: i386
Date: Wed Feb 10 17:47:39 2010
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess dpkg-deb --control returned error exit status 2
Package: samba-common 2:3.4.0-3ubuntu5.3
PackageArchitecture: all
ProcVersionSignature: Ubuntu 2.6.31-19.56-generic
SourcePackage: samba
Tags: ubuntu-unr
Title: package samba-common 2:3.4.0-3ubuntu5.3 failed to install/upgrade: subprocess dpkg-deb --control returned error exit status 2
Uname: Linux 2.6.31-19-generic i686

Revision history for this message
sampod (samih) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that there was an error caused by a corrupted archive. Please execute the following commands, as it will clear your package cache, in a terminal ( Applications -> Accessories -> Terminal ) :

sudo apt-get clean
sudo apt-get update

Then try performing the update again. This will likely resolve your issue. If so please set the bug's status to Invalid. Thanks in advance!

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
sampod (samih) wrote :

Thanks. This solved the problem.

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

I have this issue, and nothing has solved it, including this suggestion.

Revision history for this message
psytrox (psytrox) wrote :

Sorry, mine is not exactly the same. Here is the output:

laptop:~$ sudo apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  openbsd-inetd inet-superserver ldb-tools
The following NEW packages will be installed:
  samba
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/6,241kB of archives.
After this operation, 17.1MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package samba.
(Reading database ... 50%
dpkg: warning: files list file for package `samba-common' missing, assuming package has no files currently installed.
(Reading database ... 75%
dpkg: warning: files list file for package `samba-common-bin' missing, assuming package has no files currently installed.
(Reading database ... 146874 files and directories currently installed.)
Unpacking samba (from .../samba_2%3a3.4.0-3ubuntu5.4_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Processing triggers for ureadahead ...
Setting up samba (2:3.4.0-3ubuntu5.4) ...
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
dpkg: error processing samba (--configure):
 subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

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

@psytrox: your issue is different, you have a stale lock in /var/lib/dpkg/lock, preventing you to run any install.

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.