DMIT/Ubuntu 18.04 LTS适用apt命令安装软件包缺少linux-headers-4.11.8-041108的解决方案(常见于DMIT机房云服务器)

2023-05-16

查看机器系统的内核版本:

root@DMIT-9MevWGVmMF:~# uname -rsa
Linux DMIT-9MevWGVmMF 5.19.11-bbrplus #1 SMP PREEMPT_DYNAMIC Sat Sep 24 02:40:44 CST 2022 x86_64 x86_64 x86_64 GNU/Linux

人们尝试执行以下命令:

sudo apt-get install iperf3

出现以下严重问题致无法在线安装软件包。

root@DMIT-9MevWGVmMF:~# sudo apt-get install iperf3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: The package linux-headers-4.11.8-041108 needs to be reinstalled, but I can't find an archive for it.

解决方案(步骤):

cd ~
mkdir ko
cd ko

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.8/linux-headers-4.11.8-041108_4.11.8-041108.201706290836_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.8/linux-headers-4.11.8-041108-generic_4.11.8-041108.201706290836_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.8/linux-image-4.11.8-041108-generic_4.11.8-041108.201706290836_amd64.deb

sudo dpkg -i *.deb

尝试安装 iperf3:

sudo apt-get install iperf3 -y

出现以下提示:

root@DMIT-9MevWGVmMF:~/ko# sudo apt-get install iperf3 -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
iperf3 is already the newest version (3.1.3-1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.18.0-15 linux-headers-4.18.0-15-generic linux-headers-4.18.0-16 linux-headers-4.18.0-16-generic linux-modules-4.18.0-15-generic linux-modules-4.18.0-16-generic
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.

解决方案:

root@DMIT-9MevWGVmMF:~/ko# sudo apt-get install linux-headers-4.18.0-15 linux-headers-4.18.0-15-generic linux-headers-4.18.0-16 linux-headers-4.18.0-16-generic linux-modules-4.18.0-15-generic linux-modules-4.18.0-16-generic -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.18.0-16-generic is already the newest version (4.18.0-16.17).
linux-headers-4.18.0-16-generic set to manually installed.
linux-headers-4.18.0-15-generic is already the newest version (4.18.0-15.16).
linux-headers-4.18.0-15-generic set to manually installed.
linux-headers-4.18.0-15 is already the newest version (4.18.0-15.16).
linux-headers-4.18.0-15 set to manually installed.
linux-modules-4.18.0-16-generic is already the newest version (4.18.0-16.17).
linux-modules-4.18.0-16-generic set to manually installed.
linux-headers-4.18.0-16 is already the newest version (4.18.0-16.17).
linux-headers-4.18.0-16 set to manually installed.
linux-modules-4.18.0-15-generic is already the newest version (4.18.0-15.16).
linux-modules-4.18.0-15-generic set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.

DMIT机器上安装 linux-perf 性能监控及调试程式:

apt-get install libelf1=0.170-0.4ubuntu0.1 libdw1
apt-get install linux-tools-4.15.0-194 -y
apt-get install linux-cloud-tools-4.15.0-194 linux-cloud-tools-4.15.0-194-generic linux-cloud-tools-common

设置apt软件源:

nano /etc/apt/sources.list
deb http://security.ubuntu.com/ubuntu bionic-security main

重新安装依赖环境:

apt-get update -y
apt-get -f install -y
apt-get install linux-tools-generic -y
apt-get install linux-tools-common linux-tools-generic linux-cloud-tools-generic -y
apt-get install linux-tools-* linux-cloud-tools-* -y

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

DMIT/Ubuntu 18.04 LTS适用apt命令安装软件包缺少linux-headers-4.11.8-041108的解决方案(常见于DMIT机房云服务器) 的相关文章

  • Mybatis 和 Mybatis Plus 的区别

    Mybatis Plus Mybatis Plus是一个Mybatis的增强工具 xff0c 只是在Mybatis的基础上做了增强却不做改变 xff0c MyBatis Plus支持所有Mybatis原生的特性 xff0c 所以引入Myba
  • linux下备份一个目录下所有文件及目录

    一 关于Linux备份文件和应用的几个命令 xff1a tar和cp 在工作中 xff0c 经常来备份文件和系统应用 xff0c 常用到的主要是tar和cp命令 xff0c 分别介绍如下 xff1a 一 tar命令 xff0c 这个现在经常
  • linux服务器IO性能诊断

    1 在 Linux 服务器排查问题时 xff0c 一般会通过 top vmstat free netstat df h 等命令排查 CPU 内存 网络和磁盘等问题 有的时候我们需要更进一步了解磁盘 I O 的使用情况 基本命令 xff1a
  • 记 Ubuntu 19.04更改ip地址

    前言 从ubuntu从17 10开始 xff0c 已经不再在 etc network interfaces里配置IP xff0c 即使配置了也不会生效 xff0c 而是改成netplan方式 xff0c 配置写在 etc netplan 文
  • 批量安装centos7服务器

    利用PXE自动化安装centos7 前言 PXE的功能及原理 大概解释一下意思就是 xff1a 启动计算机的时候如果没有插入U盘以及光驱等介质的话 xff0c boot启动项是有一个从PXE启动的选项 xff0c 如果都没有则会从pxe启动
  • KairosDB 1.13安装手记

    PS xff1a 为了处理监控数据 xff0c 我们需要一个时间序列数据库 xff0c OpenTSDB是前驱 xff0c 但是是基于Hbase实现的 xff0c 后来有了一个基于Cassandra的实现 xff0c 就是KairosDB
  • Ubuntu 18.04 配置网卡聚合绑定与桥接

    Ubuntu 18 04 配置网卡聚合绑定与桥接 单网卡配置ip和多网卡配置ip 在之前的博客已经写过了 xff0c 这里写一下进阶的一些配置吧 Ubuntu 配置ip博客 xff1a https blog csdn net liuhaoy
  • ansible playbook 检查文件是否存在

    register 在ansible的playbook中task之间的相互传递变量 当我们需要判断对执行了某个操作或者某个命令后 xff0c 如何做相应的响应处理 xff08 执行其他 ansible 语句 xff09 xff0c 则一般会用
  • Ubuntu打开虚拟机报错could not open /dev/vmmon:?????? please make sure that the kernel moduel vmmon is load

    首先查看模块是否启动 etc init d vmware status 如果未启动使用start启动 etc init d vmware start 检查模块是否启动成功 etc init d vmware status 如果是网卡那一项f
  • linux 通过ip add 配置GRE隧道

    配置两台主机的 lo地址 xff0c 用来测试用 xff0c 如果不做gre的话 xff0c 互相是ping不同对方的回环地址的 注意环境是 主机1的ip xff1a 192 168 1 1 lo地址 xff1a 1 1 1 1 主机2的i
  • ansible-playbook debug输出区别与用法

    ansible playbook debug中var输出和msg输出的区别 msg xff1a 调试输出的消息 var xff1a 将某个任务执行的输出作为变量传递给debug模块 使用var的时候 xff0c 引用变量无需加上大括号 使用
  • 利用PXE批量进入救援模式修复多台主机的boot分区

    利用PXE自动化安装centos7 前言 PXE的功能及原理 大概解释一下意思就是 xff1a 启动计算机的时候如果没有插入U盘以及光驱等介质的话 xff0c boot启动项是有一个从PXE启动的选项 xff0c 如果都没有则会从pxe启动
  • shell 脚本 自动把登录失败次数超过5次的丢入iptables

    span class token shebang important bin bash span ip span class token operator 61 span span class token variable span cla
  • VMware 磁盘管理 虚拟机版本降级

    VMware降级在之前的文章里 卸载vmware 15版本虚拟机 xff0c 安装vmware14 最近在做虚拟机重命名 43 磁盘文件重命名 xff0c 在这里碰到了几次棘手的问题 VMware 虚拟机版本降级 如果你拿过来就是一个高版本
  • nginx 反向代理 解析域名变成ipv6

    今天碰到一个问题 xff0c 反向代理的域名解析成ipv6了 xff0c 然后主机不通ipv6 xff0c 就导致有时候能访问有时候链接超时的诡异情况 解决方法1 xff1a 通过关闭主机的ipv6来实现 图解centos7如何关闭ipv6
  • STANet

    A Spatial Temporal Attention Based Method and a New Dataset for Remote Sensing Image Change Detection 摘要 进行遥感图像变化检测 xff0
  • 传统行业的IT如何转向DEVOPS,运维如何转向SRE

    题记 xff1a 在菊厂这几年 xff0c 亲历了传统行业的IT部门如何在数字化转型的滚滚洪流中 xff0c 被裹挟着四处寻找光明 从15年至今 xff0c 参加了各式各样的培训 xff0c 最早是CI CD xff0c 后来推DEVOPS
  • 《Invertible Denoising Network: A Light Solution for Real Noise Removal 》论文阅读

    摘要 可逆网络在图像去噪方面有各种各样的好处 xff0c 因为它们是轻量级的 xff0c 信息无损的 xff0c 并且在反向传播过程中节省内存 然而 xff0c 应用可逆模型去噪具有挑战性 xff0c 因为输入是有噪声的 xff0c 而反向
  • IEEE Geoscience and Remote Sensing Letters (GRSL)从投稿到录用过程分享

    时间进度条 一定是你最想最快看到的 2021 5 14 投稿分配文章编号2021 6 16 返回修改意见2021 7 01 提交修订版论文 2021 7 28 收到录用通知2021 7 30 提交最终版论文 2021 8 07 校稿 202
  • C语言实例3——输入某年某月某日,判断这一天是这一年的第几天?

    题目 xff1a 输入某年某月某日 xff0c 判断这一天是这一年的第几天 xff1f 程序分析 xff1a 以3月5日为例 xff0c 应该先把前两个月的加起来 xff0c 然后再加上5天即本年的第几天 xff0c 特殊情况 xff0c

随机推荐