You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 14.04无法更新,执行apt-get -f install提示设备无剩余空间

Fixing Ubuntu 14.04 Update Issues Caused by a Full /boot Partition

Hey there, let's get this sorted out—your /boot partition being 84% full is almost definitely why your software updater is crashing and you're hitting dependency errors with apt-get -f install. Old kernel packages are the usual culprit here, taking up space that new updates need. Here's how to fix it:

Step 1: List all installed kernel packages

First, let's see which kernels are taking up space. Run this in the terminal:

dpkg --list | grep linux-image

You'll see a list of packages like linux-image-3.13.0-XXX-generic. The ones marked ii are fully installed, and rc are leftover config files we can clean up later.

Step 2: Check your currently running kernel

Never delete the kernel you're currently using—that could leave your system unbootable! To find out which kernel you're running right now:

uname -r

Note down this version number (e.g., 3.13.0-170-generic)—we'll skip this one when deleting old kernels.

Step 3: Remove old, unused kernels

Now we can safely delete the kernels you're not actively using. You can either delete them one by one (replace <version> with the kernel number from Step 1):

sudo apt-get purge linux-image-<version>-generic

Or use a single command to batch remove all non-running kernels automatically:

sudo apt-get purge $(dpkg --list | grep -E '^ii linux-image-[0-9]' | grep -v $(uname -r) | awk '{print $2}')

When prompted, type Y and press Enter to confirm the deletion.

Step 4: Clean up leftover files

Next, remove any leftover unused dependencies and cached package files to free up even more space in /boot and elsewhere:

sudo apt-get autoremove
sudo apt-get clean

Step 5: Resolve the dependency errors

Now that we've freed up enough space in /boot, run the command that was failing before to fix the unmet dependencies:

sudo apt-get -f install

This should now complete without errors, since there's finally space to install any required packages.

A quick heads-up

Ubuntu 14.04 LTS reached its end-of-life in April 2019, so official security updates and support are no longer available. If you plan to keep using this system long-term, it's a good idea to upgrade to a supported Ubuntu version. But for now, this fix should get your software updater working again.

内容的提问来源于stack exchange,提问作者Andrei

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 08:42:36