mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
完成翻译
This commit is contained in:
parent
9b9e7b248f
commit
3ac43d8d04
@ -1,98 +0,0 @@
|
||||
[#]: subject: "It’s Time More Linux Distros and DEs Become ‘Linus-Proof’"
|
||||
[#]: via: "https://news.itsfoss.com/more-linux-distros-become-linus-proof/"
|
||||
[#]: author: "Abhishek https://news.itsfoss.com/author/root/"
|
||||
[#]: collector: "lujun9972"
|
||||
[#]: translator: "imgradeone"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
It’s Time More Linux Distros and DEs Become ‘Linus-Proof’
|
||||
======
|
||||
|
||||
The past few weeks have rattled the desktop Linux community.
|
||||
|
||||
Popular tech YouTuber Linus, not Torvalds but Sebastian, decided to use Linux on desktop for a month. Linus Sebastian wanted to see if Linux has gotten to the point where it is user friendly enough that any tech nerd can pick it up and run? His focus was also on [gaming on Linux][1] because PC gaming is an area Sebastian covers a lot.
|
||||
|
||||
That’s an interesting concept and many in the Linux community got excited because it was free publicity for desktop Linux to a wider tech audience.
|
||||
|
||||
Only, it went [horribly wrong in the very first part of the Linux Daily Driver Challenge][2].
|
||||
|
||||
### Linus Sebastian’s (in)famous Pop!OS moment
|
||||
|
||||
Linus Sebastian decided to [install Pop!_OS][3] because it is often considered a good mainstream distribution for gaming. He then tried to install Steam from the software center but the software center failed to install it.
|
||||
|
||||
![Sebastian encountered an issue with Steam installation][4]
|
||||
|
||||
When it did not work graphically, he went on to do what any other Linux user would have done. He turned to the terminal and ran the magical sudo apt-get install command.
|
||||
|
||||
![Sebastian switches to command line to install Steam][5]
|
||||
|
||||
In both graphical and terminal method, Pop!_OS showed a warning that the user was on the verge of removing some essential packages.
|
||||
|
||||
The command line method clearly warned, “_**You are about to do something potentially harmful. To continue type in the phrase ‘Yes, do as I say**_‘”.
|
||||
|
||||
![Ignores the warning about removing crucial packages][6]
|
||||
|
||||
For many Linux users, this could have been the point to pause and reflect. The output clearly shows that it is going to delete gdm3, pop-desktop and many other desktop environment elements.
|
||||
|
||||
But people often do not care about warnings. Linus Sebastian went ahead with it and ended up with a broken system that cannot be logged in graphically.
|
||||
|
||||
![Linus Sebastian \(not Torvalds\) after realizing his Pop!_OS install is messed up][7]
|
||||
|
||||
### Lesson for the desktop Linux developers
|
||||
|
||||
There are two lessons to learn here for the developers:
|
||||
|
||||
* Installing Steam or any other regular software should never have resulted in removal of critical graphical elements.
|
||||
* A user should not be able to remove the critical piece of software from a regular, mainstream distribution.
|
||||
|
||||
|
||||
|
||||
Pop!_OS quickly fixed the bug with Steam and also added a defensive mechanism to disable removal of critical desktop elements.
|
||||
|
||||
> For some reason, an i386 version of a package was never published on Launchpad. Steam being an i386 package, when trying to install it, it had to downgrade that package to the Ubuntu version to resolve dependencies, which removed Pop!_OS packages.
|
||||
>
|
||||
> — Jeremy Soller (@jeremy_soller) [October 26, 2021][8]
|
||||
|
||||
To prevent such incidents in the future, Pop!_OS patched the APT package manager. Now, POP!_OS won’t be able to enter “Yes, do as I Say”. Instead, they will have to add a special a file to enable it (if someone really wants to remove the packages).
|
||||
|
||||
That’s a good move by Pop!_OS. But this is not just a lesson for Pop!_OS. Most Linux distributions could encounter similar situation and end up deleting the desktop environment and display server itself.
|
||||
|
||||
KDE took a note and adds a feature to [disable the removal of Plasma desktop in the upcoming Plasma 5.24 release][9].
|
||||
|
||||
![KDE Plasma won’t allow you to remove Plasma Desktop][10]
|
||||
|
||||
Many people blamed Linus Sebastian for going ahead with the disaster despite clear warning. But here’s the thing, many users won’t care for “warnings”, no matter how technically advanced they are. People just assume that pressing Y or other similar stuff is just part of the procedure without thinking twice. Some other Linux users have encountered it in the past and many will encounter it in the future.
|
||||
|
||||
This is why adding failsafe is the wise step here. This is something all mainstream distributions should do.
|
||||
|
||||
#### Big Tech Websites Get Millions in Revenue, It's FOSS Got You!
|
||||
|
||||
If you like what we do here at It's FOSS, please consider making a donation to support our independent publication. Your support will help us keep publishing content focusing on desktop Linux and open source software.
|
||||
|
||||
I'm not interested
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://news.itsfoss.com/more-linux-distros-become-linus-proof/
|
||||
|
||||
作者:[Abhishek][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://news.itsfoss.com/author/root/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://itsfoss.com/linux-gaming-guide/
|
||||
[2]: https://www.youtube.com/watch?v=0506yDSgU7M&t=788s
|
||||
[3]: https://itsfoss.com/install-pop-os/
|
||||
[4]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0NyIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[5]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM4NSIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[6]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM3OCIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[7]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM2MiIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[8]: https://twitter.com/jeremy_soller/status/1453008808314351628?ref_src=twsrc%5Etfw
|
||||
[9]: https://news.itsfoss.com/kde-plasma-5-24-dev/
|
||||
[10]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM4OSIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
@ -0,0 +1,95 @@
|
||||
[#]: subject: "It’s Time More Linux Distros and DEs Become ‘Linus-Proof’"
|
||||
[#]: via: "https://news.itsfoss.com/more-linux-distros-become-linus-proof/"
|
||||
[#]: author: "Abhishek https://news.itsfoss.com/author/root/"
|
||||
[#]: collector: "lujun9972"
|
||||
[#]: translator: "imgradeone"
|
||||
[#]: reviewer: " "
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
是时候让更多 Linux 发行版和桌面环境接受“老莱暴捶”了
|
||||
======
|
||||
|
||||
> Linus Sebastian 体验 Pop!_OS 的视频狠狠地给桌面 Linux 社区上了一课。(LCTT 译注:“老莱”是国内网友对 Linus Sebastian 的称呼。)
|
||||
|
||||
过去的几周,整个 Linux 桌面社区沸腾了。
|
||||
|
||||
知名 YouTube 创作者 Linus(不是 Linux 之父 Torvalds,是 Linus Tech Tips 的 Sebastian)决定在一个月内挑战日常使用 Linux 桌面。Linus Sebastian 想了解 Linux 是否已经达到了对用户友好的程度,乃至于“技术呆”级别的用户都能轻松上手。他的专注点同样也放在了 [Linux 游戏][1] 上,毕竟电脑游戏确实也是 Sebastian 关注的一个领域。
|
||||
|
||||
这是一个有趣的概念,Linux 社区的许多人也十分兴奋,毕竟它向更广泛的技术受众群体免费宣传桌面 Linux 平台。
|
||||
|
||||
唯一美中不足的是,这个日用 Linux 挑战 [从一开始就出了大乱子][2]。(LCTT 译注:[bilibili][11] 中也有相应的中文字幕视频。)
|
||||
|
||||
### Linus Sebastian 的 Pop!_OS 名(或者说是“冥”)场面
|
||||
|
||||
(LCTT 译注:原文标题使用的是 (in)famous,同时指代“著名”和“臭名昭著”,此处的“冥场面”偏向事件悲剧性。)
|
||||
|
||||
Linus Sebastian 决定 [安装 Pop!_OS][3],因为 Pop!\_OS 经常在社区中作为适合游戏的主流发行版出现。接下来,他尝试在软件中心(即 Pop!\_Shop)安装 Steam,但软件中心未能成功安装 Steam。
|
||||
|
||||
![Sebastian 安装 Steam 时遇到了问题][4]
|
||||
|
||||
既然没能通过图形化方式安装,他接下来做了其他所有 Linux 用户都会做的事情。他打开了终端,运行了神奇的 `sudo apt-get install` 命令。
|
||||
|
||||
![Sebastian 换用命令行方式安装 Steam][5]
|
||||
|
||||
无论是图形化方式还是终端方式,Pop!_OS 都显示了一条警告,提示用户正濒临卸载关键软件包的危险。
|
||||
|
||||
命令行方式清晰明了地警告:“_**您的操作有潜在的危害性。若要继续,请输入下面的短句“是,按我说的做!(Yes, do as I say!)”**_。” <!-- 这里使用了 apt 的原版简中译文(https://salsa.debian.org/apt-team/apt/-/blob/main/po/zh_CN.po),修订时请勿更改 -->
|
||||
|
||||
![忽略移除关键软件包的警告][6]
|
||||
|
||||
对于大部分 Linux 用户来说,到这一步就真的得停下来,深思熟虑了。输出的内容明确显示,接下来即将删除 `gdm3`、`pop-desktop` 和其他许多桌面环境要素。
|
||||
|
||||
但人们一般不会在意警告。Linus Sebastian 直接继续安装,最终就剩下了一个不能登录图形界面的损坏系统。
|
||||
|
||||
![意识到他的 Pop!_OS 彻底出乱子后的 Linus Sebastian(不是 Torvalds)][7]
|
||||
|
||||
### 给桌面 Linux 开发者的深刻教训
|
||||
|
||||
对于开发者来说,这里有两点教训值得注意:
|
||||
|
||||
* 安装 Steam 或任何其他常规软件时,不能导致关键的图形界面软件包被删除。
|
||||
* 在一款常规的、主流的发行版中,用户不应该能删除关键软件包。
|
||||
|
||||
Pop!_OS 迅速修复了 Steam 的问题,并增加了防御机制以阻止删除关键的桌面要素。
|
||||
|
||||
> 出于某些原因,i386 版的软件包不能在 Launchpad 上发布。Steam 是一个 i386 软件包,在尝试安装 Steam 时不得不将软件包降级到 Ubuntu 版本以解决依赖问题,然后就删除了 Pop!_OS 的软件包。
|
||||
>
|
||||
> — Jeremy Soller (@jeremy_soller) [2021 年 10 月 26 日][8]
|
||||
|
||||
为避免此类事故,Pop!\_OS 为 APT 包管理器制作了补丁。现在,用户无法在 Pop!\_OS 通过输入“是,按我说的做!(Yes, do as I say!)”来删除关键软件包了。相反,用户将需要添加一个特殊文件来启用该功能(如果某个人真的想把这些关键软件包删掉的话)。(LCTT 译注:APT 2.3.12 上游已经彻底禁用卸载关键软件包的功能。)
|
||||
|
||||
对于 Pop!\_OS 来说,这确实是一个好举措。但,这并不仅仅是 Pop!\_OS 单边的教训。大多数 Linux 发行版都可能会遇到这种情况,并最终删除掉桌面环境和显示服务器。
|
||||
|
||||
KDE 已经注意到了这一点,并在即将发布的 Plasma 5.24 中 [添加了禁止卸载 Plasma 桌面的功能][9]。<!-- 已将 [9] 链接更换为 Linux 中国站内链接 -->
|
||||
|
||||
![KDE Plasma 不允许用户卸载 Plasma 桌面][10]
|
||||
|
||||
许多人责怪 Linus Sebastian 不顾清晰明确的警告,直接继续并走向灾难。但问题在于,许多用户真的不会在意“警告”这种东西,不管他们技术水平如何。人们只是觉得按 Y 或者其他东西就是程序正常的部分,也不会去多想。一些 Linux 用户之前已经踩过这种坑了,但未来可能还会有更多人重蹈覆辙。
|
||||
|
||||
这就是为什么添加故障保护措施才是明智之举。这是所有主流发行版都应该做的事。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://news.itsfoss.com/more-linux-distros-become-linus-proof/
|
||||
|
||||
作者:[Abhishek][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[imgradeone](https://github.com/imgradeone)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://news.itsfoss.com/author/root/
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://itsfoss.com/linux-gaming-guide/
|
||||
[2]: https://www.youtube.com/watch?v=0506yDSgU7M&t=788s
|
||||
[3]: https://itsfoss.com/install-pop-os/
|
||||
[4]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0NyIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[5]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM4NSIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[6]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM3OCIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[7]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM2MiIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[8]: https://twitter.com/jeremy_soller/status/1453008808314351628?ref_src=twsrc%5Etfw
|
||||
[9]: https://linux.cn/article-14015-1.html
|
||||
[10]: data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM4OSIgd2lkdGg9Ijc4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjEiLz4=
|
||||
[ 11 ]: https://www.bilibili.com/video/BV1Fh411b7q3?t=769
|
Loading…
Reference in New Issue
Block a user