在Debian 8上安装4.19.x内核
作者: 分类:Linux 浏览(20) 2019-11-6

要在Debian 8上将内核升级到4.19.x,可以使用Vultr Debian Repo。此存储库包含4.19.x内核的定期更新版本。要安装此副本,并在登录服务器并按Enter时将以下代码块粘贴到PuTTy或SSH客户端窗口中。这将自动安装所需的软件包,gpg密钥,存储库,内核和标头,然后为您删除旧内核。之后重新引导服务器,您将进入新内核。

echo '
#!/bin/bash

# Add https transport
apt install -y apt-transport-https --force-yes
wget -O - -q https://debian.choopalabs.com/debian.choopalabs.com.gpg.key | apt-key add - 

# Get Architecture
ARCH=`uname --m`

# Add Vultr Kernel Repo
if [ "$ARCH" == "x86_64" ]; then
  echo deb https://debian.choopalabs.com/x64/ vultr-amd64 main >> /etc/apt/sources.list
else
  echo deb https://debian.choopalabs.com/x86/ vultr-i386 main >> /etc/apt/sources.list
fi
apt-get update

# Install Vultr 4.19 Kernel
if [ "$ARCH" == "x86_64" ]; then
  apt-get install -t vultr-amd64 linux-image
  apt-get install -t vultr-amd64 linux-headers
else
  apt-get install -t vultr-i386 linux-image
  apt-get install -t vultr-i386 linux-headers
fi

# Remove old kernel
apt-get autoremove -y
rm -f /root/install-kernel.sh
' > /root/install-kernel.sh
chmod +x /root/install-kernel.sh
/root/install-kernel.sh
本文固定链接: http://www.codejie.net/6095.html