请问下如何修改deepin的版本信息为ubuntu?
Tofloor
poster avatar
roooobert
deepin
2018-03-26 06:41
Author
因为工作需要安装一个scvpn ,但是这个软件的安装包有系统版本限制,需要ubuntu才可以安装,我想的是怎么改一下版本信息,骗过这个安装程序?
Reply Favorite View the author
All Replies
avatar
roooobert
deepin
2018-03-26 06:43
#1
百度了一下改/etc/issue和/etc/lsb-release都不行
Reply View the author
avatar
iminto
deepin
2018-03-26 17:56
#2
本帖最后由 iminto 于 2018-3-26 10:01 编辑

这个问题我也反馈过,确实很无语。死心吧,deepin本来就不兼容ubuntu的,就算改了也不行,况且没法改。

很多软件通过 uname -a来判断操作系统,
uname读取的就是这个文件了/proc/version,但这个文件修改不了。

这个文件的内容是编译的时候就写死的。

可以参考:https://blog.csdn.net/skywalkzf/article/details/6806928
Reply View the author
Comments
ihipop
2018-03-26 19:39
mount --bind 可以覆盖
avatar
iminto
deepin
2018-03-26 18:03
#3
建议联系软件作者反馈下,或者看看有没有命令行客户端
Reply View the author
avatar
roooobert
deepin
2018-03-26 21:29
#4
https://bbs.deepin.org/post/154667
这个问题我也反馈过,确实很无语。死心吧,deepin本来就不兼容ubuntu的,就算改了也不行,况且没法改。

很 ...

官网下载下来的安装包是run格式的,我在想能不能修改这个run文件,跳过系统版本检测。
Reply View the author
avatar
duanyao
deepin
2018-03-27 03:00
#5
这说明“人类从不吸取历史教训”啊。过去几十年 Windows 程序和 Web 页面中写死依赖的平台版本的悲剧又在 Linux 中重演。23333
Reply View the author
avatar
duanyao
deepin
2018-03-27 03:03
#6
https://bbs.deepin.org/post/154667
这个问题我也反馈过,确实很无语。死心吧,deepin本来就不兼容ubuntu的,就算改了也不行,况且没法改。

很 ...

不一定,看软件具体怎么实现的。只能说软件开发者只测试过他列出的那些版本,他怎么知道他没用过的版本是否兼容呢?
Reply View the author
avatar
duanyao
deepin
2018-03-27 03:13
#7
本帖最后由 duanyao 于 2018-3-26 19:18 编辑
https://bbs.deepin.org/post/154667
官网下载下来的安装包是run格式的,我在想能不能修改这个run文件,跳过系统版本检测。 ...

如果是根据内核版本判断系统版本的,可以下载 deepin 内核源码,修改版本字符串,编译后安装。
或者,装 ubuntu 的内核试试:
https://bbs.deepin.org/post/151193
Reply View the author
avatar
xdlkc
deepin
2018-03-27 05:52
#8
debian很无奈。。。
Reply View the author
avatar
roooobert
deepin
2018-03-27 20:58
#9
https://bbs.deepin.org/post/154667
如果是根据内核版本判断系统版本的,可以下载 deepin 内核源码,修改版本字符串,编译后安装。
或者,装 u ...

内核这个不敢动,怕搞坏系统,现在只能暂时用下虚拟机了
Reply View the author
avatar
iminto
deepin
2018-03-27 22:12
#10
https://bbs.deepin.org/post/154667
这说明“人类从不吸取历史教训”啊。过去几十年 Windows 程序和 Web 页面中写死依赖的平台版本的悲剧又在 L ...

linux必须这样做啊,要不然依赖冲突造成的破坏太大了
Reply View the author
avatar
duanyao
deepin
2018-03-27 22:27
#11
https://bbs.deepin.org/post/154667
内核这个不敢动,怕搞坏系统,现在只能暂时用下虚拟机了

其实没事,只要不删除原来的内核,在 grub 菜单里加入新内核,有问题了换回原来的内核就可以。
Reply View the author
avatar
duanyao
deepin
2018-03-27 22:39
#12
https://bbs.deepin.org/post/154667
linux必须这样做啊,要不然依赖冲突造成的破坏太大了

所以说你也并不理解“历史教训”是什么。
仅以楼主的例子而言,最高仅支持到 Ubuntu 14.04,这意味着 Ubuntu 16.x、17.x 也无法安装,即使它们向下兼容 14.04!
这也意味着即使是基于 Ubuntu 并兼容于 Ubuntu 14.04 的发行版也无法安装!Ubuntu 是商标,其他组织无法使用的。
Reply View the author
avatar
wufanjames
deepin
2018-12-11 20:58
#13
遇到同样的问题,很习惯用deepin做开发,然而装不了scvpn很不方便,哪位大佬能给一个解决方案
Reply View the author
avatar
lvhill
deepin
2019-06-13 20:23
#14
现在也遇到这个问题
Reply View the author
avatar
Feng Yu
deepin
2019-06-13 20:46
#15
改/etc/os-release就行了,把ubuntu的复制过去就行了
Reply View the author
avatar
lvhill
deepin
2019-06-13 23:08
#16
https://bbs.deepin.org/post/154667
改/etc/os-release就行了,把ubuntu的复制过去就行了

求Ubuntu 16的信息
Reply View the author
avatar
lvhill
deepin
2019-06-13 23:40
#17
感谢16楼的帮助, 已在deepin linux 成功安装上hillstone secure connect vpn, 且成功连接上了公司的vpn, 完整的步骤如下:
(1)sudo cp /usr/lib/os-release /usr/lib/os-release.bak    (/etc/os-release其实是/usr/lib/os-release的软链接)
(2)sudo vim /etc/os-release, 替换为Ubuntu14.04的信息:

NAME="Ubuntu"
VERSION="14.04 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04 LTS"
VERSION_ID="14.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

(3)安装SCVPN即可
Reply View the author
avatar
zicheqingluo
deepin
2019-11-23 21:34
#18
不管用。不知道是不是因为自己编译的内核
Reply View the author
avatar
sp910
deepin
2020-03-05 19:20
#19
本帖最后由 sp910 于 2020-3-5 15:06 编辑
https://bbs.deepin.org/post/154667
感谢16楼的帮助, 已在deepin linux 成功安装上hillstone secure connect vpn, 且成功连接上了公司的vpn, 完 ...

@lvhill
我按照您的这个方式试了,可以成功安装scvpn,可是在连接的时候一直提示身份验证错误,您遇到过这个问题吗?
Reply View the author
avatar
快老年痴呆了
deepin
2020-03-07 04:59
#20

是依赖的编译程序版本不兼容造成的
Reply View the author