[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg/apt-get error



On Thu, Feb 27, 2003 at 01:32:31AM -0700, Sean C. Burbidge wrote:
> Just today I started getting the following errors when trying to install
> packages using apt-get or dpkg:
> --------------------------------------------
> # apt-get install mcrypt
> Reading Package Lists... Done
> Building Dependency Tree... Done
> The following extra packages will be installed:
>   libmcrypt4 libmhash2
> The following NEW packages will be installed:
>   libmcrypt4 libmhash2 mcrypt
> 0 packages upgraded, 3 newly installed, 0 to remove and 19  not upgraded.
> Need to get 0B/217kB of archives. After unpacking 803kB will be used.
> Do you want to continue? [Y/n]
> rm: cannot remove directory `/var/lib/dpkg/tmp.ci': Directory not empty
> dpkg: error processing /var/cache/apt/archives/libmcrypt4_2.5.5-1_i386.deb
> (--unpack): subprocess rm cleanup returned error exit status 1
> rm: cannot remove directory `/var/lib/dpkg/tmp.ci': Directory not empty
> dpkg: error processing /var/cache/apt/archives/libmhash2_0.8.16-1_i386.deb
> (--unpack): subprocess rm cleanup returned error exit status 1
> rm: cannot remove directory `/var/lib/dpkg/tmp.ci': Directory not empty
> dpkg: error processing /var/cache/apt/archives/mcrypt_2.6.3-1_i386.deb
> (--unpack): subprocess rm cleanup returned error exit status 1
> Errors were encountered while processing:
>  /var/cache/apt/archives/libmcrypt4_2.5.5-1_i386.deb
>  /var/cache/apt/archives/libmhash2_0.8.16-1_i386.deb
>  /var/cache/apt/archives/mcrypt_2.6.3-1_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> --------------------------------------------
> 
> The problem, of course, is with the directory /var/lib/dpkg/tmp.ci.  I've
> tried everything I know to remove this directory, including using debugfs,
> and I continually get this error message when using rm -rf tm.ci:
> rm: cannot remove directory `tmp.ci': Directory not empty
> 
> The directory *is* empty, void of any files, even hidden files.  The
> versions of dpkg and apt-get that I am using are:
> dpkg: 1.9.20 (i386)
> apt-get:  apt 0.5.4 for linux i386 compiled on Aug 19 2001 01:02:26
> 
> Thanks in advance for any info.
> 
> Sean

Ouchy, that sounds like disk corruption.  Could you tar up /var/lib/,
remove it forcefully with 'rm -rf' (no idea if that would work, but it's
worth a try) and restore it?  Or maybe just move it out of the way (to
/var/lib.broken or something), and then extract your tarball?  I know
I'm not explaining this very well, but it's nearly 4am; I hope you get
the idea :)

-- 
Rob Weir <rweir@ertius.org>				http://ertius.org/

Attachment: pgpub9HLSuFNo.pgp
Description: PGP signature


Reply to: