Ubuntu 和 Debian 之间的版本关系
查看方法
在Ubuntu或Debian系统上查看系统版本,可以使用以下几种方法:
1. 使用 lsb_release 命令
XML/HTML代码
- lsb_release -a
2. 查看 /etc/os-release 文件
XML/HTML代码
- cat /etc/os-release
3. 查看 /etc/issue 文件
XML/HTML代码
- cat /etc/issue
- #或者
- cat /etc/issue.net
4. 查看 /etc/debian_version
XML/HTML代码
- cat /etc/debian_version
5. 使用 hostnamectl 命令
XML/HTML代码
- hostnamectl
这几种方法都可以获取Ubuntu或Debian的版本信息,你可以选择适合你的方式。
XML/HTML代码
- Ubuntu Version Ubuntu Codename /etc/debian_version Debian Version
- 24.04 LTS Noble Numbat trixie/sid 13
- 23.10 Mantic Minotaur trixie/sid 13
- 23.04 Lunar Lobster bookworm/sid 12
- 22.10 Kinetic Kudu bookworm/sid 12
- 22.04 LTS Jammy Jellyfish bookworm/sid 12
- 21.10 Impish Indri bullseye/sid 11
- 21.04 Hirsute Hippo bullseye/sid 11
- 20.10 Groovy Gorilla bullseye/sid 11
- 20.04 LTS Focal Fossa bullseye/sid 11
- 19.10 Eoan Ermine buster/sid 10
- 19.04 Disco Dingo buster/sid 10
- 18.10 Cosmic Cuttlefish buster/sid 10
- 18.04 LTS Bionic Beaver buster/sid 10
- 17.10 Artful Aardvark stretch/sid 9
- 17.04 Zesty Zapus stretch/sid 9
- 16.10 Yakkety Yak stretch/sid 9
- 16.04 LTS Xenial Xerus stretch/sid 9
- 15.10 Wily Werewolf jessie/sid 8
- 15.04 Vivid Vervet jessie/sid 8
- 14.10 Utopic Unicorn jessie/sid 8
- 14.04 LTS Trusty Tahr jessie/sid 8
- 13.10 Saucy Salamander wheezy/sid 7
- 13.04 Raring Ringtail wheezy/sid 7
- 12.10 Quantal Quetzal wheezy/sid 7
- 12.04 LTS Precise Pangolin wheezy/sid 7
- 11.10 Oneiric Ocelot wheezy/sid 7
- 11.04 Natty Narwhal squeeze/sid 6
- 10.10 Maverick Meerkat squeeze/sid 6
- 10.04 LTS Lucid Lynx squeeze/sid 6
Ubuntu各个版本支持周期
XML/HTML代码
- Released End of Standard Support End of Ubuntu Pro Support End of Legacy Support End of Legacy Support
- 24.10 (Oracular Oriole) Oct 2024 Jul 2025
- 24.04 LTS (Noble Numbat) Apr 2024 Apr 2029 Apr 2034 Apr 2036
- 22.04 LTS (Jammy Jellyfish) Apr 2022 Apr 2027 Apr 2032 Apr 2034
- 20.04 LTS (Focal Fossa) Apr 2020 May 2025 Apr 2030 Apr 2032
- 18.04 LTS (Bionic Beaver) Apr 2018 May 2023 Apr 2028 Apr 2030
- 16.04 LTS (Xenial Xerus) Apr 2016 Apr 2021 Apr 2026 Apr 2028
- 14.04 LTS (Trusty Tahr) Apr 2014 Apr 2019 Apr 2024 Apr 2026
Debian各个版本支持周期
XML/HTML代码
- LTS schedule (last updated: August 14th, 2024)
- 版本 支持构架 支持期
- 到期LTS版本
- Debian 6 “Squeeze” i386 and amd64 2nd June 2014 to 29th of February 2016
- Debian 7 “Wheezy” i386, amd64, armel and armhf 26th April 2016 to 31st May 2018
- Debian 8 “Jessie” i386, amd64, armel and armhf 17th June 2018 to June 30, 2020
- Debian 9 “Stretch” i386, amd64, armel, armhf and arm64 July 6, 2020 to June 30, 2022
- Debian 10 “Buster” i386, amd64, armhf and arm64 August 1st, 2022 to June 30th, 2024
- 当期LTS版本
- Debian 11 “Bullseye” i386, amd64, armhf and arm64 August 15th, 2024 to August 31st, 2026
- 未来LTS版本
- Debian 12 “Bookworm” i386, amd64, armhf and arm64 June 11th, 2026 to June 30th, 2028
Debian稳定版本提供3年的完整支持和额外2年的LTS支持。LTS由志愿者团队维护,而ELTS是商业服务,由Freexian管理,可将支持延长至10年。稳定版本的生命周期结束日期通常是在下一个版本发布后的一年。也就是上面支持到期后还有5年的支持期。
总结:通过对比可以发现Ubuntu和Debian的版本对应关系对应,Ubuntu的偶数04版本对应Debian稳定版,是长期支持版本,支持周期和Debian的支持周期几乎一样。奇数版本为不稳定版本,如果做服务器或者长期使用,Debian任意版本都可以,尽可能采用新版本,支持周期长,Ubuntu采用22.04,24.04等长期支持版本,稳定并且支持周期长。