相关疑难解决方法(0)

如何删除旧内核版本以清理启动菜单?

每次我安装一个新的 Linux 内核时,它都会留在 grub_config 中,每次都会使引导菜单变长。

我知道我可以手动搜索已安装的软件包并删除它们。

Ubuntu 是否提供了更简单的方法来清理它们或防止它们显示在引导列表中?

cleanup grub2 kernel

735
推荐指数
17
解决办法
115万
查看次数

清理 /boot 分区最安全的方法是什么?

我为该/boot分区分配了 200 MB 。每当我尝试更新内核时,我都会收到一条错误消息,指出基本上/boot已满。

我可以做些什么来清理/boot和删除/备份旧内核?

kernel boot-partition

302
推荐指数
5
解决办法
42万
查看次数

我的 /boot 分区达到 100%,现在我无法升级。无法移除旧内核以腾出空间

我的第一个问题是当我尝试apt-get updateapt-get upgrade. 升级时出现以下错误:

You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not installed
E: Unmet dependencies. Try using -f.
Run Code Online (Sandbox Code Playgroud)

我尝试运行 apt-get install -f ,这是输出(在提示上说是后)

(Reading database ... 186183 files and directories currently installed.)
Unpacking linux-image-3.2.0-27-generic (from .../linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb) ...
Done.
dpkg: error processing /var/cache/apt/archives/linux-image-3.2.0-27-generic_3.2.0-27.43_amd64.deb (--unpack):
 failed in write on buffer copy for backend dpkg-deb during `./boot/System.map-3.2.0-27-generic': No space left on …
Run Code Online (Sandbox Code Playgroud)

upgrade apt partitioning

163
推荐指数
4
解决办法
19万
查看次数

未满足的依赖项:linux-generic

今天我去找我奶奶,因为她的电脑有一些问题,运行着 Xubuntu 12.04LTS。解决“问题”后(Firefox 设置为全屏……)我照常运行apt-get update && apt-get dist-upgrade以立即更新所有内容。相反,我遇到了一些未正确安装的软件包的错误。所以我跑了dpkg --configure -a。我的猜测是,因为 Firefox 是全屏的,她不知道如何关闭她的计算机,只是简单地关闭了它,可能正是在它安装自动安全更新的时候。dpkg --configure -a然而,运行只给我留下了关于未满足的依赖项的错误消息linux-genericapt-get dist-upgrade再次运行时,它告诉我同样的情况,我应该尝试该-f选项。但是,即使在尝试强制升级时,它仍然不会安装它们。

这是命令的输出(添加 LANG=C 因为默认语言是荷兰语)。

jeroen@Bomma:/home/bomma$ LANG=C sudo apt-get dist-upgrade
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-generic : Depends: linux-image-generic (= 3.2.0.37.45) but 3.2.0.38.46 is installed
                 Depends: linux-headers-generic (= 3.2.0.37.45) but 3.2.0.38.46 is …
Run Code Online (Sandbox Code Playgroud)

apt dpkg

7
推荐指数
1
解决办法
1万
查看次数

无法从完整启动磁盘中删除旧内核

我无法在我的计算机上安装或更新任何软件。

\n\n

利用我令人难以置信的推理能力,我推断出 /boot 已满并引起了我的心痛。

\n\n

notlinus@NS0:/boot$df -h

\n\n
Filesystem                Size  Used Avail Use% Mounted on\nudev                      2.0G  4.0K  2.0G   1% /dev\ntmpfs                     396M  656K  395M   1% /run\n/dev/mapper/NS0--vg-root   36G  3.6G   30G  11% /\nnone                      4.0K     0  4.0K   0% /sys/fs/cgroup\nnone                      5.0M     0  5.0M   0% /run/lock\nnone                      2.0G     0  2.0G   0% /run/shm\nnone                      100M     0  100M   0% /run/user\n/dev/sda1                 236M  234M     0 100% /boot\n
Run Code Online (Sandbox Code Playgroud)\n\n

notlinus@NS0:/boot$ls -l

\n\n
total 229780\n-rw-r--r-- 1 root root  1270654 Aug 12  2015 abi-3.19.0-26-generic\n-rw-r--r-- 1 root root  1271100 Sep  1  2015 abi-3.19.0-28-generic\n-rw-r--r-- …
Run Code Online (Sandbox Code Playgroud)

package-management apt boot kernel disk-usage

5
推荐指数
1
解决办法
3306
查看次数