Very few are looking at this command. Not even How to check Whonix version in Qubes - Michael Altfield's Tech Blog who tried some things. So won’t fix since messing with that creates more issues than good.
The solution would be to have a better message. Instead of:
WARNING: Whonix News Result: ✘ Outdated: Installed whonix-gateway-packages-dependencies 3.4.2-1 is outdated! You should update. You can automatically update using Whonix’s internal updater. Please update using: sudo apt-get update && sudo apt-get dist-upgrade
It could have a link to Release Upgrade.
A real solution:
cat /etc/whonix_version
whonixcheck --verbose --function show_versions
Includes:
[INFO] [whonixcheck] whonix_build_version: 3:2.6-1
[INFO] [whonixcheck] whonix-gateway-packages-dependencies-cli: 7.9-1
[INFO] [whonixcheck] /etc/whonix_version: 14