linux更改系统内核版本(不编译新内核直接安装)以及重新安装systemtap
查看可用的内核版本
apt-cache search linux-image
或是
apt-cache search linux|grep 5.4.0-26
安装
apt install -y linux-image-5.4.0-26-generic
查看现在的内核版本
dpkg --get-selections |grep linux-image
查看内核启动顺序
grep menuentry /boot/grub/grub.cfg
得到
if [ x"${feature_menuentry_id}" = xy ]; thenmenuentry_id_option="--id"menuentry_id_option=""
export menuentry_id_option
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-92fe584c-75d2-4ff1-9a2f-4cf474b3ebac' {
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-92fe584c-75d2-4ff1-9a2f-4cf474b3ebac' {menuentry 'Ubuntu, with Linux 5.13.0-37-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-37-generic-advanced-92fe584c-75d2-4ff1-9a2f-4cf474b3ebac' {menuentry 'Ubuntu, with Linux 5.13.0-37-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-37-generic-recovery-92fe584c-75d2-4ff1-9a2f-4cf474b3ebac' {menuentry 'Ubuntu, with Linux 5.13.0-35-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-35-generic-advanced-92fe584c-75d2-4ff1-9a2f-4cf474b3ebac' {menuentry 'Ubuntu, with Linux 5.13.0-35-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.13.0-35-generic-recovery-92fe584c-75d2-4ff1-9a2f-4cf474b3ebac' {menuentry 'Ubuntu, with Linux 5.4.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-26-generic-advanced-92fe584c-75d2-4ff1-9a2f-4cf474b3ebac' {menuentry 'Ubuntu, with Linux 5.4.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-26-generic-recovery-92fe584c-75d2-4ff1-9a2f-4cf474b3ebac' {
menuentry 'Memory test (memtest86+)' {
menuentry 'Memory test (memtest86+, serial console 115200)' {
更改启动顺序
vim /etc/default/grub
把GRUB_DEFAULT从0改为4或"Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-26-generic"
得到
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'GRUB_DEFAULT=4
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="find_preseed=/preseed.cfg auto noprompt priority=critical locale=en_US"
更新grub
update-grub
重启
然后发现没有Build文件及其内容。安装。
apt-get install linux-headers-$(uname -r)
然后重新安装依赖包。
stap-prep
注:stap-prep的前置操作,我应该是因为之前在5.13的内核版本下弄过,所以这次不需要弄?反正我没弄:
echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list
echo -e "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse\ndeb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list
sudo apt install ubuntu-dbgsym-keyring
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F2EDC64DC5AEE1F6B9C621F0C8CAB6595FDFF622
sudo apt-get update
linux更改系统内核版本(不编译新内核直接安装)以及重新安装systemtap相关推荐
- 操原作业(一)之Ubuntu编译新内核
要求: 1. 准备工作 查看内核版本: 安装相关依赖: sudo apt-get install build-essential kernel-package libncurses5-dev libq ...
- linux 更改make版本,Linux下查看系统版本和make版本
一.查看Linux内核版本命令(两种方法): 1.cat /proc/versionz [root@localhost ~]# cat /proc/version Linux version 2.6. ...
- anaconda环境更改gcc版本并编译Pytorch3D 0.4.0
项目需要编译pytorch3D 0.4.0且需要gcc 7以上且8以下的版本(尝试了5.4.0和12.2.0均报错),所以打算安装7.3.0版本的gcc,但是服务器没有root权限,所以只能在cond ...
- linux更改默认版本,linux - 将某个软件版本设为ubuntu中的默认版本 - Ubuntu问答
问题描述 我目前在Ubuntu 12.04上安装了2个版本的php. 一个用于使用apt-get安装的php 5.3,另一个用于xampp与php 5.5一起安装 当我执行这些命令时: > wh ...
- linux更改python版本链接
首先which python3查看当前python版本的超链接位置,比如/usr/local/bin/python3,这时候可以把它替换相应python版本的超链接: sudo rm /usr/loc ...
- Ubuntu 8.04 Linux系统下面编译更新内核版本
在 VirtualBox 虚拟机上面测试的,ubuntu 8.04系统. 1. 下载内核源代码 http://www.kernel.org/ 下载The latest stable version o ...
- 西电软工操作系统实验:编译Ubuntu18.04新内核并添加系统调用(含代码以及详细分析)
西电软工操作系统实验一:编译Linux内核 目录 (一)前言 (二)实验内容 (三)实验环境 (四)实验过程 4.1安装虚拟机 4.2虚拟机换源 4.3 添加系统调用内核 4.4 下载编译所需的软件依 ...
- Linux 查看系统版本
linux系统的版本关系. 1.内核版本和发行版本区别 我的理解,内核版本就是指linux中最基层的代码,版本号如 Linux version 3.10.0-327.22.2.el7.x86_64 发 ...
- pycharm快速切换多版本python编译环境
如何用pycharm快速切换多版本python编译环境? 1.安装多版本python. 在安装路径下存在多个版本的文件夹. 用CMD输入python查看版本,只显示高版本的,怎么办呢? 2.修改低版本 ...
最新文章
- php写一个shell脚本文件格式,一篇文章学会——shell脚本编写
- 趋势线突破有效的标志
- 电商抢购秒杀系统的设计_1_应用场景分析
- Spring Cloud Zuul
- Visual Studio使用技巧,创建自己的代码片段
- 算法:模式匹配之KMP算法
- 【REST】基于RESTful服务端的客户端实现(HttpClient、RestTemplate、HttpURLConnection)
- android 观察者更新ui,android通过观察者模式实现更新UI
- POJ_3262 Protecting the Flowers 【贪心】
- 马哥linux 教程---vim编辑器进阶课后题
- python嵌入shell代码_小白进!嵌入式开发如何快速入门?
- Java集合Set、Map、HashSet、HashMap、TreeSet、TreeMap等
- YFI与Curve合作项目初始支持6种算法稳定币
- python xlrd模块_Python中xlrd模块解析
- Android Bitmap Drawable 常用摘要
- html中表格table的内容居中显示
- php前台模板下载,thinkphp前台模板下载.doc
- 关于综合布线系统双绞线电缆的屏蔽问题
- nginx 解决504超时问题
- 分布式计算模式:Stream