我似乎在启动时有足够的空间。我有整个磁盘加密。
第一的:
$ sudo apt-get install
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-image-extra-3.13.0-67-generic : Depends: linux-image-3.13.0-67-generic but it is not installed
linux-image-generic : Depends: linux-image-3.13.0-67-generic but it is not installed
E: Unmet dependencies. Try using -f.
然后:
$ 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:
bbswitch-dkms dkms fonts-dejavu fonts-dejavu-extra lib32gcc1 libc6-i386
libcuda1-331 libvdpau1 linux-headers-3.13.0-32
linux-headers-3.13.0-32-generic linux-headers-3.13.0-37
linux-headers-3.13.0-37-generic linux-headers-3.13.0-40
linux-headers-3.13.0-40-generic linux-image-3.13.0-32-generic
linux-image-3.13.0-37-generic linux-image-3.13.0-40-generic
linux-image-extra-3.13.0-32-generic linux-image-extra-3.13.0-37-generic
linux-image-extra-3.13.0-40-generic linux-image-generic nvidia-prime
nvidia-settings screen-resolution-extra ttf-dejavu ttf-dejavu-core
ttf-dejavu-extra
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-image-3.13.0-67-generic
Suggested packages:
fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed:
linux-image-3.13.0-67-generic
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/15.2 MB of archives.
After this operation, 42.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 650322 files and directories currently installed.)
Preparing to unpack .../linux-image-3.13.0-67-generic_3.13.0-67.110_amd64.deb ...
Done.
Unpacking linux-image-3.13.0-67-generic (3.13.0-67.110) ...
No apport report written because the error message indicates a disk full error
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-67-generic_3.13.0-67.110_amd64.deb (--unpack):
unable to create `/boot/config-3.13.0-67-generic.dpkg-new' (while processing `./boot/config-3.13.0-67-generic'): No space left on device
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.13.0-67-generic /boot/vmlinuz-3.13.0-67-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-67-generic /boot/vmlinuz-3.13.0-67-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.13.0-67-generic_3.13.0-67.110_amd64.deb
[ Rootkit Hunter version 1.4.0 ]
File updated: searched for 168 files, found 137
E: Sub-process /usr/bin/dpkg returned an error code (1)
nate@saturn:~$
系统监视器图片显示磁盘空间:
答案1
在unix文件系统中,文件和目录都有两部分:inode和数据。
inode 中存储了有关文件的信息,例如权限、所有者、更改时间、访问时间等。
总的 inode 数量是有限的,因此,即使磁盘不是很满,如果达到此限制,设备上也将没有剩余空间。
使用:
DF-我
查看 inode,如果 IUse 为 100%,而 IFree 为 0,则表示您有很多小文件。
例如,如果您有 20 亿个大小为 1 字节的文件,您可能会达到 inode 限制,但您的磁盘可能并未完全填满。
如果是这种情况,请尝试删除更多文件,然后重新执行 apt-get 更新。