当我使用该命令时apt-get -f install
,收到以下错误
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-65-generic-pae_3.2.0-65.99_i386.deb (--unpack):
failed in write on buffer copy for backend dpkg-deb during './boot/vmlinuz-3.2.0-65-generic-pae': 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)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-65-generic-pae /boot/vmlinuz-3.2.0-65-generic-pae
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-65-generic-pae /boot/vmlinuz-3.2.0-65-generic-pae
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.2.0-65-generic-pae_3.2.0-65.99_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)"
答案1
运行第二个终端CTRL++ALT或T转到第一个控制台CTRL++ALT并F1在那里输入:
du ~ -h|sort -r -n|less
在屏幕顶部,您将首先看到整个文件/home
夹和所有子文件夹中最大的文件。您可以删除一些文件并释放空间。然后继续安装apt-get install
:
-f
修复损坏的软件包-r
删除包--reinstall
不言而喻
或与apt-get purge
相同,remove
只是包被删除并清除(任何配置文件也被删除)。