我喜欢 Linux Mint 18 的美感mintupdate
(一部分)薄荷公用事业),它为我提供了最新的稳定内核安全更新,就像今天一样(2016年12月1日):
线索可能在mintupdate
位于以下位置的 Python 脚本中:
/usr/lib/linuxmint/mintUpdate/mintUpdate.py
然而,到目前为止我还没有找到任何东西。可能是因为我不懂Python。
假设,我想在 Bash 脚本中通过终端执行此操作。
免责声明:我不想安装可用的最新内核内核.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
答案1
从你的 apt 文件来看,很明显你正在使用 ubuntu 向后移植。更有趣的是,您已经配置了向后移植,请参阅以下行:
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-headers
和linux-kbuild
如果使用open-vm-tools
,您可能需要安装新版本:
apt-get install -t xenial-backports open-vm-tools