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 '
#!/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

Want to contribute ?

You could earn up to $300 by adding new articles