Linux非滚动发行版升级为滚动发行版
Ubuntu 20.04 LTS升级到Ubuntu滚动版
Ubuntu的滚动版是通过更新内核和根据新的release的软件仓库更新现有软件实现的,并不是真正的滚动版。
- 从https://wiki.ubuntu.com/Releases获取future release's的代码的首个单词
- 替换下面链接中的${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 - 用上面五个链接替换/etc/apt/sources.list里面的内容
- 如果有需要内核更新的,去https://kernel.ubuntu.com/~kernel-ppa/mainline/下载最新内核的deb安装文件
- 针对下载下来的文件,执行sudo dpkg -i *.deb
Fedora 35升级到Fedora Rawhide
- 更新/etc/yum.repos.d/下面的这些文件: fedora.repo, fedora-updates.repo, fedora-modular.repo, fedora-updates-modular.repo
- sudo dnf upgrade --refresh
- sudo dnf system-upgrade download --refresh --releasever=rawhide --allowerasing --nogpgcheck
- sudo dnf system-upgrade reboot
- sudo cat /etc/os-release # 这条命令用来验证是否成功 (应该是pre-release版本,Repo是Rawhide)
OpenSUSE Leap 15.3升级到OpenSUSE Tumbleweed
- sudo mkdir /etc/zypp/repos.d/old
- sudo mv /etc/zypp/repos.d/*.repo /etc/zypp/repos.d/old
- sudo zypper ar -f -c https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/oss/ repo-oss
- sudo zypper ar -f -c https://mirrors.tuna.tsinghua.edu.cn/opensuse/tumbleweed/repo/non-oss/ repo-non-oss
- sudo zypper cc -a && zypper ref && zypper dup --allow-vendor-change
- cat /etc/os-release # 这条命令验证是否成功
如果失败,尝试sudo zypper refresh --force && sudo zypper dist-upgrade