Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0解决
Update Linux Kerel遇到题目:
2025-01-08:17:28:28,562 WARNING Detected kernel version 5.4.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
这里的kernel指的是Linux内核,通过下面的下令可以检察Linux内核版本
$uname -r
5.4.0-133-generic
发现版本号是对应的。
我的情况是:ubuntu.20.04
第一步:下载脚本。下面这个bash脚本自动检测和安装最新的kernel
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh
/master/ubuntu-mainline-kernel.sh
运行结果
root@ubuntu-xxx:~# wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh
/master/ubuntu-mainline-kernel.sh
--2025-01-08 18:01:35--https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh
/master/ubuntu-mainline-kernel.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.111.133, ...Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 37302 (36K) Saving to: ‘ubuntu-mainline-kernel.sh
’ubuntu-mainline-kernel.sh
100%[========================================================================================>]36.43K--.-KB/s in 0.07s 2025-01-08 18:01:36 (487 KB/s) - ‘ubuntu-mainline-kernel.sh
’ saved 第二步:赋予脚本可实行权限
sudo install ubuntu-mainline-kernel.sh
/usr/local/bin/
这句话的作用
作用是将下载的 ubuntu-mainline-kernel.sh
脚本安装到系统的 /usr/local/bin/ 目次下,并赋予实行权限,以便用户可以在终端中随时通过下令行实行它。
第三步:检查 (check) 当前系统是否有更新的内核版本可用,以及本机已安装的内核版本。
sudo ubuntu-mainline-kernel.sh
-c
实行结果
root@ubuntu-xxx:~# sudo install ubuntu-mainline-kernel.sh
/usr/local/bin/
root@ubuntu-xxx:~# sudo ubuntu-mainline-kernel.sh
-c
Finding latest version available on kernel.ubuntu.com: v6.12.7Finding latest installed version: noneA newer kernel version (v6.12.7) was found but the build was not successful 第四步:安装最新版本的稳定内核 (需要按y确认)
sudo ubuntu-mainline-kernel.sh
-i
报错:Abort, the amd64 build has not succeeded (google很多人遇到这个题目,但是都没有解决我的题目)
root@ubuntu-xxx:~# sudo ubuntu-mainline-kernel.sh
-i
Finding latest version available on kernel.ubuntu.comLatest version is: v6.12.7, continue? (y/N) Abort, the amd64 build has not succeeded 这个题目的解答:
您遇到的题目是尝试使用 ubuntu-mainline-kernel.sh
脚本安装最新内核时,提示 “the amd64 build has not succeeded”,这表明当前最新版本的内核(v6.12.7)在 kernel.ubuntu.com 上没有可用的 amd64(64 位)版本构建。因此,无法下载安装该版本。
解决报错:Abort, the amd64 build has not succeeded
怎样解决?
实行以下下令检察可用的其他版本内核:
sudo ubuntu-mainline-kernel.sh
-r
实行结果
root@ubuntu-xxx:~# sudo ubuntu-mainline-kernel.sh
-r
Downloading index from kernel.ubuntu.comv3.2.85 v3.2.90 v3.2.92 v3.2.93 v3.2.94 v3.2.95 v3.2.96 v3.2.97 v3.2.98 v3.2.99v3.2.100 v3.2.101 v3.4.113 v3.8.3 v3.8.7 v3.12.65 v3.12.66 v3.12.67 v3.12.68 v3.12.69v3.12.70 v3.12.71 v3.12.72 v3.12.73 v3.12.74 v3.14.74 v3.14.75 v3.14.77 v3.14.78 v3.14.79v3.16.40 v3.16.45 v3.16.50 v3.16.55 v3.16.60 v3.16.65 v3.16.70 v3.16.75 v3.16.76 v3.16.77v3.16.78 v3.16.79 v3.16.80 v3.16.81 v3.16.82 v3.16.83 v3.16.84 v3.16.85 v3.18.40 v3.18.45v3.18.50 v3.18.55 v3.18.60 v3.18.70 v3.18.75 v3.18.80 v3.18.85 v3.18.90 v3.18.95 v3.18.100v3.18.105 v3.18.110 v3.18.115 v3.18.120 v3.18.125 v3.18.130 v3.18.131 v3.18.132 v3.18.133 v3.18.134v3.18.135 v3.18.136 v3.18.137 v3.18.138 v3.18.139 v3.18.140 v4.1.30 v4.1.35 v4.1.40 v4.1.43v4.1.44 v4.1.45 v4.1.46 v4.1.47 v4.1.48 v4.1.49 v4.1.50 v4.1.51 v4.1.52 v4.4.20v4.4.30 v4.4.40 v4.4.50 v4.4.60 v4.4.70 v4.4.80 v4.4.90 v4.4.100 v4.4.110 v4.4.120v4.4.130 v4.4.140 v4.4.150 v4.4.155 v4.4.160 v4.4.165 v4.4.170 v4.4.175 v4.4.180 v4.4.185v4.4.190 v4.4.195 v4.4.200 v4.4.205 v4.4.210 v4.4.215 v4.4.220 v4.4.225 v4.4.230 v4.4.235v4.4.240 v4.4.245 v4.4.250 v4.4.255 v4.4.260 v4.4.265 v4.4.270 v4.4.275 v4.4.280 v4.4.285v4.4.290 v4.4.293 v4.4.294 v4.4.295 v4.4.296 v4.4.297 v4.4.298 v4.4.299 v4.4.300 v4.4.301v4.4.302 v4.6.4 v4.6.5 v4.6.6 v4.6.7 v4.7.0 v4.7.1 v4.7.2 v4.7.3 v4.7.4v4.7.5 v4.7.6 v4.7.7 v4.7.8 v4.7.9 v4.7.10 v4.8.0 v4.8.5 v4.8.8 v4.8.9v4.8.10 v4.8.11 v4.8.12 v4.8.13 v4.8.14 v4.8.15 v4.8.16 v4.8.17 v4.9.0 v4.9.5v4.9.10 v4.9.15 v4.9.20 v4.9.25 v4.9.30 v4.9.35 v4.9.40 v4.9.45 v4.9.50 v4.9.55v4.9.60 v4.9.65 v4.9.70 v4.9.75 v4.9.80 v4.9.85 v4.9.90 v4.9.95 v4.9.100 v4.9.105v4.9.110 v4.9.115 v4.9.120 v4.9.125 v4.9.130 v4.9.135 v4.9.140 v4.9.145 v4.9.150 v4.9.155v4.9.160 v4.9.165 v4.9.170 v4.9.175 v4.9.180 v4.9.185 v4.9.190 v4.9.195 v4.9.200 v4.9.205v4.9.210 v4.9.215 v4.9.220 v4.9.225 v4.9.230 v4.9.235 v4.9.240 v4.9.245 v4.9.250 v4.9.255v4.9.260 v4.9.265 v4.9.270 v4.9.275 v4.9.280 v4.9.285 v4.9.290 v4.9.295 v4.9.300 v4.9.305v4.9.310 v4.9.320 v4.9.325 v4.9.327 v4.9.328 v4.9.329 v4.9.330 v4.9.331 v4.9.332 v4.9.333v4.9.335 v4.9.336 v4.9.337 v4.10.0 v4.10.5 v4.10.8 v4.10.9 v4.10.10 v4.10.11 v4.10.12v4.10.13 v4.10.14 v4.10.15 v4.10.16 v4.10.17 v4.11.0 v4.11.3 v4.11.4 v4.11.5 v4.11.6v4.11.7 v4.11.8 v4.11.9 v4.11.10 v4.11.11 v4.11.12 v4.12.0 v4.12.5 v4.12.6 v4.12.7v4.12.8 v4.12.9 v4.12.10 v4.12.11 v4.12.12 v4.12.13 v4.12.14 v4.13.0 v4.13.5 v4.13.7v4.13.8 v4.13.9 v4.13.10 v4.13.11 v4.13.12 v4.13.13 v4.13.14 v4.13.15 v4.13.16 v4.14.0v4.14.10 v4.14.20 v4.14.30 v4.14.40 v4.14.50 v4.14.60 v4.14.70 v4.14.80 v4.14.90 v4.14.100v4.14.110 v4.14.120 v4.14.130 v4.14.140 v4.14.150 v4.14.155 v4.14.160 v4.14.165 v4.14.170 v4.14.175v4.14.180 v4.14.185 v4.14.190 v4.14.195 v4.14.200 v4.14.205 v4.14.210 v4.14.215 v4.14.220 v4.14.225v4.14.230 v4.14.235 v4.14.240 v4.14.245 v4.14.250 v4.14.255 v4.14.260 v4.14.265 v4.14.270 v4.14.275v4.14.280 v4.14.285 v4.14.290 v4.14.295 v4.14.305 v4.14.310 v4.14.315 v4.14.325 v4.14.326 v4.14.327v4.14.330 v4.14.331 v4.14.332 v4.14.333 v4.14.334 v4.14.335 v4.14.336 v4.15.0 v4.15.5 v4.15.9v4.15.10 v4.15.11 v4.15.12 v4.15.13 v4.15.14 v4.15.15 v4.15.16 v4.15.17 v4.15.18 v4.16.0v4.16.5 v4.16.9 v4.16.10 v4.16.11 v4.16.12 v4.16.13 v4.16.14 v4.16.15 v4.16.16 v4.16.17v4.16.18 v4.17.0 v4.17.5 v4.17.10 v4.17.11 v4.17.12 v4.17.13 v4.17.14 v4.17.15 v4.17.16v4.17.17 v4.17.18 v4.17.19 v4.18.0 v4.18.5 v4.18.10 v4.18.11 v4.18.12 v4.18.13 v4.18.14v4.18.15 v4.18.16 v4.18.17 v4.18.18 v4.18.19 v4.18.20 v4.19.0 v4.19.5 v4.19.10 v4.19.15v4.19.20 v4.19.25 v4.19.30 v4.19.35 v4.19.40 v4.19.45 v4.19.50 v4.19.55 v4.19.60 v4.19.65v4.19.70 v4.19.75 v4.19.80 v4.19.85 v4.19.90 v4.19.95 v4.19.100 v4.19.105 v4.19.110 v4.19.115v4.19.120 v4.19.125 v4.19.130 v4.19.135 v4.19.140 v4.19.145 v4.19.150 v4.19.155 v4.19.160 v4.19.165v4.19.170 v4.19.175 v4.19.180 v4.19.185 v4.19.190 v4.19.195 v4.19.200 v4.19.205 v4.19.210 v4.19.215v4.19.220 v4.19.225 v4.19.230 v4.19.235 v4.19.240 v4.19.245 v4.19.250 v4.19.255 v4.19.260 v4.19.265v4.19.270 v4.19.275 v4.19.280 v4.19.285 v4.19.290 v4.19.295 v4.19.300 v4.19.305 v4.19.310 v4.19.315v4.19.316 v4.19.317 v4.19.318 v4.19.319 v4.19.320 v4.19.321 v4.19.322 v4.19.323 v4.19.324 v4.19.325v4.20.0 v4.20.5 v4.20.8 v4.20.9 v4.20.10 v4.20.11 v4.20.12 v4.20.13 v4.20.14 v4.20.15v4.20.16 v4.20.17 v5.0.0 v5.0.5 v5.0.10 v5.0.12 v5.0.13 v5.0.14 v5.0.15 v5.0.16v5.0.17 v5.0.18 v5.0.19 v5.0.20 v5.0.21 v5.1.0 v5.1.5 v5.1.10 v5.1.12 v5.1.13v5.1.14 v5.1.15 v5.1.16 v5.1.17 v5.1.18 v5.1.19 v5.1.20 v5.1.21 v5.2.0 v5.2.5v5.2.10 v5.2.12 v5.2.13 v5.2.14 v5.2.15 v5.2.16 v5.2.17 v5.2.18 v5.2.19 v5.2.20v5.2.21 v5.3.0 v5.3.5 v5.3.9 v5.3.10 v5.3.11 v5.3.12 v5.3.13 v5.3.14 v5.3.15v5.3.16 v5.3.17 v5.3.18 v5.4.0 v5.4.5 v5.4.10 v5.4.15 v5.4.20 v5.4.25 v5.4.30v5.4.35 v5.4.40 v5.4.45 v5.4.50 v5.4.55 v5.4.60 v5.4.65 v5.4.70 v5.4.75 v5.4.80v5.4.85 v5.4.90 v5.4.95 v5.4.100 v5.4.105 v5.4.110 v5.4.115 v5.4.120 v5.4.125 v5.4.130v5.4.135 v5.4.140 v5.4.145 v5.4.150 v5.4.155 v5.4.160 v5.4.165 v5.4.170 v5.4.175 v5.4.180v5.4.185 v5.4.190 v5.4.200 v5.4.205 v5.4.210 v5.4.215 v5.4.220 v5.4.230 v5.4.235 v5.4.240v5.4.245 v5.4.246 v5.4.250 v5.4.251 v5.4.252 v5.4.253 v5.4.254 v5.4.255 v5.4.256 v5.4.257v5.4.258 v5.4.261 v5.4.262 v5.4.263 v5.4.264 v5.4.265 v5.4.266 v5.4.267 v5.4.268 v5.4.269v5.4.270 v5.4.271 v5.4.272 v5.4.273 v5.4.274 v5.4.275 v5.4.276 v5.4.277 v5.4.278 v5.4.279v5.4.280 v5.4.281 v5.4.282 v5.4.283 v5.4.284 v5.4.285 v5.4.287 v5.4.288 v5.5.0 v5.5.5v5.5.10 v5.5.11 v5.5.12 v5.5.13 v5.5.14 v5.5.15 v5.5.16 v5.5.17 v5.5.18 v5.5.19v5.6.0 v5.6.5 v5.6.9 v5.6.10 v5.6.11 v5.6.13 v5.6.14 v5.6.15 v5.6.16 v5.6.17v5.6.18 v5.6.19 v5.7.0 v5.7.5 v5.7.10 v5.7.11 v5.7.12 v5.7.13 v5.7.14 v5.7.15v5.7.16 v5.7.17 v5.7.18 v5.7.19 v5.8.0 v5.8.5 v5.8.9 v5.8.10 v5.8.11 v5.8.12v5.8.13 v5.8.14 v5.8.15 v5.8.16 v5.8.17 v5.8.18 v5.9.0 v5.9.5 v5.9.7 v5.9.8v5.9.9 v5.9.10 v5.9.11 v5.9.12 v5.9.13 v5.9.14 v5.9.15 v5.9.16 v5.10.0 v5.10.5v5.10.10 v5.10.15 v5.10.20 v5.10.25 v5.10.30 v5.10.35 v5.10.40 v5.10.45 v5.10.50 v5.10.55v5.10.60 v5.10.65 v5.10.70 v5.10.75 v5.10.80 v5.10.85 v5.10.90 v5.10.95 v5.10.100 v5.10.105v5.10.110 v5.10.115 v5.10.120 v5.10.125 v5.10.130 v5.10.135 v5.10.140 v5.10.145 v5.10.150 v5.10.155v5.10.160 v5.10.165 v5.10.170 v5.10.175 v5.10.180 v5.10.185 v5.10.190 v5.10.195 v5.10.205 v5.10.210v5.10.215 v5.10.220 v5.10.221 v5.10.222 v5.10.223 v5.10.224 v5.10.225 v5.10.226 v5.10.227 v5.10.229v5.10.230 v5.10.231 v5.10.232 v5.11.0 v5.11.5 v5.11.10 v5.11.13 v5.11.14 v5.11.15 v5.11.16v5.11.17 v5.11.18 v5.11.19 v5.11.20 v5.11.21 v5.11.22 v5.12.0 v5.12.5 v5.12.10 v5.12.11v5.12.12 v5.12.13 v5.12.14 v5.12.15 v5.12.16 v5.12.17 v5.12.18 v5.12.19 v5.13.0 v5.13.5v5.13.9 v5.13.11 v5.13.12 v5.13.13 v5.13.14 v5.13.15 v5.13.16 v5.13.17 v5.13.18 v5.13.19v5.14.0 v5.14.5 v5.14.10 v5.14.12 v5.14.13 v5.14.14 v5.14.15 v5.14.16 v5.14.17 v5.14.18v5.14.19 v5.14.20 v5.14.21 v5.15.0 v5.15.5 v5.15.10 v5.15.15 v5.15.20 v5.15.25 v5.15.30v5.15.35 v5.15.40 v5.15.45 v5.15.50 v5.15.55 v5.15.60 v5.15.65 v5.15.70 v5.15.75 v5.15.85v5.15.90 v5.15.95 v5.15.100 v5.15.105 v5.15.110 v5.15.115 v5.15.120 v5.15.125 v5.15.126 v5.15.127v5.15.128 v5.15.129 v5.15.130 v5.15.131 v5.15.132 v5.15.133 v5.15.134 v5.15.135 v5.15.139 v5.15.140v5.15.141 v5.15.142 v5.15.143 v5.15.144 v5.15.145 v5.15.146 v5.15.147 v5.15.148 v5.15.149 v5.15.150v5.15.151 v5.15.152 v5.15.153 v5.15.154 v5.15.155 v5.15.156 v5.15.157 v5.15.158 v5.15.159 v5.15.160v5.15.161 v5.15.162 v5.15.163 v5.15.164 v5.15.165 v5.15.166 v5.15.167 v5.15.168 v5.15.171 v5.15.172v5.15.173 v5.15.174 v5.15.175 v5.16.0 v5.16.5 v5.16.10 v5.16.11 v5.16.12 v5.16.13 v5.16.14v5.16.15 v5.16.16 v5.16.17 v5.16.18 v5.16.19 v5.16.20 v5.17.0 v5.17.5 v5.17.6 v5.17.7v5.17.8 v5.17.9 v5.17.10 v5.17.11 v5.17.12 v5.17.13 v5.17.14 v5.17.15 v5.18.0 v5.18.5v5.18.10 v5.18.11 v5.18.12 v5.18.13 v5.18.14 v5.18.15 v5.18.16 v5.18.17 v5.18.18 v5.18.19v5.19.0 v5.19.5 v5.19.8 v5.19.9 v5.19.10 v5.19.11 v5.19.12 v5.19.13 v5.19.14 v5.19.15v5.19.16 v5.19.17 v6.0.0 v6.0.5 v6.0.10 v6.0.11 v6.0.12 v6.0.13 v6.0.14 v6.0.15v6.0.16 v6.0.17 v6.0.18 v6.0.19 v6.1.0 v6.1.5 v6.1.10 v6.1.15 v6.1.20 v6.1.25v6.1.30 v6.1.35 v6.1.40 v6.1.45 v6.1.50 v6.1.55 v6.1.60 v6.1.65 v6.1.70 v6.1.75v6.1.80 v6.1.85 v6.1.90 v6.1.95 v6.1.100 v6.1.105 v6.1.108 v6.1.109 v6.1.110 v6.1.111v6.1.112 v6.1.113 v6.1.116 v6.1.117 v6.1.118 v6.1.119 v6.1.120 v6.1.121 v6.1.122 v6.2.0v6.2.5 v6.2.7 v6.2.8 v6.2.9 v6.2.10 v6.2.11 v6.2.12 v6.2.13 v6.2.14 v6.2.15v6.2.16 v6.3.0 v6.3.4 v6.3.5 v6.3.6 v6.3.7 v6.3.8 v6.3.9 v6.3.10 v6.3.11v6.3.12 v6.3.13 v6.4.0 v6.4.5 v6.4.7 v6.4.8 v6.4.9 v6.4.10 v6.4.11 v6.4.12v6.4.13 v6.4.14 v6.4.15 v6.4.16 v6.5.0 v6.5.4 v6.5.5 v6.5.6 v6.5.7 v6.5.8v6.5.9 v6.5.10 v6.5.11 v6.5.12 v6.5.13 v6.6.0 v6.6.5 v6.6.10 v6.6.15 v6.6.20v6.6.25 v6.6.30 v6.6.35 v6.6.40 v6.6.45 v6.6.50 v6.6.52 v6.6.53 v6.6.54 v6.6.55v6.6.56 v6.6.57 v6.6.60 v6.6.61 v6.6.62 v6.6.63 v6.7.0 v6.7.3 v6.7.4 v6.7.5v6.7.6 v6.7.7 v6.7.8 v6.7.9 v6.7.10 v6.7.11 v6.7.12 v6.8.0 v6.8.1 v6.8.2v6.8.3 v6.8.4 v6.8.5 v6.8.6 v6.8.7 v6.8.8 v6.8.9 v6.8.10 v6.8.11 v6.8.12v6.9.0 v6.9.1 v6.9.2 v6.9.3 v6.9.4 v6.9.5 v6.9.6 v6.9.7 v6.9.8 v6.9.9v6.9.10 v6.9.11 v6.9.12 v6.10.0 v6.10.1 v6.10.2 v6.10.3 v6.10.4 v6.10.5 v6.10.6v6.10.7 v6.10.8 v6.10.9 v6.10.10 v6.10.11 v6.10.12 v6.10.13 v6.10.14 v6.11.0 v6.11.1v6.11.2 v6.11.3 v6.11.4 v6.11.7 v6.11.8 v6.11.9 v6.11.10 v6.11.11 v6.12.0 v6.12.1v6.12.2 v6.12.3 v6.12.5 v6.12.6 v6.12.7 可以看到 kernel.ubuntu.com官网上的可用内核版本。
但是我选择了v6.12.6 这个版本
sudo ubuntu-mainline-kernel.sh
-i
v6.12.6 照旧报错。试过很多方法,照旧报错。有点挫败感。后来debug过程请加入下文的其他部门。是从安装Ubuntu22的一个例子中受到的启发,是不是Ubuntu20不支持太新的kernel版本啊,所以尝试了下面的版本。发现成功了。满意了最低的大于5.5的要求。
第五步:安装合适的版本
下面是我选择的版本5.5.10
sudo ubuntu-mainline-kernel.sh
-i
v5.5.10 实行结果
root@ubuntu-xxx:~# sudo ubuntu-mainline-kernel.sh
-i
v5.5.10dpkg-query: no packages found matching linux-image-unsigned-5.19.0-051900-generic_5.19.0-051900.202207312230_amd64.debDownloading index from kernel.ubuntu.comWill download 6 files from kernel.ubuntu.com:Downloading linux-headers-5.5.10-050510_5.5.10-050510.202003180732_all.deb: 100% Downloading linux-headers-5.5.10-050510-generic_5.5.10-050510.202003180732_amd64.deb: 100% Downloading linux-image-unsigned-5.5.10-050510-generic_5.5.10-050510.202003180732_amd64.deb: 100% Downloading linux-modules-5.5.10-050510-generic_5.5.10-050510.202003180732_amd64.deb: 100% Downloading CHECKSUMS: 100% Downloading CHECKSUMS.gpg: 100% Importing kernel-ppa gpg key okSignature of checksum file has been successfully verifiedChecksums of deb files have been successfully verified with sha256sumInstalling 4 packagesCleaning up work folder 第六步:重启服务器
sudo reboot
第七步:检察更新后的版本
检察版本
uname -r
实行结果
$uname -r
5.5.10-050510-generic 显示成功
其他
我还尝试过手动安装5.19版本,但是这个例子针对的是Ubuntu22(照旧来源于https://askubuntu.com/questions/1388115/how-do-i-update-my-kernel-to-the-latest-one),而我是Ubuntu20,但是死马当活马医,测试一下,但是对我有了启发,才让上面的过程顺利完成。
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.19/amd64/linux-headers-5.19.0-051900_5.19.0-051900.202207312230_all.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.19/amd64/linux-headers-5.19.0-051900-generic_5.19.0-051900.202207312230_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.19/amd64/linux-image-unsigned-5.19.0-051900-generic_5.19.0-051900.202207312230_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.19/amd64/linux-modules-5.19.0-051900-generic_5.19.0-051900.202207312230_amd64.deb
sudo apt install ./linux-headers-5.19.0*.deb ./linux-image-unsigned-5.19.0*.deb ./linux-modules-5.19.0*.deb
下面是实行结果:依赖太低,天然是不可
root@ubuntu-xxx:~# sudo apt install ./linux-headers-5.19.0*.deb ./linux-image-unsigned-5.19.0*.deb ./linux-modules-5.19.0*.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'linux-headers-5.19.0-051900' instead of './linux-headers-5.19.0-051900_5.19.0-051900.202207312230_all.deb'
Note, selecting 'linux-headers-5.19.0-051900-generic' instead of './linux-headers-5.19.0-051900-generic_5.19.0-051900.202207312230_amd64.deb'
Note, selecting 'linux-image-unsigned-5.19.0-051900-generic' instead of './linux-image-unsigned-5.19.0-051900-generic_5.19.0-051900.202207312230_amd64.deb'
Note, selecting 'linux-modules-5.19.0-051900-generic' instead of './linux-modules-5.19.0-051900-generic_5.19.0-051900.202207312230_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
linux-headers-5.19.0-051900-generic : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.9 is to be installed
Depends: libssl3 (>= 3.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
这个启发是什么呢?可能Ubuntu20不能支持太高的版本,所以选择一个低版本。
解析下令 sudo install ubuntu-mainline-kernel.sh
/usr/local/bin/
这个下令的作用是将下载的 ubuntu-mainline-kernel.sh
脚本安装到系统的 /usr/local/bin/ 目次下,并赋予实行权限,以便用户可以在终端中随时通过下令行实行它。
下令解析:
sudo install ubuntu-mainline-kernel.sh
/usr/local/bin/
[*]sudo:
使用超等用户权限实行下令,因为将文件复制到系统目次(/usr/local/bin/)需要管理员权限。
[*]install:
[*]install 下令的作用:复制文件并设置权限。
[*]通常用作高级版的 cp(复制)下令,同时可以设置文件权限和全部者信息。
[*]ubuntu-mainline-kernel.sh
:
下载的脚本文件,准备进行复制和安装。
[*]/usr/local/bin/:
[*]这是 Linux 系统的 可实行文件目次,存放用户自定义或手动安装的可实行程序。
[*]将脚本复制到这里,可以直接使用下令名(ubuntu-mainline-kernel.sh
)在终端中运行,而不需要指定完备路径。
为什么需要这一步?
[*] 如果不实行这一步,脚本只能通过如下方式运行:
./ubuntu-mainline-kernel.sh
大概提供完备路径:
/home/user/ubuntu-mainline-kernel.sh
[*] 安装到 /usr/local/bin/ 后,可以直接使用以下下令在任何路径实行脚本:
ubuntu-mainline-kernel.sh
增补:install下令的更多功能
sudo install -m 755 ubuntu-mainline-kernel.sh
/usr/local/bin/
[*]-m 755:设置文件权限为 755(全部者可读、可写、可实行,其他用户可读、可实行)。
[*]这种设置确保脚本在需要时可实行,而不会因为权限不足无法运行。
总结
这条下令是为了将脚本复制到系统的可实行文件目次,并赋予必要权限,使用户可以更方便地在任何路径下实行该脚本,而无需输入完备路径或手动指定权限。
解析下令 sudo ubuntu-mainline-kernel.sh
-c
下令:
sudo ubuntu-mainline-kernel.sh
-c 作用:
该下令使用 ubuntu-mainline-kernel.sh
脚本检查 (check) 当前系统是否有更新的内核版本可用,以及本机已安装的内核版本。
具体功能解析:
[*]sudo:
使用超等用户权限运行脚本,因为查询内核相关信息和操作需要系统管理权限。
[*]ubuntu-mainline-kernel.sh
:
是一个 Bash 脚本,用于管理 Ubuntu 系统中的主线内核(Mainline Kernel)。
[*]它从 kernel.ubuntu.com 上检查主线内核版本,并提供安装、删除和管理内核的功能。
[*]-c (check):
[*]检查最新的可用内核版本(官方已发布的主线内核版本)。
[*]检查当前系统上已安装的内核版本。
[*]比较两者,判断是否有新版本可以更新。
实行示例输出:
Finding latest version available on kernel.ubuntu.com: v6.12.7
Finding latest installed version: v6.12.5
A newer kernel version (v6.12.7) was found but the build was not successful
表明:
[*]最新版本可用:v6.12.7 是从远程服务器查询到的最新版本。
[*]已安装版本:v6.12.5 是当前系统中安装的内核版本。
[*]更新情况:陈诉有新版本 v6.12.7,但此版本的构建未成功,因此无法安装。
用途:
[*]检查系统内核是否需要更新。
[*]提供安装建议,资助用户决定是否需要升级内核。
[*]避免手动查询内核版本,进步服从。
注意事项:
[*] 此下令不会更改任何系统设置或安装新内核,仅用于检查状态。
[*] 若需要安装更新,可以实行以下下令:
sudo ubuntu-mainline-kernel.sh
-i
v6.12.6 或安装最新可用版本:
sudo ubuntu-mainline-kernel.sh
-i
总结:
该下令的作用是检查当前系统的内核版本与最新版本的差异,并判断是否有更新可用,但不会对系统做任何更改,是一个安全的状态查询操作。
参考
https://askubuntu.com/questions/1388115/how-do-i-update-my-kernel-to-the-latest-one
跋文
2025年1月8日19点07分于上海,在GPT4o大模子辅助下完成。
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]