Also a general way (works also on non-Ubuntu distros as well):
lsb_release -a
It uses /etc/os-release to read the config data. On .deb-based distros, also /etc/dpkg should correct as so. After a manual shift to/from Ubuntu, this should be manually corrected.
ubuntu-distro-info
from the distro-info package provides information about all Ubuntu releases.You get an overview of all releases with
For the "current" version
For the current LTS release
For currently supported releases
(This strangely includes the current development version although it is not supported yet)
To get the number of days till EndOfLive you add
--days=eol
(shorter-yeol
)To get the number of days till the current development version will be released you can use just
-y
or--days
Also a general way (works also on non-Ubuntu distros as well):
It uses
/etc/os-release
to read the config data. On .deb-based distros, also/etc/dpkg
should correct as so. After a manual shift to/from Ubuntu, this should be manually corrected.