使用 Rolling Rhino 将 Ubuntu 转换为 Rolling Release

Arch Linux 遵循滚动发布模式提供 大多数软件的最新和最新的稳定版本. 不只是 Arch Linux,许多其他发行版,如 Gentoo、Kali Linux、KaOS、PCLinuxOS、Solus、openSUSE 和 Void lInux 等,也在遵循滚动发布模式。 尽管它很受欢迎,但这个列表中仍然缺少 Ubuntu。 不再! 谢谢 滚动犀牛 脚本,我们现在可以轻松快速地将 Ubuntu 转换为滚动发布发行版。

Rolling Rhino 是一个 shell 脚本,它可以将 Ubuntu 转换为跟踪 发展 系列。 它将从每日映像安装的 Ubuntu 桌面和官方桌面风格转换为滚动发行版。 因此,您可以在 Ubuntu 桌面上获得原始开发人员发布的最新软件。

在后台,这个脚本将你所有的 apt 源设置为 devel 分支。 Rolling Rhino 由以下人员创建和维护 马丁·威普雷斯 来自 Canonical 以及其他贡献者。

该脚本将适用于;

  • Ubuntu 开发人员,
  • 经验丰富的 Ubuntu 用户,
  • 以及任何有破坏和修复完美运行的稳定发行版习惯的人。

使用 Rolling Rhino 脚本将 Ubuntu 转换为滚动版本

如前所述,您必须从以下位置安装 Ubuntu 桌面或桌面风格之一 日常形象. 您可以从以下链接获取 Ubuntu 每日图像:

出于本指南的目的,我将使用 Ubuntu 桌面 20.10 Groovey Gorilla 每日构建。

Git 使用以下命令在本地系统中克隆 Rolling Rhino 脚本:

$ git clone https://github.com/wimpysworld/rolling-rhino.git

上述命令会将 Rolling Rhino 存储库的内容克隆到一个名为 rolling-rhino 在当前工作目录中。 cd 进入该目录:

$ cd rolling-rhino

现在,运行以下命令将您的 Ubuntu 桌面转换为滚动发行版:

$ sudo ./rolling-rhino

Y 接受切换到开发系列:

样本输出:

Rolling Rhino ?
  [+] INFO: lsb_release detected.
  [+] INFO: Ubuntu detected.
  [+] INFO: Ubuntu Groovy Gorilla (development branch) detected.
  [+] INFO: Detected ubuntu-desktop.
  [+] INFO: No PPAs detected, this is good.
  [+] INFO: All checks passed.
Are you sure you want to start tracking the devel series? [Y/N]y  [+] INFO: Switching to devel series.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Get:1 https://archive.ubuntu.com/ubuntu devel InRelease [267 kB]
Get:2 https://security.ubuntu.com/ubuntu devel-security InRelease [89.1 kB]
Get:3 https://archive.ubuntu.com/ubuntu devel-updates InRelease [89.1 kB]
Get:4 https://archive.ubuntu.com/ubuntu devel-backports InRelease [89.2 kB]
Get:5 https://security.ubuntu.com/ubuntu devel-security/main amd64 c-n-f Metadata [112 B]
Get:6 https://archive.ubuntu.com/ubuntu devel/main amd64 Packages [974 kB] 
[...]
使用 Rolling Rhino 将 Ubuntu 转换为滚动发行版

最后,您将看到以下消息:

[+] INFO: Your Rolling Rhino is ready.
          ii11ttfffffffftt11ii          
      ii11ffffffffffffffffffff11ii      
    iittffffffffffffffffffffffffttii    
  iittffffffffffffffffffffffffffffttii  
  11ffffffffffffffffffffffffffffffff11  
iifffffffftt1111111111ffffffffffLLffffii
11ffffff1111111111111111ttffffffffLLff11
ttffff11111111111111111111ttffffLLLLfftt
ffLLtt1111111111111111111111ffLLLLffLLff
ffLL111111111111111111111111ttLLffffffff
ffLL111111111111111111111111ttffffffffff
ffff1111fffffftt1111111111GG11ffttttffff
ttffffffffffffttttff11111111111111fffftt
11fffffffffffffffffftt11111111ttffffff11
iiffffffffffffffffffff111111ffffffffffii
  11ffffffffffffffffffffffffffffffff11  
  iittffffffffffffffffffffffffffffttii  
    iittffffffffffffffffffffffffttii    
      ii11ffffffffffffffffffff11ii      
          ii11ttfffffffftt11ii
使用 Rolling Rhino 脚本将 Ubuntu 转换为滚动发行版

完毕! 现在 Ubuntu 桌面已转换为滚动发布发行版,并且正在跟踪开发系列。

您可以使用以下命令验证源代码是否指向开发系列:

$ grep ^deb /etc/apt/sources.list

样本输出:

deb https://archive.ubuntu.com/ubuntu devel main restricted
deb https://archive.ubuntu.com/ubuntu devel-updates main restricted
deb https://archive.ubuntu.com/ubuntu devel universe
deb https://archive.ubuntu.com/ubuntu devel-updates universe
deb https://archive.ubuntu.com/ubuntu devel multiverse
deb https://archive.ubuntu.com/ubuntu devel-updates multiverse
deb https://archive.ubuntu.com/ubuntu devel-backports main restricted universe multiverse
deb https://security.ubuntu.com/ubuntu devel-security main restricted
deb https://security.ubuntu.com/ubuntu devel-security universe
deb https://security.ubuntu.com/ubuntu devel-security multiverse

结论

我猜这个脚本是 Debian 将 sources.list 更改为指向测试分支的 Ubuntu 等价物。 它只是将sources.list 文件中的所有存储库链接更改为devel。 尽管如此,将固定发布的 Ubuntu 桌面立即转变为滚动发布模型是一个很酷的想法。

资源: