Leap 15.2 升级 15.3 遇到一个问题

15.2 已经 update 到最新了,接下来按照网上的步骤:
先把源都禁用,然后添加 15.3 的源,结果如下面这样:

| Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service

—±--------------------------±-----------------------------------±--------±----------±--------±---------±-------±-------------------------------------------------------------------------±-------
1 | TUNA:15.3:PACKMAN | TUNA:15.3:PACKMAN | Yes | (r ) Yes | Yes | 99 | rpm-md | https://mirrors.tuna.tsinghua.edu.cn/packman/suse/openSUSE_Leap_15.3/ |
2 | USTC:15.3:NON-OSS | USTC:15.3:NON-OSS | Yes | (r ) Yes | Yes | 99 | rpm-md | https://mirrors.ustc.edu.cn/opensuse/distribution/leap/15.3/repo/non-oss |
3 | USTC:15.3:OSS | USTC:15.3:OSS | Yes | (r ) Yes | Yes | 99 | rpm-md | https://mirrors.ustc.edu.cn/opensuse/distribution/leap/15.3/repo/oss |
4 | USTC:15.3:UPDATE-NON-OSS | USTC:15.3:UPDATE-NON-OSS | Yes | (r ) Yes | Yes | 99 | rpm-md | https://mirrors.ustc.edu.cn/opensuse/update/leap/15.3/non-oss |
5 | USTC:15.3:UPDATE-OSS | USTC:15.3:UPDATE-OSS | Yes | (r ) Yes | Yes | 99 | rpm-md | https://mirrors.ustc.edu.cn/opensuse/update/leap/15.3/oss |
6 | repo-debug | Debug Repository | No | ---- | ---- | 99 | NONE | Index of /debug/distribution/leap/15.2/repo/oss |
7 | repo-debug-non-oss | Debug Repository (Non-OSS) | No | ---- | ---- | 99 | NONE | Index of /debug/distribution/leap/15.2/repo/non-oss |
8 | repo-debug-update | Update Repository (Debug) | No | ---- | ---- | 99 | NONE | Index of /debug/update/leap/15.2/oss |
9 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No | ---- | ---- | 99 | NONE | Index of /debug/update/leap/15.2/non-oss |
10 | repo-non-oss | Non-OSS Repository | No | ---- | ---- | 99 | rpm-md | Index of /distribution/leap/15.2/repo/non-oss |
11 | repo-oss | Main Repository | No | ---- | ---- | 99 | rpm-md | Index of /distribution/leap/15.2/repo/oss |
12 | repo-source | Source Repository | No | ---- | ---- | 99 | rpm-md | Index of /source/distribution/leap/15.2/repo/oss |
13 | repo-source-non-oss | Source Repository (Non-OSS) | No | ---- | ---- | 99 | rpm-md | Index of /source/distribution/leap/15.2/repo/non-oss |
14 | repo-update | Main Update Repository | No | ---- | ---- | 99 | rpm-md | Index of /update/leap/15.2/oss |
15 | repo-update-non-oss | Update Repository (Non-Oss) | No | ---- | ---- | 99 | rpm-md | Index of /update/leap/15.2/non-oss |
(新用户不能上传附件,只能粘贴了:)
然后刷新,再然后更新 zypper(命令是:zypper patch --updatestack-only)时就遇到下面这个问题了:
Problem: product:openSUSE-15.2-1.x86_64 requires product(openSUSE) = 15.2-1, but this requirement cannot be provided
deleted providers: openSUSE-release-15.2-lp152.575.1.x86_64
Solution 1: deinstallation of product:openSUSE-15.2-1.x86_64
Solution 2: do not install patch:openSUSE-2021-820-1.noarch
Solution 3: break product:openSUSE-15.2-1.x86_64 by ignoring some of its dependencies
Choose from above solutions by number or cancel [1/2/3/c/d/?] ©:
这一步该怎么办?已经是 15.2 最新了怎么还会遇到 15.2 的依赖问题。。我是新手。
我是按照这个教程操作的:https://www.linuxprobe.com/opensuse-leap-15-0-15-1.html

更新使用的是 dup 吗,尝试命令
sudo zypper dup --allow-vendor-change

我试了一下可以升级。@swk 不要禁用所有的源,只需要禁用第三方源,也不要手动添加 15.3 的源。还有要注意保证所有的.repo文件里的版本号都用$releasever表示

先更新系统并重启

sudo zypper up
sudo reboot

然后禁用 packman 等第三方源。最后执行升级操作

sudo zypper --releasever=15.3 ref
sudo zypper --releasever=15.3  dup --allow-vendor-change
sudo reboot

最后重启响应时间可能比较长,耐心等待便可

2赞

是要先更新 zypper ,命令是:zypper patch --updatestack-only,然后再用 dup 更新系统,就是在更新 zypper 时遇到的问题,文章地址是 https://www.linuxprobe.com/opensuse-leap-15-0-15-1.html

是要先更新 zypper ,命令是:zypper patch --updatestack-only,不用更新 zypper 的吗 :thinking:,文章地址是 https://www.linuxprobe.com/opensuse-leap-15-0-15-1.html

不用更新 zypper,这是过时的教程,参考中文 wiki 的步骤

https://zh.opensuse.org/SDB:系统升级

1赞

不需要zypper patch --updatestack-only这一步
你最开始的软件源配置直接使用 sudo zypper dup --allow-vendor-change应该就可以完成更新了

谢谢!非常感谢!

谢谢!非常感谢!谢谢

本主题在最后一个回复创建后60分钟后自动锁定。不再允许添加新回复。