You have been subscribed to a public bug:
== Comment: #0 - SONG YANG <[email protected]> - 2014-11-18 22:06:44 ==
---Problem Description---
"VERSION_ID" in /etc/os-release of ubuntu 14.04.1 is not correct
---uname output---
Linux c910f03c05k05 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:50:31 UTC
2014 ppc64le ppc64le ppc64le GNU/Linux
Machine Type = P8
---Debugger---
A debugger is not configured
---Steps to Reproduce---
# apt-file find /etc/os-release
base-files: /etc/os-release
# cat /etc/os-release
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
according to the manpage of /etc/os-release, the "VERSION_ID" should be
"14.04.1", however it still keeps "14.04",which is confused for the system
management tool developers. The "VERSION" and "PRETTY_NAME" seems to be
correct, however, these 2 fields are for presentation to the user, which is not
suitable for the script parsing.
The following lines are excerpted from the os-release DOC:
ID=
A lower-case string (no spaces or other characters outside of 0-9, a-z, ".",
"_" and "-") identifying the operating system, excluding any version
information and suitable for processing by scripts or usage in generated
filenames. If not set, defaults to "ID=linux". Example: "ID=fedora" or
"ID=debian".
ID_LIKE=
A space-separated list of operating system identifiers in the same syntax as
the ID= setting. It should list identifiers of operating systems that are
closely related to the local operating system in regards to packaging and
programming interfaces, for example listing one or more OS identifiers the
local OS is a derivative from. An OS should generally only list other OS
identifiers it itself is a derivative of, and not any OSes that are derived
from it, though symmetric relationships are possible. Build scripts and similar
should check this variable if they need to identify the local operating system
and the value of ID= is not recognized. Operating systems should be listed in
order of how closely the local operating system relates to the listed ones,
starting with the closest. This field is optional. Example: for an operating
system with "ID=centos", an assignment of "ID_LIKE="rhel fedora"" would be
appropriate. For an operating system with "ID=ubuntu", an assignment of
"ID_LIKE=deb
ian" is appropriate.
VERSION_ID=
A lower-case string (mostly numeric, no spaces or other characters outside of
0-9, a-z, ".", "_" and "-") identifying the operating system version, excluding
any OS name information or release code name, and suitable for processing by
scripts or usage in generated filenames. This field is optional. Example:
"VERSION_ID=17" or "VERSION_ID=11.04".
Install method: ALL
Install disk info: NA
Install ISO Information: ubuntu-14.04.1-server-ppc64el.iso
Userspace tool common name: NA
The userspace tool has the following bit modes: both
Userspace rpm: NA
Userspace tool obtained from project website: base-files
** Affects: base-files (Ubuntu)
Importance: Undecided
Status: New
** Tags: architecture-all bot-comment bugnameltc-119066 severity-critical
targetmilestone-inin---
--
"VERSION_ID" in /etc/os-release of ubuntu 14.04.1 is not correct
https://bugs.launchpad.net/bugs/1394469
You received this bug notification because you are a member of Ubuntu Touch
seeded packages, which is subscribed to base-files in Ubuntu.
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp