几年前,我在桌面上安装了 Ubuntu,并决定添加 BunsenLabs 存储库并在其中安装 Bunsen 桌面。但是有一点小问题:该软件包还替换了/etc/os-release
。我的问题是如何将我的os-release
和lsb-release
(也经过了修改)恢复到原始状态?
原始操作系统信息:Ubuntu 16.04 64 位 Xenial Xerus
新操作系统信息:BunsenLabs GNU/Linux 8.6 (Hydrogen)
我的当前os-release
ANSI_COLOR="0;34"
BUG_REPORT_URL="https://github.com/BunsenLabs"
HOME_URL="https://bunsenlabs.org"
ID=bunsenlabs
ID_LIKE="debian"
NAME="BunsenLabs GNU/Linux"
PRETTY_NAME="BunsenLabs GNU/Linux 8.6 (Hydrogen)"
SUPPORT_URL="https://forums.bunsenlabs.org"
VERSION="8.6 (Hydrogen)"
VERSION_ID="8.6"
我的当前lsb-release
DISTRIB_ID="BunsenLabs"
DISTRIB_DESCRIPTION="BunsenLabs GNU/Linux 8.6 (Hydrogen)"
DISTRIB_RELEASE="8.6"
DISTRIB_CODENAME="bunsen-hydrogen"
输出apt-cache policy base-files
base-files:
Installed: 9.4ubuntu4.3
Candidate: 9.4ubuntu4.3
Version table:
*** 9.4ubuntu4.3 500
500 http://opensource.xtdv.net/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
9.4ubuntu4 500
500 http://opensource.xtdv.net/ubuntu xenial/main amd64 Packages
答案1
我找到了答案。
根据用户链接到我的网站,该命令dpkg -S os-release
显示:
diversion by bunsen-os-release from: /etc/os-release
diversion by bunsen-os-release to: /etc/os-release.bunsen-orig
里面os-release.bunsen-orig
是原始os-release
文件。我还注意到,os-release
只是一个指向的 simlink os-release.bunsen
,是指向 中的os-release.bunsen-orig
“最原始”文件的 simlink 。由于我懒得弄清楚如何制作 simlink,所以我只是os-release
/usr/lib/os-release
复制os-release.bunsen-orig
到os-release
。