zypper 安装软件报错

localhost:~ # zypper ar iso:/?iso=/root/images/SLE-15-SP4-Full-x86_64-GM-Media1.iso suse01
Adding repository 'suse01' ......................................................................................................[done]
Repository 'suse01' successfully added

URI         : iso:/?iso=/root/images/SLE-15-SP4-Full-x86_64-GM-Media1.iso
Enabled     : Yes
GPG Check   : Yes
Autorefresh : No
Priority    : 99 (default priority)

Repository priorities are without effect. All enabled repositories share the same priority.
localhost:~ # zypper ar iso:/?iso=/root/images/SLE-15-SP4-Full-x86_64-GM-Media2.iso suse02
Adding repository 'suse02' ......................................................................................................[done]
Repository 'suse02' successfully added

URI         : iso:/?iso=/root/images/SLE-15-SP4-Full-x86_64-GM-Media2.iso
Enabled     : Yes
GPG Check   : Yes
Autorefresh : No
Priority    : 99 (default priority)

Repository priorities are without effect. All enabled repositories share the same priority.
localhost:~ # 
localhost:~ # zypper ref
Repository 'suse01' is up to date.                                                                                                     
Repository 'suse02' is up to date.                                                                                                     
All repositories have been refreshed.
localhost:~ # zypper lr 
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias                    | Name                  | Enabled | GPG Check | Refresh
--+--------------------------+-----------------------+---------+-----------+--------
1 | Basesystem-Module_15.4-0 | sle-module-basesystem | No      | ----      | ----
2 | SLES15-SP4-15.4-0        | SLES15-SP4-15.4-0     | No      | ----      | ----
3 | suse01                   | suse01                | Yes     | (r ) Yes  | No
4 | suse02                   | suse02                | Yes     | ( p) Yes  | No
localhost:~ #
localhost:~ # zypper install vim 
Building repository 'suse01' cache ..............................................................................................[done]
Building repository 'suse02' cache ..............................................................................................[done]
Loading repository data...
Reading installed packages...
'vim' not found in package names. Trying capabilities.
No provider of 'vim' found.
Resolving package dependencies...
Nothing to do.
localhost:~ # 

还能这么玩儿,涨知识了

zypper se vim 看看?

可以查询到安装包,只要执行安装就报错。
直接使用 rpm 命令可以安装

master:~ # zypper se VIM
正在加载软件源数据...
正在读取已安装的软件包...

S  | Name            | Summary                          | Type
---+-----------------+----------------------------------+-------
i+ | VIM             | Vi IMproved                      | 软件包
i+ | VIM-data-common | Common Data files for VIM & gVIM | 软件包

    备注: 要将尚未启用的远程资源包含到扩展搜索范围,请使用 “zypper
    search-packages”。
master:~ # zypper install vim
正在加载软件源数据...
正在读取已安装的软件包...
'vim' 已安装过了。
在您的软件源中未找到软件包 'vim'。无法重装、升级或降级。
正在解决软件包依赖关系...
无事可做。
master:~ #

那建议去 zypper repo 提个 issue