Debian升级或降级内核版本及下载内核源码方法(基于debian 9.5)

1、查看当前系统已安装的linux内核包:

root@yg-host:~# dpkg -l | head -5
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                          Version                           Architecture Description
+++-=============================-=================================-============-===============================================================================
root@yg-host:~# dpkg -l | grep linux-image
ii  linux-image-4.9.0-7-amd64     4.9.110-1                         amd64        Linux 4.9 for 64-bit PCs
ii  linux-image-amd64             4.9+80+deb9u5                     amd64        Linux for 64-bit PCs (meta-package)

 

2、升级到指定版本

  • 能通过Debian源找到的情况下:

(1)查看可更新到的内核版本:

root@yg-host:~# apt-cache search linux-image 
linux-headers-4.9.0-13-amd64 - Header files for Linux 4.9.0-13-amd64
linux-headers-4.9.0-13-rt-amd64 - Header files for Linux 4.9.0-13-rt-amd64
linux-image-4.9.0-13-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-13-amd64-dbg - Debug symbols for linux-image-4.9.0-13-amd64
linux-image-4.9.0-13-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-13-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-13-rt-amd64
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-image-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package)
linux-headers-4.9.0-14-amd64 - Header files for Linux 4.9.0-14-amd64
linux-headers-4.9.0-14-rt-amd64 - Header files for Linux 4.9.0-14-rt-amd64
linux-headers-4.9.0-15-amd64 - Header files for Linux 4.9.0-15-amd64
linux-headers-4.9.0-15-rt-amd64 - Header files for Linux 4.9.0-15-rt-amd64
linux-image-4.9.0-14-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-14-amd64-dbg - Debug symbols for linux-image-4.9.0-14-amd64
linux-image-4.9.0-14-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-14-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-14-rt-amd64
linux-image-4.9.0-15-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-15-amd64-dbg - Debug symbols for linux-image-4.9.0-15-amd64
linux-image-4.9.0-15-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-15-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-15-rt-amd64
linux-headers-4.19.0-0.bpo.10-amd64 - Header files for Linux 4.19.0-0.bpo.10-amd64
linux-headers-4.19.0-0.bpo.10-cloud-amd64 - Header files for Linux 4.19.0-0.bpo.10-cloud-amd64
linux-headers-4.19.0-0.bpo.10-rt-amd64 - Header files for Linux 4.19.0-0.bpo.10-rt-amd64
linux-headers-4.19.0-0.bpo.11-amd64 - Header files for Linux 4.19.0-0.bpo.11-amd64
linux-headers-4.19.0-0.bpo.11-cloud-amd64 - Header files for Linux 4.19.0-0.bpo.11-cloud-amd64
linux-headers-4.19.0-0.bpo.11-rt-amd64 - Header files for Linux 4.19.0-0.bpo.11-rt-amd64
linux-headers-4.19.0-0.bpo.12-amd64 - Header files for Linux 4.19.0-0.bpo.12-amd64
linux-headers-4.19.0-0.bpo.12-cloud-amd64 - Header files for Linux 4.19.0-0.bpo.12-cloud-amd64
linux-headers-4.19.0-0.bpo.12-rt-amd64 - Header files for Linux 4.19.0-0.bpo.12-rt-amd64
linux-headers-4.19.0-0.bpo.13-amd64 - Header files for Linux 4.19.0-0.bpo.13-amd64
linux-headers-4.19.0-0.bpo.13-cloud-amd64 - Header files for Linux 4.19.0-0.bpo.13-cloud-amd64
linux-headers-4.19.0-0.bpo.13-rt-amd64 - Header files for Linux 4.19.0-0.bpo.13-rt-amd64
linux-headers-4.19.0-0.bpo.14-amd64 - Header files for Linux 4.19.0-0.bpo.14-amd64
linux-headers-4.19.0-0.bpo.14-cloud-amd64 - Header files for Linux 4.19.0-0.bpo.14-cloud-amd64
linux-headers-4.19.0-0.bpo.14-rt-amd64 - Header files for Linux 4.19.0-0.bpo.14-rt-amd64
linux-image-4.19.0-0.bpo.10-amd64 - Linux 4.19 for 64-bit PCs
linux-image-4.19.0-0.bpo.10-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.10-amd64
linux-image-4.19.0-0.bpo.10-cloud-amd64 - Linux 4.19 for x86-64 cloud
linux-image-4.19.0-0.bpo.10-cloud-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.10-cloud-amd64
linux-image-4.19.0-0.bpo.10-rt-amd64 - Linux 4.19 for 64-bit PCs, PREEMPT_RT
linux-image-4.19.0-0.bpo.10-rt-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.10-rt-amd64
linux-image-4.19.0-0.bpo.11-amd64 - Linux 4.19 for 64-bit PCs
linux-image-4.19.0-0.bpo.11-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.11-amd64
linux-image-4.19.0-0.bpo.11-cloud-amd64 - Linux 4.19 for x86-64 cloud
linux-image-4.19.0-0.bpo.11-cloud-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.11-cloud-amd64
linux-image-4.19.0-0.bpo.11-rt-amd64 - Linux 4.19 for 64-bit PCs, PREEMPT_RT
linux-image-4.19.0-0.bpo.11-rt-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.11-rt-amd64
linux-image-4.19.0-0.bpo.12-amd64 - Linux 4.19 for 64-bit PCs
linux-image-4.19.0-0.bpo.12-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.12-amd64
linux-image-4.19.0-0.bpo.12-cloud-amd64 - Linux 4.19 for x86-64 cloud
linux-image-4.19.0-0.bpo.12-cloud-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.12-cloud-amd64
linux-image-4.19.0-0.bpo.12-rt-amd64 - Linux 4.19 for 64-bit PCs, PREEMPT_RT
linux-image-4.19.0-0.bpo.12-rt-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.12-rt-amd64
linux-image-4.19.0-0.bpo.13-amd64 - Linux 4.19 for 64-bit PCs
linux-image-4.19.0-0.bpo.13-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.13-amd64
linux-image-4.19.0-0.bpo.13-cloud-amd64 - Linux 4.19 for x86-64 cloud
linux-image-4.19.0-0.bpo.13-cloud-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.13-cloud-amd64
linux-image-4.19.0-0.bpo.13-rt-amd64 - Linux 4.19 for 64-bit PCs, PREEMPT_RT
linux-image-4.19.0-0.bpo.13-rt-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.13-rt-amd64
linux-image-4.19.0-0.bpo.14-amd64 - Linux 4.19 for 64-bit PCs
linux-image-4.19.0-0.bpo.14-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.14-amd64
linux-image-4.19.0-0.bpo.14-cloud-amd64 - Linux 4.19 for x86-64 cloud
linux-image-4.19.0-0.bpo.14-cloud-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.14-cloud-amd64
linux-image-4.19.0-0.bpo.14-rt-amd64 - Linux 4.19 for 64-bit PCs, PREEMPT_RT
linux-image-4.19.0-0.bpo.14-rt-amd64-dbg - Debug symbols for linux-image-4.19.0-0.bpo.14-rt-amd64
linux-image-4.19-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-4.19-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
linux-image-4.19-cloud-amd64 - Linux for x86-64 cloud (meta-package)
linux-image-4.19-cloud-amd64-dbg - Debugging symbols for Linux cloud-amd64 configuration (meta-package)
linux-image-4.19-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
linux-image-4.19-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package)
linux-headers-4.9.0-8-amd64 - Header files for Linux 4.9.0-8-amd64
linux-headers-4.9.0-8-rt-amd64 - Header files for Linux 4.9.0-8-rt-amd64
linux-image-4.9.0-8-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-8-amd64-dbg - Debug symbols for linux-image-4.9.0-8-amd64
linux-image-4.9.0-8-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-8-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-8-rt-amd64
linux-image-4.9.0-7-amd64 - Linux 4.9 for 64-bit PCs

比如我们要升级到4.9.0-15版本内核:

root@yg-host:~# apt-cache search linux-image | grep 4.9.0-15
linux-headers-4.9.0-15-amd64 - Header files for Linux 4.9.0-15-amd64
linux-headers-4.9.0-15-rt-amd64 - Header files for Linux 4.9.0-15-rt-amd64
linux-image-4.9.0-15-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-15-amd64-dbg - Debug symbols for linux-image-4.9.0-15-amd64
linux-image-4.9.0-15-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9.0-15-rt-amd64-dbg - Debug symbols for linux-image-4.9.0-15-rt-amd64

(2)直接install:

root@yg-host:~# apt-get install linux-image-4.9.0-15-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  firmware-linux-free irqbalance libglib2.0-0 libglib2.0-data libnuma1 shared-mime-info xdg-user-dirs
Suggested packages:
  linux-doc-4.9 debian-kernel-handbook
The following NEW packages will be installed:
  firmware-linux-free irqbalance libglib2.0-0 libglib2.0-data libnuma1 linux-image-4.9.0-15-amd64 shared-mime-info xdg-user-dirs
0 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 45.4 MB of archives.
After this operation, 214 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/debian stretch/main amd64 firmware-linux-free all 3.4 [19.2 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/debian stretch/main amd64 libglib2.0-0 amd64 2.50.3-2+deb9u2 [2,692 kB]
Get:3 http://security.debian.org/debian-security stretch/updates/main amd64 linux-image-4.9.0-15-amd64 amd64 4.9.258-1 [39.4 MB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/debian stretch/main amd64 libglib2.0-data all 2.50.3-2+deb9u2 [2,517 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/debian stretch/main amd64 libnuma1 amd64 2.0.11-2.1 [33.3 kB]                                                                                                          
Get:6 http://mirrors.tuna.tsinghua.edu.cn/debian stretch/main amd64 shared-mime-info amd64 1.8-1+deb9u1 [731 kB]                                                                                                 
Get:7 http://mirrors.tuna.tsinghua.edu.cn/debian stretch/main amd64 xdg-user-dirs amd64 0.15-2+b1 [52.2 kB]                                                                                                      
Get:8 http://mirrors.tuna.tsinghua.edu.cn/debian stretch/main amd64 irqbalance amd64 1.1.0-2.3 [40.4 kB]                                                                                                         
Fetched 45.4 MB in 8min 38s (87.7 kB/s)                                                                                                                                                                          
Preconfiguring packages ...
Selecting previously unselected package firmware-linux-free.
(Reading database ... 31896 files and directories currently installed.)
Preparing to unpack .../0-firmware-linux-free_3.4_all.deb ...
Unpacking firmware-linux-free (3.4) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../1-libglib2.0-0_2.50.3-2+deb9u2_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.50.3-2+deb9u2) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../2-libglib2.0-data_2.50.3-2+deb9u2_all.deb ...
Unpacking libglib2.0-data (2.50.3-2+deb9u2) ...
Selecting previously unselected package libnuma1:amd64.
Preparing to unpack .../3-libnuma1_2.0.11-2.1_amd64.deb ...
Unpacking libnuma1:amd64 (2.0.11-2.1) ...
Selecting previously unselected package linux-image-4.9.0-15-amd64.
Preparing to unpack .../4-linux-image-4.9.0-15-amd64_4.9.258-1_amd64.deb ...
Unpacking linux-image-4.9.0-15-amd64 (4.9.258-1) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../5-shared-mime-info_1.8-1+deb9u1_amd64.deb ...
Unpacking shared-mime-info (1.8-1+deb9u1) ...
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack .../6-xdg-user-dirs_0.15-2+b1_amd64.deb ...
Unpacking xdg-user-dirs (0.15-2+b1) ...
Selecting previously unselected package irqbalance.
Preparing to unpack .../7-irqbalance_1.1.0-2.3_amd64.deb ...
Unpacking irqbalance (1.1.0-2.3) ...
Setting up libnuma1:amd64 (2.0.11-2.1) ...
Setting up libglib2.0-0:amd64 (2.50.3-2+deb9u2) ...
No schema files found: doing nothing.
Setting up linux-image-4.9.0-15-amd64 (4.9.258-1) ...
I: /vmlinuz is now a symlink to boot/vmlinuz-4.9.0-15-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.9.0-15-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-15-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-15-amd64
Found initrd image: /boot/initrd.img-4.9.0-15-amd64
Found linux image: /boot/vmlinuz-4.9.0-7-amd64
Found initrd image: /boot/initrd.img-4.9.0-7-amd64
done
Setting up libglib2.0-data (2.50.3-2+deb9u2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for systemd (232-25+deb9u12) ...
Setting up firmware-linux-free (3.4) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for man-db (2.7.6.1-2) ...
Setting up shared-mime-info (1.8-1+deb9u1) ...
Setting up irqbalance (1.1.0-2.3) ...
Setting up xdg-user-dirs (0.15-2+b1) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.9.0-15-amd64
Processing triggers for systemd (232-25+deb9u12) ...
root@yg-host:~# 
root@yg-host:~# 
root@yg-host:~# dpkg -l | grep linux-image
ii  linux-image-4.9.0-15-amd64    4.9.258-1                         amd64        Linux 4.9 for 64-bit PCs
ii  linux-image-4.9.0-7-amd64     4.9.110-1                         amd64        Linux 4.9 for 64-bit PCs
ii  linux-image-amd64             4.9+80+deb9u5                     amd64        Linux for 64-bit PCs (meta-package)
root@yg-host:~# 
root@yg-host:~# 

 

(3)此时可以在/boot/grub/grub.cfg 中查看到新安装的内核启动选项:

root@yg-host:~# grep menuentry /boot/grub/grub.cfg 
if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
  menuentry_id_option=""
export menuentry_id_option
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-92cb37dd-4d69-40bd-9ccf-8d346b974f36' {
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-92cb37dd-4d69-40bd-9ccf-8d346b974f36' {
        menuentry 'Debian GNU/Linux, with Linux 4.9.0-15-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-15-amd64-advanced-92cb37dd-4d69-40bd-9ccf-8d346b974f36' {
        menuentry 'Debian GNU/Linux, with Linux 4.9.0-15-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-15-amd64-recovery-92cb37dd-4d69-40bd-9ccf-8d346b974f36' {
        menuentry 'Debian GNU/Linux, with Linux 4.9.0-7-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-7-amd64-advanced-92cb37dd-4d69-40bd-9ccf-8d346b974f36' {
        menuentry 'Debian GNU/Linux, with Linux 4.9.0-7-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-7-amd64-recovery-92cb37dd-4d69-40bd-9ccf-8d346b974f36' {
root@yg-host:~# 

 

(4)修改/etc/default/grub文件内核默认启动项:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_DEFAULT=0修改为:

GRUB_DEFAULT="Advanced options for Debian GNU/Linux>Debian GNU/Linux, with Linux 4.9.0-15-amd64"

保存后,执行:

root@yg-host:~# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-15-amd64
Found initrd image: /boot/initrd.img-4.9.0-15-amd64
Found linux image: /boot/vmlinuz-4.9.0-7-amd64
Found initrd image: /boot/initrd.img-4.9.0-7-amd64
done

之后,reboot重启

在开机界面,esc可以看到内核启动顺序,默认已经是4.9.0-15-amd64了:

(5)重启成功后,ssh连上查看当前内核版本:

Linux yg-host 4.9.0-15-amd64 #1 SMP Debian 4.9.258-1 (2021-03-08) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Apr  2 10:24:37 2021 from 192.168.187.1
root@yg-host:~# uname -a
Linux yg-host 4.9.0-15-amd64 #1 SMP Debian 4.9.258-1 (2021-03-08) x86_64 GNU/Linux

 

(6)卸载旧版本内核:

root@yg-host:~# dpkg -l | grep linux-image
ii  linux-image-4.9.0-15-amd64    4.9.258-1                         amd64        Linux 4.9 for 64-bit PCs
ii  linux-image-4.9.0-7-amd64     4.9.110-1                         amd64        Linux 4.9 for 64-bit PCs
ii  linux-image-amd64             4.9+80+deb9u5                     amd64        Linux for 64-bit PCs (meta-package)
root@yg-host:~# 
root@yg-host:~# 
root@yg-host:~# 
root@yg-host:~# apt remove --purge linux-image-4.9.0-7-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  linux-image-amd64
The following packages will be REMOVED:
  linux-image-4.9.0-7-amd64*
The following packages will be upgraded:
  linux-image-amd64
1 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 7,242 B of archives.
After this operation, 193 MB disk space will be freed.
Do you want to continue? [Y/n] 

 

  • 待更新升级的内核包在当前安装源中找不到时

(1)更新安装源

可以参考Debian更换内核版本——通过官方快照获取指定内核版本的源

(2)安装源中没有该内核版本时

直接到相关网站找,找到后下载下来,按所需的内核版本号搜,linux-image、linux-headers、linux-source包。

较新版的内核包

https://mirrors.edge.kernel.org/debian/pool/main/l/linux/

apt找不到的话,可以到这个网站找下对应内核版本的包:

http://mirror.cs.uchicago.edu/debian-security/pool/updates/main/l/linux/

旧版本的内核包可以这里下载到:

https://debian.sipwise.com/debian-security/pool/main/l/linux/

(3)下载完成后,执行以下命令安装内核:

dpkg -i *.deb

安装完成后,按照上面的修改内核启动顺序即可。

 

 

3、内核源码下载

(1)首先在Debian源中查找一下可下载的内核源代码:

apt-cache search linux-source

apt search linux-headers | grep 4.9.0-7

 

(2)没有和我的内核版本完全匹配,不过也没关系,直接下载就可以了:

apt-get install linux-source

apt-get install linux-headers-$(uname -r)

(3)Debian源中找不到时,在下面网站里搜索即可

较新版的内核包

https://mirrors.edge.kernel.org/debian/pool/main/l/linux/

apt找不到的话,可以到这个网站找下对应内核版本的包:

http://mirror.cs.uchicago.edu/debian-security/pool/updates/main/l/linux/

旧版本的内核包可以这里下载到:

https://debian.sipwise.com/debian-security/pool/main/l/linux/

 

 

  • 2
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值