User Tools

Site Tools


update_a_brand_new_kernel_debian_11

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
update_a_brand_new_kernel_debian_11 [2021/12/13 14:33] dinoupdate_a_brand_new_kernel_debian_11 [2024/03/12 21:23] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +**METHOD 1:** 
 +
 The easiest way to install a newer kernel in Debian, is to install it from the backports.  The easiest way to install a newer kernel in Debian, is to install it from the backports. 
 In order to install a kernel from the backports, we need to add the backports-repository for your Debian version to the apt-sources and update the list of available packages: In order to install a kernel from the backports, we need to add the backports-repository for your Debian version to the apt-sources and update the list of available packages:
Line 4: Line 6:
 **Add following line to /etc/apt/sources.list:** **Add following line to /etc/apt/sources.list:**
  
-<code>deb http://deb.debian.org/debian buster-backports main<\code>\\ +<code> 
-<code>sudo apt-get update <\code>\\+deb http://deb.debian.org/debian bullseye-backports main  
 +</code> 
 + 
 +<code> 
 +sudo apt-get update               
 +</code> 
 + 
 +Now you can search for kernels:  
 +<code> 
 +sudo apt search linux-image 
 +</code> 
 + 
 +At this point, you can either install a specific version manually or choose to go for the latest release. To install the latest release, including necessary dependencies: 
 +<code> 
 +sudo apt -t bullseye-backports upgrade 
 +</code> 
 + 
 +After the upgrade, you can simply perform a reboot and the new kernel should be activated as the new default. 
 +<code> 
 +uname -r 
 +</code> 
 + 
 + 
 +**METHOD 2:**  
 + 
 +<code> 
 +sudo apt update && sudo apt upgrade -y 
 +</code> 
 + 
 +Add following to sources.list:  
 + 
 +<code> 
 +echo "deb http://deb.debian.org/debian unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list 
 +</code> 
 + 
 +<code> 
 +echo "deb-src http://deb.debian.org/debian unstable main contrib non-free" | sudo tee -a /etc/apt/sources.list 
 +</code> 
 + 
 +Next, an easy solution is to use apt-pinning to avoid having different version branches causing your system prompting for updates from the experimental repository. Open the following file using a text editor. 
 +<code> 
 +sudo nano /etc/apt/preferences 
 +</code> 
 + 
 +Next, add the following. 
 + 
 +<code> 
 +Package: * 
 +Pin: release a=bullseye 
 +Pin-Priority: 500 
 + 
 +Package: linux-image-amd64 
 +Pin: release a=unstable 
 +Pin-Priority: 1000 
 + 
 +Package: * 
 +Pin: release a=unstable 
 +Pin-Priority: 100 
 +</code> 
 + 
 +Save it and get out (Ctrl-O and CTRL-X).  
 + 
 +The order goes all updates are preferenced to Bullseye with a higher score (500) than unstable (100), so you are not prompted on various packages to be updated from the unstable repository. 
 + 
 +However, to make it easy to keep the kernel up to date when you run the apt update command for your standard Bullseye packages, the example above has set linux-image-amd64 as a high priority (1000) using the unstable repository above any other source for that package only. 
 + 
 +Next:  
 + 
 +<code> 
 +sudo apt update 
 +</code> 
 + 
 +<code> 
 +sudo apt upgrade 
 +</code>
  
-<code>make</code> 
-<code>sudo make install</code> 
update_a_brand_new_kernel_debian_11.1639405982.txt.gz · Last modified: 2024/03/12 21:23 (external edit)