Install 4.19.x Kernel on Debian 8

Published on: Wed, Oct 23, 2019 at 3:22 pm EST
Debian FAQ

To upgrade your kernel to 4.19.x on Debian 8 you can use the Vultr Debian Repo. This repo contains a regularly updated version of the 4.19.x kernel. To install this copy and paste the following block of code into your PuTTy or SSH client window when logged into the server and hit enter. This will automatically install the required packages, the gpg key, the repo, the kernel and headers, then remove the old kernel for you. Afterwards reboot the server and you will be on the new kernel.

echo '

# Add https transport
apt install -y apt-transport-https --force-yes
wget -O - -q | apt-key add - 

# Get Architecture
ARCH=`uname --m`

# Add Vultr Kernel Repo
if [ "$ARCH" == "x86_64" ]; then
  echo deb vultr-amd64 main >> /etc/apt/sources.list
  echo deb vultr-i386 main >> /etc/apt/sources.list
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
  apt-get install -t vultr-i386 linux-image
  apt-get install -t vultr-i386 linux-headers

# Remove old kernel
apt-get autoremove -y
rm -f /root/
' > /root/
chmod +x /root/

Want to contribute ?

You could earn up to $300 by adding new articles