When you extract the package to /tmp, do a "du -sh <dir>" on the directory.  Obviously, replace <dir> with your actual directory and do not type the quotes.

Is the result bigger than what you have on /, or any other other file system?

----- Original Message -----
From: tclug at freakzilla.com
To: "TCLUG" <tclug-list at mn-linux.org>
Sent: Wednesday, November 20, 2013 2:03:26 PM
Subject: Re: [tclug-list] dpkg unable to install package

I should amend - dpkg-deb -x to /tmp will extract the files.

When I try to extract to root, I get:

tar: 
./usr/src/linux-headers-3.2.0-56-generic-pae/include/config/pppoatm.h: 
Cannot open: No space left on device
tar: ./usr/src/linux-headers-3.2.0-56-generic-pae/include/config/mouse: 
Cannot mkdir: No space left on device
tar: ./usr/src/linux-headers-3.2.0-56-generic-pae/include/config/mouse: 
Cannot mkdir: No space left on device


etc, etc. Again, / is nowhere NEAR full. I have no idea where it's trying 
to find space and not succeding.

On Wed, 20 Nov 2013, tclug at freakzilla.com wrote:

> Should've mentioned, I did a clear, and it did re-download, same issue. When 
> I try dpkg manually it does the same thing. dpkg-deb -c shows the files, 
> dpkg-deb -x does extract them but I'm not sure how to parlay that into an 
> install.
>
> On Wed, 20 Nov 2013, Michael Moore wrote:
>
>> Maybe that .deb file is corrupt?
>> 
>> If you clear out your cache, or at least delete offending .deb file does it
>> re-download it and work?
>> 
>> --
>> Michael Moore
>> 
>> 
>> 
>> On Wed, Nov 20, 2013 at 1:35 PM, <tclug at freakzilla.com> wrote:
>>       Ok, so I did an apt-get -u dist-upgrade, and it errors out with
>>       this:
>>
>>       dpkg: error 
>> processing/var/cache/apt/archives/linux-headers-3.2.0-56-generic-pae_3.2.0-56.86_i386
>>       .deb (--unpack):
>>        unable to 
>> create`/usr/src/linux-headers-3.2.0-56-generic-pae/include/config/pppoatm.h.dpkg-
>>       new' (while processing
>>       `./usr/src/linux-headers-3.2.0-56-generic-pae/include/config/pppoatm.h'):
>>       No space left on device
>>
>>       So yeah, it can't create that file because no space left on
>>       device.
>>
>>       Except there's plenty of space left on device:
>>
>>         root at tiger:/# df -h /usr/src/
>>         Filesystem      Size  Used Avail Use% Mounted on
>>         /dev/sda5       4.0G  1.8G  2.0G  47% /usr
>>
>>       In fact there's no filesystem on this machine that's even close
>>       to full. Here are the 'real' filesystems:
>>
>>         Filesystem      Size  Used Avail Use% Mounted on
>>         /dev/sda3       4.0G  1.2G  2.6G  32% /
>>         /dev/sda8       9.9G  151M  9.2G   2% /tmp
>>         /dev/sda1       504M   98M  382M  21% /boot
>>         /dev/sda7       4.0G  1.8G  2.0G  48% /home
>>         /dev/sda5       4.0G  1.8G  2.0G  47% /usr
>>         /dev/sda6       4.0G  455M  3.3G  12% /var
>>         /dev/sda9       2.0G   70M  1.9G   4% /usr/local
>>
>>       I can manually create the files it wants, too.
>>
>>       Anyone have any ideas?
>>
>>       --
>>       _______________________________________________
>>       TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
>>       tclug-list at mn-linux.org
>>       http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>> 
>> 
>> 
>> 
>> --
>> Support the digitization of the Iron County Miner newspaper archives
>> Like this project on Facebook: https://www.facebook.com/digitizeicm
>> 
>
_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
tclug-list at mn-linux.org
http://mailman.mn-linux.org/mailman/listinfo/tclug-list