Ubuntu /boot 文件已满

Ubuntu /boot 文件已满

我正在运行一台 Dell 1950 服务器,上面运行着 Ubuntu。我收到一条消息,说我的 /boot 文件已满。我知道我安装了许多旧版本的内核映像,占用了空间。我已经在 Ubuntu 网站上搜索解决方案。我知道我必须删除这些映像。我尝试删除它们,但我被卡住了,因为“没有足够的空间”来做任何事情。

我运行 apt-get install -f 并收到消息称存在未满足的依赖项

我尝试安装 Synaptic,但无法安装

我被困住了。有人能帮忙吗?

下面我列出了我努力的成果:

dell@ubuntu9:~$ uname -r
3.13.0-117-generic
dell@ubuntu9:~$ sudo apt-get install synaptic
[sudo] password for dell:
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-121-generic : Depends: linux-image-3.13.0-121-generic but it is not going to be installed
 linux-image-extra-3.13.0-128-generic : Depends: linux-image-3.13.0-128-generic but it is not going to be installed
 linux-image-generic : Depends: linux-image-3.13.0-128-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
dell@ubuntu9:~$ 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-100 linux-headers-3.13.0-100-generic
  linux-headers-3.13.0-107 linux-headers-3.13.0-107-generic
  linux-headers-3.13.0-111 linux-headers-3.13.0-111-generic
  linux-headers-3.13.0-112 linux-headers-3.13.0-112-generic
  linux-headers-3.13.0-115 linux-headers-3.13.0-115-generic
  linux-headers-3.13.0-119 linux-headers-3.13.0-119-generic
  linux-headers-3.13.0-121 linux-image-3.13.0-100-generic
  linux-image-3.13.0-107-generic linux-image-3.13.0-111-generic
  linux-image-3.13.0-112-generic linux-image-3.13.0-115-generic
  linux-image-3.13.0-119-generic linux-image-3.13.0-121-generic
  linux-image-extra-3.13.0-100-generic linux-image-extra-3.13.0-107-generic
  linux-image-extra-3.13.0-111-generic linux-image-extra-3.13.0-112-generic
  linux-image-extra-3.13.0-115-generic linux-image-extra-3.13.0-119-generic
  linux-image-extra-3.13.0-121-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-image-3.13.0-121-generic linux-image-3.13.0-128-generic
Suggested packages:
  fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
  linux-headers-3.13.0-121-generic
The following NEW packages will be installed:
  linux-image-3.13.0-121-generic linux-image-3.13.0-128-generic
0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded.
11 not fully installed or removed.
Need to get 0 B/30.9 MB of archives.
After this operation, 87.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 357462 files and directories currently installed.)
Preparing to unpack .../linux-image-3.13.0-128-generic_3.13.0-128.177_amd64.deb ...
Done.
Unpacking linux-image-3.13.0-128-generic (3.13.0-128.177) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-128-generic_3.13.0-128.177_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-3.13.0-128-generic' to '/boot/System.map-3.13.0-128-generic.dpkg-new': failed to wri                 te (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 (B                 roken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-128-generic /boot/vmlinuz-3.13.0-128-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-128-generic /boot/vmlinuz-3.13.0-128-generic
Preparing to unpack .../linux-image-3.13.0-121-generic_3.13.0-121.170_amd64.deb ...
Done.
Unpacking linux-image-3.13.0-121-generic (3.13.0-121.170) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-121-generic_3.13.0-121.170_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-3.13.0-121-generic' to '/boot/System.map-3.13.0-121-generic.dpkg-new': failed to wri                 te (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 (B                 roken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-121-generic /boot/vmlinuz-3.13.0-121-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-121-generic /boot/vmlinuz-3.13.0-121-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.13.0-128-generic_3.13.0-128.177_amd64.deb
 /var/cache/apt/archives/linux-image-3.13.0-121-generic_3.13.0-121.170_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
dell@ubuntu9:~$ 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-100 linux-headers-3.13.0-100-generic
  linux-headers-3.13.0-107 linux-headers-3.13.0-107-generic
  linux-headers-3.13.0-111 linux-headers-3.13.0-111-generic
  linux-headers-3.13.0-112 linux-headers-3.13.0-112-generic
  linux-headers-3.13.0-115 linux-headers-3.13.0-115-generic
  linux-headers-3.13.0-119 linux-headers-3.13.0-119-generic
  linux-headers-3.13.0-121 linux-image-3.13.0-100-generic
  linux-image-3.13.0-107-generic linux-image-3.13.0-111-generic
  linux-image-3.13.0-112-generic linux-image-3.13.0-115-generic
  linux-image-3.13.0-119-generic linux-image-3.13.0-121-generic
  linux-image-extra-3.13.0-100-generic linux-image-extra-3.13.0-107-generic
  linux-image-extra-3.13.0-111-generic linux-image-extra-3.13.0-112-generic
  linux-image-extra-3.13.0-115-generic linux-image-extra-3.13.0-119-generic
  linux-image-extra-3.13.0-121-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-image-3.13.0-121-generic linux-image-3.13.0-128-generic
Suggested packages:
  fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
  linux-headers-3.13.0-121-generic
The following NEW packages will be installed:
  linux-image-3.13.0-121-generic linux-image-3.13.0-128-generic
0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded.
11 not fully installed or removed.
Need to get 0 B/30.9 MB of archives.
After this operation, 87.3 MB of additional disk space will be used.

我现在不知道该怎么做。请提出建议,以便我可以尝试。

答案1

我使用 Ubuntu 软件中心提供的 Ubuntu Tweak 来删除旧内核和其他项目。有时自动更新会报告磁盘空间不足,因此我会在调整设置中运行“Janitor”来清理空间。

请确保在使用前备份您的文件。

相关内容