ubuntu 老版本内核升级

ubuntu 8.04 内核升级

dpkg -l 查看安装的文件

首先更新apt-get源

vim /etc/apt/sources.list

deb http://old-releases.ubuntu.com/ubuntu/ hardy main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

系统版本过旧,国内源已经没有支持,找到ubuntu官网,对老版本支持

apt-get clean

apt-get update

apt-cache  search linux|grep linux-image

apt-get install linux-image-XXX-generic-pae linux-headers-XXX-generic-pae

 

不成功可以手动编译升级内核

下载新内核

apt-cache  search linux-source

apt-get install linux-source

cd  /usr/src 

tar xvf  linux-source-2.6.24.tar.bz2 

sudo apt-get install build-essential kernel-package libncurses5-dev libqt3-headers 

make menuconfig

make -j4

make modules

make modules_install

make install

生成initrd.img

mkinitramfs -o /boot/initrd.img-2.6.24.6 2.6.24.6

update-grub或者手写更新menu.lst

编译的时候碰到错误:

Include IDE/ATA-2 DISK support 如果你的/boot是放在IDE硬盘上,那么这里一定要选*,选M都不行。否则启动时会出现“waiting for root file system”的提示而停滞不前。

 

 

ubunt 12升级

阿里云还支持12的版本

vim /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse

apt-cache  search linux|grep linux-image

apt-get install linux-image-3.2.0-126-generic-pae linux-headers-3.2.0-126-generic-pae

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在Ubuntu 20.04升级内核版本,你可以使用ubuntu-mainline-kernel脚本。首先,你需要安装最新版本内核。你可以运行以下命令来安装最新版本内核: ``` sudo ubuntu-mainline-kernel.sh -i ``` \[1\] 安装完成后,你可以重启计算机,并使用以下命令来查看当前的内核版本: ``` uname -r ``` \[1\] 此外,Canonical还提供了"Livepatch Services",这使得在安装内核更新后无需重新启动计算机。这是一个方便的功能,可以确保你的系统保持最新并且不中断正在运行的任务。\[2\] 如果你想卸载安装的最新版本内核,你可以运行以下命令: ``` sudo ubuntu-mainline-kernel.sh -u ``` \[1\] 你可以使用以下命令下载ubuntu-mainline-kernel脚本: ``` wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh ``` \[3\] 请注意,在升级内核之前,确保备份重要的数据,并确保你了解升级内核的风险和注意事项。 #### 引用[.reference_title] - *1* [ubuntu20.04安装升级内核版本](https://blog.csdn.net/TengYun_zhang/article/details/130690359)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Ubuntu 20.04 升级最新内核、安装指定内核版本](https://blog.csdn.net/inthat/article/details/121682317)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值