should show you where the kernel is installed from (e.g. jammy vs. jammy-updates). However, based on the version numbers seen in $(uname -r), it appears you are running 22.04 (jammy) on one machine, and 24.04 (noble) on another? Or, at least, the kernel versions suggest that.
The output of:
$ apt policy linux-image-generic
should show you where the kernel is installed from (e.g. jammy vs. jammy-updates). However, based on the version numbers seen in $(uname -r), it appears you are running 22.04 (jammy) on one machine, and 24.04 (noble) on another? Or, at least, the kernel versions suggest that.