//更换清华源 ?? ?apt install vim ?? ?vim /etc/apt/sources.list
//---------------------------------------------------------------------------- ?? ?# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 ?? ?deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse ?? ?# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse ?? ?deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse ?? ?# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse ?? ?deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse ?? ?# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse ?? ?deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse ?? ?# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
?? ?# 预发布软件源,不建议启用 ?? ?# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse ?? ?# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
//-------------------------------------------------------------------------------------------
?? ?apt update
?? ?apt install flex bison libelf-dev libssl-dev make build-essential ?kernel-package ?libncurses5-dev qt5-default dwarves ?? ? ?? ?apt install linux-source ?? ?cd /usr/src/linux-source-5.4.0 ?? ?tar xvzf linux-source-5.4.0.tar.bz2 ?? ?cd linux-source-5.4.0 ?? ?make mrproper ?? ?cp /boot/config-5.4.0-109-generic ./.config ?? ?make -j16 ?? ?make modules -j16 ?? ?如果报错如下: ?? ??? ?make[1]: *** No rule to make target 'debian/canonical-revoked-certs.pem', needed by 'certs/x509_revocation_list'. ?Stop. ?? ??? ?make: *** [Makefile:1868: certs] Error 2 ?? ??? ?在命令行中执行:scripts/config --disable SYSTEM_REVOCATION_KEYS ?? ?make modules_install ? //拷贝modules到 /lib/modules/5.4.192 ?? ?make bzImage ?? ?make install ? ?//安装内核到/boot目录 ?? ?update-grub ?? ?reboot ?? ?开机按住shift,选择新内核
|