我有一个运行ubuntu自动安全更新的服务器,/boot现在几乎已经满了(93%)。下面是dpkg -l "linux-image*“的输出。
ii linux-image-3.2.0-24-generic 3.2.0-24.39 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-36-generic 3.2.0-36.57
例如,以下命令生成generic、server和virtual。
$ apt-cache search linux-image-3
linux-image-3.0.0-15-generic - Linux kernel image for version 3.0.0 on x86/x86_64
linux-image-3.0.0-15-server - Linux kernel image for version 3.0.0 on x86_64
linux-image-3.0.0-15-virtual - Linux kernel image for version 3.0.0 on x86
我愚蠢地把引导放在它自己的228米空间分区中,现在当我试图进行升级时,它总是告诉我它没有空间。
我试图删除旧包,但仍然没有足够的空间。
有没有一种方法可以摆脱这个/boot分区,并将它与根结合起来?
或者增加它的大小?
这是一个远程服务器,我只有命令行访问权限。
谢谢
更新:
dpkg -l | grep linux-image
ii linux-image-3.2.0-23-generic 3.2.0-23.36 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
我收到一条错误消息:“卷boot只剩下5.3MB的磁盘空间。”
我在这个站点上查看了一些答案,我找到的关闭的答案提到了旧的linux内核,但是下面是我所有内核的列表。
ii linux-image-3.5.0-17-generic 3.5.0-17.28 i386 Linux kernel image for version 3.5.0 on 32 bit x86 SMP
ii linux-image-3.5.0-18-generic 3.5.0-18.29 i386 Linux kernel image for versio
我运行的是Linux22.04LTS,我对LinuxKernel方面还很陌生。我想尝试一下low-latency内核,在挖掘的时候,我注意到我已经安装了几个版本。
dpkg --list | grep linux-image
返回:
rc linux-image-6.0.12-76060006-generic 6.0.12-76060006.202212290932~1674139725~22.04~ca93ccf amd64 Linux kernel image for version 6.0.12 on 64 bit x86 SMP
ii li
下面是在我的机器上运行的所有linux内核。我试图使debian基地安装尽可能轻。我正在运行的内核是LinuxImage-2.6.30-vortex86mx-APM。我想知道是否可以安全地使用apt-get remove kernel-image-xxxxxx删除所有其他的
||/ Name Version Description
+++-==================================-============================-======
我刚跑了:
sudo apt-get update && sudo apt-get dist-upgrade
这是我从第二个命令中得到的输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed
linux-headers-4.4.0-38 linux-headers-4.4.0-38-gen
我正在使用Ubuntu 14.04。当我运行sudo apt-get autoremove时,它会生成以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space
我把Ubuntu15.10升级到16.04,肯定出了问题。
我第一次意识到我的麻烦时,我想做sudo iptables -A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT。我看到了:
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.2.0-25-generic/modules.dep.bin'
modprobe: FATAL: Module ip_tab
有7 7Gb可用空间,但...
~ # dpkg --configure -a
Setting up linux-image-2.6.32-31-generic-pae (2.6.32-31.61) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-31-generic-pae
gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.32-31-generic-pae
Faile
我试图在Ubuntu14.04上安装3.16内核。我按照http://askubuntu.com/questions/506956/how-can-i-install-3-16-kernel-on-ubuntu-14-04的指令安装内核。我发现了这些错误:
Setting up linux-image-3.16.0-031600-lowlatency (3.16.0-031600.201408031935) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /i
我发现我的系统上安装了三种不同的Linux映像。
usr@ubuntu2004:~$ dpkg -l | grep "linux-image*"
ii linux-image-5.13.0-20-generic 5.13.0-20.20 amd64 Signed kernel image generic
ii linux-image-5.13.0-21-generic 5.13.0-21.21 a
我有7Gb的空间但是..。
~ # dpkg --configure -a
Setting up linux-image-2.6.32-31-generic-pae (2.6.32-31.61) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-31-generic-pae
gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.32-31-generic-pae
Failed
在尝试运行下面的命令时,我看到了以下错误。我在某个地方读到我的/boot分区在磁盘空间上很低。如何增加/boot分区的大小,以便能够安装更多的软件?我有一个500 so的硬盘,所以有足够的空间来玩。
sudo apt-get install libdvdread4
gzip: stdout: No space left on device
我正在使用Ubuntu18.04并尝试使用apt卸载旧的内核映像。但是,我收到一个错误,它不能被卸载,因为标题丢失了。我如何卸载它们?下面是命令sudo apt autoremove的部分输出
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-extra-3.13.0-39-generic linux-image-extra-3.13.0-40-gen
我有两个ubuntu服务器(20.04.5)。一个是内核版本5.4.0-137-泛型,另一个是内核版本5.15.0-66-泛型.我想让他们拥有相同的内核版本(5.15.0-66-泛型)。但是,当我运行sudo apt-get install linux-image-5.15.0-66-generic命令时,会出现以下错误消息。
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-5.15.0-66-generic
E: Couldn't fi
如果运行建议的命令行,安全性如何。有窃听器吗?
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-32 linux-headers-4.15.0-32-generic
linux-headers-4.15.0-33 linux-headers-4.15.0-33-generic
linux-headers-4.15.0-34 linux-headers-4.15.0-34-generic
linux-image-4.15.0-