Linux非滚动发行版升级为滚动发行版

Ubuntu 20.04 LTS升级到Ubuntu滚动版

Ubuntu的滚动版是通过更新内核和根据新的release的软件仓库更新现有软件实现的,并不是真正的滚动版。

  1. 从https://wiki.ubuntu.com/Releases获取future release's的代码的首个单词
  2. 替换下面链接中的${Codename}为第一步获得的那个单词:
    deb https://mirrors.nju.edu.cn/ubuntu/ ${Codename} main restricted universe multiverse
    deb https://mirrors.nju.edu.cn/ubuntu/ ${Codename}-updates main restricted universe multiverse
    deb https://mirrors.nju.edu.cn/ubuntu/ ${Codename}-backports main restricted universe multiverse
    deb https://mirrors.nju.edu.cn/ubuntu/ ${Codename}-security main restricted universe multiverse
    deb https://mirrors.nju.edu.cn/ubuntu/ ${Codename}-proposed main restricted universe multiverse
  3. 用上面五个链接替换/etc/apt/sources.list里面的内容
  4. 如果有需要内核更新的,去https://kernel.ubuntu.com/~kernel-ppa/mainline/下载最新内核的deb安装文件
  5. 针对下载下来的文件,执行sudo dpkg -i *.deb

Fedora 35升级到Fedora Rawhide

  1. 更新/etc/yum.repos.d/下面的这些文件: fedora.repo, fedora-updates.repo, fedora-modular.repo, fedora-updates-modular.repo
  2. sudo dnf upgrade --refresh
  3. sudo dnf system-upgrade download --refresh --releasever=rawhide --allowerasing --nogpgcheck
  4. sudo dnf system-upgrade reboot
  5. sudo cat /etc/os-release # 这条命令用来验证是否成功 (应该是pre-release版本,Repo是Rawhide)

OpenSUSE Leap 15.3升级到OpenSUSE Tumbleweed

  1. sudo mkdir /etc/zypp/repos.d/old
  2. sudo mv /etc/zypp/repos.d/*.repo /etc/zypp/repos.d/old
  3. sudo zypper ar -f -c https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/oss/ repo-oss
  4. sudo zypper ar -f -c https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/non-oss/ repo-non-oss
  5. sudo zypper cc -a && zypper ref && zypper dup --allow-vendor-change
  6. cat /etc/os-release # 这条命令验证是否成功
    如果失败,尝试sudo zypper refresh --force && sudo zypper dist-upgrade
posted @ 2022-05-24 19:57  alexanderzjs  阅读(167)  评论(0编辑  收藏  举报