我已经看到这个页面以及 ubuntu 论坛本身有很多类似的问题,但是没有任何解决方案可以帮助我,所以我也会在这里尝试:
一般问题是我的启动已满,而这一切都是因为我想更新我的 Skype(4.2。它不想连接)以及安装操作系统的最新更新而开始的。
太空情况如下:
daniel@daniel-SVS1512Z9EB:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-root 909G 803G 61G 93% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 3,9G 4,0K 3,9G 1% /dev
tmpfs 787M 1,2M 786M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 3,9G 1,2M 3,9G 1% /run/shm
none 100M 36K 100M 1% /run/user
/dev/sda1 228M 226M 0 100% /boot
我读到过,228MB 通常应该足够用于 /boot 空间,而增加 /boot 空间则有点棘手。我读到的下一件事是查看我有哪些内核,如下所示:
daniel@daniel-SVS1512Z9EB:~$ ls /boot/
abi-3.11.0-13-generic config-3.8.0-19-generic initrd.img-3.8.0-32-generic
System.map-3.8.0-32-generic
abi-3.11.0-14-generic config-3.8.0-31-generic lost+found vmlinuz-3.11.0-13-generic
abi-3.11.0-15-generic config-3.8.0-32-generic memtest86+.bin vmlinuz-3.11.0-14-generic
abi-3.8.0-19-generic grub memtest86+_multiboot.bin vmlinuz-3.11.0-15-generic
abi-3.8.0-31-generic initrd.img-3.11.0-13-generic System.map-3.11.0-13-generic
vmlinuz-3.8.0-19-generic
abi-3.8.0-32-generic initrd.img-3.11.0-14-generic System.map-3.11.0-14-generic
vmlinuz-3.8.0-31-generic
config-3.11.0-13-generic initrd.img-3.11.0-15-generic System.map-3.11.0-15-generic
vmlinuz-3.8.0-32-generic
config-3.11.0-14-generic initrd.img-3.8.0-19-generic System.map-3.8.0-19-generic
config-3.11.0-15-generic initrd.img-3.8.0-31-generic System.map-3.8.0-31-generic
也:
total 224112
drwxr-xr-x 4 root root 2048 Aug 12 17:41 .
drwxr-xr-x 23 root root 4096 Aug 12 17:41 ..
-rw-r--r-- 1 root root 1006439 Okt 23 2013 abi-3.11.0-13-generic
-rw-r--r-- 1 root root 1006439 Nov 12 2013 abi-3.11.0-14-generic
-rw-r--r-- 1 root root 1006496 Dez 9 2013 abi-3.11.0-15-generic
-rw-r--r-- 1 root root 918917 Mai 1 2013 abi-3.8.0-19-generic
-rw-r--r-- 1 root root 919745 Sep 10 2013 abi-3.8.0-31-generic
-rw-r--r-- 1 root root 919745 Okt 2 2013 abi-3.8.0-32-generic
-rw-r--r-- 1 root root 163255 Okt 23 2013 config-3.11.0-13-generic
-rw-r--r-- 1 root root 163255 Nov 12 2013 config-3.11.0-14-generic
-rw-r--r-- 1 root root 163245 Dez 9 2013 config-3.11.0-15-generic
-rw-r--r-- 1 root root 154942 Mai 1 2013 config-3.8.0-19-generic
-rw-r--r-- 1 root root 154960 Sep 10 2013 config-3.8.0-31-generic
-rw-r--r-- 1 root root 154961 Okt 2 2013 config-3.8.0-32-generic
drwxr-xr-x 5 root root 1024 Jan 18 2014 grub
-rw-r--r-- 1 root root 26820066 Nov 27 2013 initrd.img-3.11.0-13-generic
-rw-r--r-- 1 root root 26825891 Dez 22 2013 initrd.img-3.11.0-14-generic
-rw-r--r-- 1 root root 27013824 Jan 18 2014 initrd.img-3.11.0-15-generic
-rw-r--r-- 1 root root 32026464 Sep 28 2013 initrd.img-3.8.0-19-generic
-rw-r--r-- 1 root root 32097611 Sep 28 2013 initrd.img-3.8.0-31-generic
-rw-r--r-- 1 root root 24683897 Okt 25 2013 initrd.img-3.8.0-32-generic
drwxr-xr-x 2 root root 12288 Sep 28 2013 lost+found
-rw-r--r-- 1 root root 176500 Jun 17 2013 memtest86+.bin
-rw-r--r-- 1 root root 178680 Jun 17 2013 memtest86+_multiboot.bin
-rw------- 1 root root 3286187 Okt 23 2013 System.map-3.11.0-13-generic
-rw------- 1 root root 3286278 Nov 12 2013 System.map-3.11.0-14-generic
-rw------- 1 root root 3293845 Dez 9 2013 System.map-3.11.0-15-generic
-rw------- 1 root root 3060094 Mai 1 2013 System.map-3.8.0-19-generic
-rw------- 1 root root 3062541 Sep 10 2013 System.map-3.8.0-31-generic
-rw------- 1 root root 3062477 Okt 2 2013 System.map-3.8.0-32-generic
-rw------- 1 root root 5600496 Okt 23 2013 vmlinuz-3.11.0-13-generic
-rw------- 1 root root 5601072 Nov 12 2013 vmlinuz-3.11.0-14-generic
-rw------- 1 root root 5631184 Dez 9 2013 vmlinuz-3.11.0-15-generic
-rw------- 1 root root 5356528 Mai 1 2013 vmlinuz-3.8.0-19-generic
-rw------- 1 root root 5362320 Sep 10 2013 vmlinuz-3.8.0-31-generic
-rw------- 1 root root 5363184 Okt 2 2013 vmlinuz-3.8.0-32-generic
在其他线程中,他们继续建议删除一些旧内核,例如,我正尝试使用其中一个旧内核进行测试:
daniel@daniel-SVS1512Z9EB:~$ sudo apt-get purge linux-image-3.8.0-19
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-image-3.8.0-19-generic' for regex 'linux-image-3.8.0-19'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
linux-image-extra-3.11.0-19-generic : Depends: linux-image-3.11.0-19-generic but it is not going to be installed
linux-image-extra-3.11.0-26-generic : Depends: linux-image-3.11.0-26-generic but it is not going to be installed
linux-image-extra-3.8.0-19-generic : Depends: linux-image-3.8.0-19-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-3.11.0-26-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
如果我尝试运行,apt-get-f install
我会得到以下结果:
daniel@daniel-SVS1512Z9EB:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
openjdk-7-jre-lib
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
linux-image-3.11.0-19-generic linux-image-3.11.0-26-generic
Suggested packages:
fdutils linux-doc-3.11.0 linux-source-3.11.0 linux-tools
The following NEW packages will be installed:
linux-image-3.11.0-19-generic linux-image-3.11.0-26-generic
0 upgraded, 2 newly installed, 0 to remove and 272 not upgraded.
5 not fully installed or removed.
Need to get 0 B/28,9 MB of archives.
After this operation, 79,8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 428373 files and directories currently installed.)
Unpacking linux-image-3.11.0-26-generic (from .../linux-image-3.11.0-26-generic_3.11.0-26.45_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.11.0-26-generic_3.11.0-26.45_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-3.11.0-26-generic' to '/boot/System.map-3.11.0-26-generic.dpkg-new': failed to write (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.11.0-26-generic /boot/vmlinuz-3.11.0-26-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-26-generic /boot/vmlinuz-3.11.0-26-generic
Unpacking linux-image-3.11.0-19-generic (from .../linux-image-3.11.0-19-generic_3.11.0-19.33_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.11.0-19-generic_3.11.0-19.33_amd64.deb (--unpack):
cannot copy extracted data for './boot/System.map-3.11.0-19-generic' to '/boot/System.map-3.11.0-19-generic.dpkg-new': failed to write (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.11.0-19-generic /boot/vmlinuz-3.11.0-19-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.11.0-19-generic /boot/vmlinuz-3.11.0-19-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-3.11.0-26-generic_3.11.0-26.45_amd64.deb
/var/cache/apt/archives/linux-image-3.11.0-19-generic_3.11.0-19.33_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
这里也说没有剩余空间。
在这种情况下,您有什么解决方案可以让我真正释放 /boot 上的一些空间吗?很抱歉说了这么久,但我只是认为提供更多信息并完成任务比提供更少信息更好。提前谢谢您!
答案1
答案2
当空间不足时,我只需删除所有通用文件的最旧版本,即,如果 N 是文件名中“通用”前面的数字:
sudo rm *N-generic
您可以对最小的数字执行此操作,直到获得足够的空间。只需小心使用该命令并确保使用正确的数字即可。