V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
huangya
V2EX  ›  Linux

ubuntu 18.04 看起来不能自动检测到新内核,要手动升级内核

  •  
  •   huangya · 2020-11-18 09:39:14 +08:00 · 2960 次点击
    这是一个创建于 1226 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我说的是自动检测新内核是指通过 apt update; apt upgrade

    就能升级内核,但现在只能手动安装内核,比如通过命令:

    apt install inux-headers-5.4.0-53 linux-headers-5.4.0-53-generic linux-image-5.4.0-53-generic linux-modules-5.4.0-53-generic linux-modules-extra-5.4.0-53-generic.

    这是正常的吗?我没有运行这些之前,一直停留在内核版本 4.15.0-123. 也换过好几个源,试过两台电脑.

    11 条回复    2020-11-18 18:38:51 +08:00
    cheng6563
        1
    cheng6563  
       2020-11-18 09:46:12 +08:00   ❤️ 1
    LTS 内核只会升小版本号吧,大版本在发新的发行版时才会升。你手动装的 5.4 以后 apt upgrade 可能会降回 4.15 的
    huangya
        2
    huangya  
    OP
       2020-11-18 09:58:43 +08:00
    @cheng6563 但我看最新的 18.04.5 系统 image 的 release note https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes, 顺便看到 18.04.4 内核就已经是基于 v5.3 了。当然我的系统 image,肯定 是低于 18.04.5 和 18.04.4 了,因为我好久就装了.可能是 18.04.1 或者 18.04.2.

    >Ubuntu 18.04.4 ships with a v5.3 based Linux kernel updated from the v5.0 based kernel in 18.04.3. This enables the latest hardware and peripherals available from IBM, Intel, and others.
    liuxu
        3
    liuxu  
       2020-11-18 10:47:04 +08:00
    do-release-upgrade

    先看下相关文档和备份问题
    Judoon
        4
    Judoon  
       2020-11-18 13:33:54 +08:00
    apt dist-upgrade
    millson
        5
    millson  
       2020-11-18 13:41:05 +08:00
    sudo apt install linux-generic-hwe-18.04
    kkk123
        6
    kkk123  
       2020-11-18 13:52:53 +08:00
    HWE 内核

    https://wiki.ubuntu.com/Kernel/LTSEnablementStack

    sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04
    msg7086
        7
    msg7086  
       2020-11-18 13:54:38 +08:00   ❤️ 1
    1. 18.04 就是 18.04 ,后面的小版本只和安装盘有关。
    只要你随时更新系统,你就是用的最新版。
    换句话说,你既然是做过 upgrade 了,那你早就是 18.04.5 了。

    2. 18.04 内核就是 4.15 ,最新版是 4.15.0-123 和 4.15.0-124 。

    3. Ubuntu 的新内核计划是在 hwe 包里的,你要用新内核需要安装 linux-image-generic-hwe-18.04 ,可以让你用上 20.04 的内核,也就是 5.4.0-54 。hwe 会自动把新内核引进来,就不需要你手动安装依赖了。
    huangya
        8
    huangya  
    OP
       2020-11-18 13:59:53 +08:00
    @Judoon 这个是正解,thanks
    Y29tL2gwd2Fy
        9
    Y29tL2gwd2Fy  
       2020-11-18 15:17:54 +08:00 via iPhone
    sudo apt install linux-oem-20.04
    mikeguan
        10
    mikeguan  
       2020-11-18 15:23:07 +08:00 via Android
    除了四楼,其他的感觉都不用 Ubuntu 😂
    twy2004
        11
    twy2004  
       2020-11-18 18:38:51 +08:00 via Android
    不带 dist 的 upgrade 本来就不升级可能造成依赖变化的补丁。以前的 n 卡驱动没有自动更新脚本,一升级,就没有驱动了。岂不误事?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5430 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 08:42 · PVG 16:42 · LAX 01:42 · JFK 04:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.