{"id":51642,"date":"2026-07-24T11:26:55","date_gmt":"2026-07-24T11:26:55","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=51642"},"modified":"2026-07-24T11:26:55","modified_gmt":"2026-07-24T11:26:55","slug":"ubuntu-remove-etc-debian-version","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2026\/07\/ubuntu-remove-etc-debian-version\/","title":{"rendered":"Ubuntu to Fix A 20 Years Old Bug by Removing \/etc\/debian_version"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-48939\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/debian-logo-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/debian-logo-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/debian-logo-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/debian-logo-icon-700x700.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/debian-logo-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/05\/debian-logo-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>Ubuntu is finally going to remove the <code>\/etc\/debian_version<\/code> file to close a bug that was reported almost 21 years ago on July 31, 2005.<\/p>\n<p>The Debian and Ubuntu developer, Benjamin Drung, announced the decision on <a href=\"https:\/\/lists.ubuntu.com\/archives\/ubuntu-devel\/2026-July\/043633.html\" target=\"_blank\" rel=\"noopener\">Ubuntu Devel channel<\/a>:<\/p>\n<blockquote><p><i>Hi everyone, any objection to remove \/etc\/debian_version from base-files? \/etc\/os-release has been the de-facto standard in the last 10 years. Tools that look at \/etc\/debian_version should look at \/etc\/os-release instead.<\/i><\/p>\n<p><i>Please let me close this bug after 20 years:<br \/>\n<a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/base-files\/+bug\/19353\" target=\"_blank\" rel=\"noopener\">https:\/\/bugs.launchpad.net\/ubuntu\/+source\/base-files\/+bug\/19353<\/a><\/i><\/p><\/blockquote>\n<p><!--more--><\/p>\n<h3>What is <code>\/etc\/debian_version<\/code> file<\/h3>\n<p>The <code>\/etc\/debian_version<\/code> file from <code>base-files<\/code> package tells which version of Debian package base that the current Ubuntu system is based on.<\/p>\n<p>As Ubuntu (during the development) mostly imports Debian packages from its Unstable branch (code-name <code>sid<\/code>), and, Debian Unstable is the development branch from which the next stable release is prepared. The file content usually looks like <code>bookworm\/sid<\/code>, <code>trixie\/sid<\/code>, or <code>forky\/sid<\/code>.<\/p>\n<p>For Ubuntu 26.04, <code>\/etc\/debian_version<\/code> file contains <code>forky\/sid<\/code>, meaning the system is associated with Debian Unstable (<code>sid<\/code>) in the period that Debian 14 (<code>forky<\/code>) are prepared.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51643\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/etcdebian-version-700x537.webp\" alt=\"\" width=\"610\" height=\"468\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/etcdebian-version-700x537.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/etcdebian-version-300x230.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/etcdebian-version.webp 702w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>The file is mainly intended for scripts and programs to detect Debian-based system or check which Debian release the system is compatible with.<\/p>\n<h3>Why to remove the file?<\/h3>\n<p>As the Ubuntu developer announced, scripts and programs should look at <code>\/etc\/os-release<\/code> file, which has been the de-facto standard in the last 10 years, instead of <code>\/etc\/debian_version<\/code>. And, due to the favor of <code>\/etc\/os-release<\/code>, most recent build of <code>base-files<\/code> has removed <code>\/etc\/lsb-release<\/code>.<\/p>\n<p>As Ubuntu has been one of the top popular Linux Distributions and it also includes so many libraries that are not available in Debian, most Linux programs now provide Ubuntu support without needing to know which version of Debian it&#8217;s based on.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/basefiles-removelsbrelease.webp\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/basefiles-removelsbrelease-700x576.webp\" alt=\"\" width=\"610\" height=\"502\" class=\"aligncenter size-large wp-image-51644\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/basefiles-removelsbrelease-700x576.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/basefiles-removelsbrelease-300x247.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/basefiles-removelsbrelease-768x632.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/07\/basefiles-removelsbrelease.webp 935w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>If you have some tools that are still looking to <code>\/etc\/debian_version<\/code> file, then you may now ask developers to update, as the file will be possibly removed in the next Ubuntu 26.10.<\/p>","protected":false},"excerpt":{"rendered":"<p>Ubuntu is finally going to remove the \/etc\/debian_version file to close a bug that was reported almost 21 years ago on July 31, 2005. The Debian and Ubuntu developer, Benjamin Drung, announced the decision on Ubuntu Devel channel: Hi everyone, any objection to remove \/etc\/debian_version from base-files? \/etc\/os-release has been the de-facto standard in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":48939,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[773],"class_list":["post-51642","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-debian"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/51642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=51642"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/51642\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/48939"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=51642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=51642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=51642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}