Debian

如何在 Linux Mint 18 中從終端升級核心?

  • May 20, 2017

我喜歡 Linux Mint 18 ( Mint 實用程序mintupdate的一部分)的美妙之處,它為我提供了最新的穩定核心安全更新,就像今天(2016 年 12 月 1 日)一樣:

薄荷更新

線索可能在mintupdate位於的 Python 腳本中:

/usr/lib/linuxmint/mintUpdate/mintUpdate.py

但是,到目前為止,我還沒有找到任何東西。可能是因為我不懂Python。

提供,我想在 Bash 腳本中通過終端執行此操作。

免責聲明:我不想安裝Kernel.org上可用的最新核心。

我想按照mintupdate建議安裝。

編輯1

cat /etc/apt/sources.list

(empty)

cat /etc/apt/sources.list.d/*

輸出,由文件分隔:

deb http://repository.spotify.com stable non-free

deb http://archive.getdeb.net/ubuntu xenial-getdeb apps games

deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main

deb http://packages.linuxmint.com sarah main upstream import backport 
deb http://cz.archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://cz.archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://cz.archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner

deb-src http://packages.linuxmint.com sarah main upstream import backport 
deb-src http://cz.archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb-src http://cz.archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb-src http://cz.archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://archive.canonical.com/ubuntu/ xenial partner

deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam

deb http://download.virtualbox.org/virtualbox/debian xenial contrib

從您的 apt 文件中,很明顯您正在使用 ubuntu backports。更有趣的是,您已經配置了反向埠,請參見以下行:

deb http://cz.archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse

要選擇您感興趣的核心,請使用 -t 選擇 xenial-backports。做:

apt-get update
apt-cache search -t xenial-backports linux-image (or a similar variation for the kernel packages)
apt-get install -t xenial-backports linux-image-xxx 

如果您出於某種原因正在建構核心或核心模組,您還需要安裝新版本的linux-headerslinux-kbuild

如果使用open-vm-tools,您可能需要安裝新版本:

apt-get install -t xenial-backports open-vm-tools

引用自:https://unix.stackexchange.com/questions/327254