How to fix the problem when the disk is full while running apt-get?
Michael D. Wood
mike at itsecuritypros.org
Mon May 25 14:04:27 UTC 2015
Might want to do a little googling. Tons of people have ran into this issue before.
Sent from my iPhone
> On May 25, 2015, at 9:52 AM, Peng Yu <pengyu.ut at gmail.com> wrote:
>
> Hi, My disk is full. So I get the following error message.
>
> $ sudo apt-get -f install
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Correcting dependencies... Done
> The following packages were automatically installed and are no longer required:
> linux-headers-3.13.0-27 linux-headers-3.13.0-27-generic
> linux-headers-3.13.0-29 linux-headers-3.13.0-29-generic
> linux-headers-3.13.0-30 linux-headers-3.13.0-30-generic
> linux-headers-3.13.0-32 linux-headers-3.13.0-32-generic
> linux-headers-3.13.0-34 linux-image-3.11.0-20-generic
> linux-image-3.13.0-27-generic linux-image-3.13.0-29-generic
> linux-image-3.13.0-30-generic linux-image-3.13.0-32-generic
> linux-image-3.13.0-34-generic linux-image-extra-3.11.0-20-generic
> linux-image-extra-3.13.0-27-generic linux-image-extra-3.13.0-29-generic
> linux-image-extra-3.13.0-30-generic linux-image-extra-3.13.0-32-generic
> linux-image-extra-3.13.0-34-generic
> Use 'apt-get autoremove' to remove them.
> The following extra packages will be installed:
> linux-headers-3.13.0-53 linux-headers-3.13.0-53-generic
> The following NEW packages will be installed:
> linux-headers-3.13.0-53 linux-headers-3.13.0-53-generic
> 0 upgraded, 2 newly installed, 0 to remove and 159 not upgraded.
> 8 not fully installed or removed.
> Need to get 0 B/9,575 kB of archives.
> After this operation, 76.8 MB of additional disk space will be used.
> Do you want to continue? [Y/n] Y
> (Reading database ... 233862 files and directories currently installed.)
> Preparing to unpack .../linux-headers-3.13.0-53_3.13.0-53.89_all.deb ...
> Unpacking linux-headers-3.13.0-53 (3.13.0-53.89) ...
> dpkg: error processing archive
> /var/cache/apt/archives/linux-headers-3.13.0-53_3.13.0-53.89_all.deb
> (--unpack):
> unable to create
> `/usr/src/linux-headers-3.13.0-53/arch/x86/include/asm/unaligned.h.dpkg-new'
> (while processing
> `./usr/src/linux-headers-3.13.0-53/arch/x86/include/asm/unaligned.h'):
> No space left on device
> No apport report written because the error message indicates a disk full error
>
> dpkg-deb: error: subprocess paste was killed by signal (Broken
> pipe)
> Preparing to unpack
> .../linux-headers-3.13.0-53-generic_3.13.0-53.89_amd64.deb ...
> Unpacking linux-headers-3.13.0-53-generic (3.13.0-53.89) ...
> dpkg: error processing archive
> /var/cache/apt/archives/linux-headers-3.13.0-53-generic_3.13.0-53.89_amd64.deb
> (--unpack):
> unable to create
> `/usr/src/linux-headers-3.13.0-53-generic/include/config/sched/mc.h.dpkg-new'
> (while processing
> `./usr/src/linux-headers-3.13.0-53-generic/include/config/sched/mc.h'):
> No space left on device
> No apport report written because the error message indicates a disk full error
>
> dpkg-deb: error: subprocess paste was killed by signal (Broken
> pipe)
> Errors were encountered while processing:
> /var/cache/apt/archives/linux-headers-3.13.0-53_3.13.0-53.89_all.deb
> /var/cache/apt/archives/linux-headers-3.13.0-53-generic_3.13.0-53.89_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> But when I try to run autoremove, it asks me to run apt-get -f
> install. How to fix this problem?
>
> $ sudo apt-get autoremove
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> You might want to run 'apt-get -f install' to correct these.
> The following packages have unmet dependencies:
> linux-headers-generic : Depends: linux-headers-3.13.0-53-generic but
> it is not installed
> E: Unmet dependencies. Try using -f.
> --
> Regards,
> Peng
>
> --
> ubuntu-server mailing list
> ubuntu-server at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> More info: https://wiki.ubuntu.com/ServerTeam
More information about the ubuntu-server
mailing list