Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report: "VERSION_CODENAME" field absent in os-release file #1931

Closed
iamhyc opened this issue Oct 1, 2020 · 7 comments
Closed

Bug report: "VERSION_CODENAME" field absent in os-release file #1931

iamhyc opened this issue Oct 1, 2020 · 7 comments
Assignees

Comments

@iamhyc
Copy link

iamhyc commented Oct 1, 2020

Until Deepin v20 (1003), lsb_release -a would tell n/a for "Codename" section.

But actually, it should output "apricot" for Deepin v20, where /usr/lib/os-release file is to blame for the absence of "VERSION_CODENAME" field.

This section may be helpful when someone (saying a friend of mine :) tries add-apt-repository on Deepin, but finds confusing "No template for Deepin/n/a" and wonders what's "/n/a" for.

@hualet @zccrs

@XMuli
Copy link
Member

XMuli commented Oct 12, 2020

@felixonmars Maybe he can help you explain.

@peeweep peeweep added bug | porting bug | 移植问题 and removed bug | porting bug | 移植问题 labels Dec 30, 2021
@peeweep
Copy link

peeweep commented Dec 30, 2021

You can't use add-apt-repository to add ubuntu repositories on Deepin, we are based on Debian.

Is there any other use for VERSION_CODENAME?

@iamhyc
Copy link
Author

iamhyc commented Dec 30, 2021

You can't use add-apt-repository to add ubuntu repositories on Deepin, we are based on Debian.

Is there any other use for VERSION_CODENAME?

As what I have claimed, someone would like to try for a luck and found the confusing "/n/a" postfix after "Deepin".

Not sure what is the codename for v20.3, but back in 2020, you did have "apricot" as the codename for the repo.

刚看了眼论坛,不还是apricot吗;虽然这个是optional,但可以加上吗,至少看着好看?
https://www.freedesktop.org/software/systemd/man/os-release.html#VERSION_CODENAME=

@peeweep
Copy link

peeweep commented Dec 30, 2021

Yes, apricot is also the codename of v20.3 now. I want to know if there are other apps that read VERSION_CODENAME, if not, there is no need to add it.

@iamhyc
Copy link
Author

iamhyc commented Dec 30, 2021

VERSION_CODENAME

Yes, apricot is also the codename of v20.3 now. I want to know if there are other apps that read VERSION_CODENAME, if not, there is no need to add it.

Not apps, but third-party repos do. For example, nodejs, nodesource/distributions#638.

The current solution now is still to fake yourself as Debian10.

@peeweep
Copy link

peeweep commented Dec 30, 2021

正在处理

$ lsb_release -c -s
apricot

@iamhyc
Copy link
Author

iamhyc commented Jan 1, 2022

$ lsb_release -a
No LSB modules are available.
Distributor ID: Deepin
Description:    Deepin 20.4
Release:        20.4
Codename:       apricot

v20.4 已确认修复,辛苦。

@iamhyc iamhyc closed this as completed Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants