近期在测试一款6490的芯片主板的时候遇到了更新后设备无法上网的问题,最后排查发现是由于内核变动导致的,那就手动锁定内核来解决吧。具体方法如下:
1、先确认和排查当前内核
dpkg --list | grep linux-image
dpkg --list | grep linux-headers
dpkg --list | grep linux-modules
2、禁用自动更新
vi /etc/apt/apt.conf.d/10periodic
vi /etc/apt/apt.conf.d/20auto-upgrades
3、锁定内核更新
# apt-mark hold linux-image-5.15.0-92generic
linux-image-5.15.0-92-generic set on hold.
# apt-mark hold linux-headers-5.15.0-92-generic
linux-headers-5.15.0-92-generic set on hold.
# apt-mark hold linux-modules-extra-5.15.0-92-generic
linux-modules-extra-5.15.0-92-generic set on hold.
4、检查
sudo dpkg --get-selections | grep hold
5、设置休眠
systemctl status sleep.target
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
233



被折叠的 条评论
为什么被折叠?



