Jenkins fails to find a valid openjdk version on Ubuntu 20.04 when the version of openjdk includes more than three dots such as 18.104.22.168.
The sed regex used in the init script needs to be updated to more accurately match the version string.
This is similar to bug
|Field||Original Value||New Value|
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Status||In Progress [ 3 ]||In Review [ 10005 ]|
|Resolution||Fixed [ 1 ]|
|Status||In Review [ 10005 ]||Fixed but Unreleased [ 10203 ]|
|Remote Link||This issue links to "PR-198 update JDK version check in init script (Web Link)" [ 26342 ]|
|Comment||[ [~markewaite], just installed 2.263.1 on a test host. Looks like the fix is not included. ]|
|Summary||Debian/Ubuntu installer fails with openjdk 22.214.171.124||Debian/Ubuntu installer fails with OpenJDK 126.96.36.199|
|Status||Fixed but Unreleased [ 10203 ]||Closed [ 6 ]|
|Released As||2.263.1||Jenkins core 2.263.1|