我对一台服务器有问题。一段时间前,有一个可靠的安装,然后我升级到异种。问题是,看起来他不想要更新的内核;)
% uname -a
Linux 36猴子3.11.0-12-泛型#19-Ubuntu 10月9日16:12:00 UTC 2013 i686 GNU/Linux
嗯,3.11?但是为什么呢?
% apt list --installed|grep linux
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
console-setup-linux/xenial-update
我有一个运行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
我正在开发中断代码。当我包括#include <linux/interrupt.h>的时候,我得到
fatal error : linux/interrupt.h no such file or directory
为什么我要得到这个错误,我如何解决这个错误?
相反,当我包含该头文件时,我会再得到一个错误。最后,我将得到linux/编译器.h错误。
但是所有这些文件都存在于/usr/src/linux-headers-4.4.0-151/include/linux/中
你能帮我找到解决这个问题的办法吗?
问:我今天早上想在我的服务器上做dist升级.
我得到的是:
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-image-extra-3.5.0-32-generi
我刚跑了:
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
在Ubuntu20.04上运行时,在试图更新时出现了/boot错误消息上的低磁盘空间。
The upgrade needs a total of 228 M free space on disk '/boot'. Please free at least an additional 24,8 M of disk space on '/boot'.
在我的/boot文件夹中,我有以下文件:
/boot
total 460452
drwx------ 3 root root 4096 Jan 1 1970 efi
-rw-r--r-- 1 root r
下面是在我的机器上运行的所有linux内核。我试图使debian基地安装尽可能轻。我正在运行的内核是LinuxImage-2.6.30-vortex86mx-APM。我想知道是否可以安全地使用apt-get remove kernel-image-xxxxxx删除所有其他的
||/ Name Version Description
+++-==================================-============================-======
我有一台root的openvz机器,它是我ssh到的一个虚拟机:
>uname -a
Linux molo 2.6.32-042stab084.25 #1 SMP Wed Feb 12 16:04:42 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux
我正在尝试构建一个hello world内核模块:
hello.c:
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for KE
我的机器已经到了我不能apt-get任何东西的状态。
当我运行apt-get 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-headers-generic-lts-xenial : Depends: li