首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >zypper出口代码106 -如何修复?

zypper出口代码106 -如何修复?
EN

Unix & Linux用户
提问于 2018-01-02 17:22:19
回答 1查看 2.1K关注 0票数 2

在SLES11.4服务器上,希望安装一个包:

代码语言:javascript
复制
SLES11SERVER:~ # zypper in -f telnet
Retrieving repository 'foobar_common' metadata [\]
File 'repomd.xml' from repository 'foobar_common' is unsigned, continue? [yes/no] (no): yes
Retrieving repository 'foobar_common' metadata [error]
Repository 'foobar_common' is invalid.
[|] Valid metadata not found at specified URL(s)
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository 'foobar_common' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...
Forcing installation of 'telnet-1.2-134.24.1.x86_64' from repository 'SLES11-SP4-Pool'.
Resolving package dependencies...

The following package is going to be reinstalled:
  telnet

1 package to reinstall.
Overall download size: 54.0 KiB. No additional space will be used or freed after the operation.
Continue? [y/n/? shows all options] (y): y
Retrieving package telnet-1.2-134.24.1.x86_64 (1/1), 54.0 KiB (118.0 KiB unpacked)
Retrieving: telnet-1.2-134.24.1.x86_64.rpm [done]
Installing: telnet-1.2-134.24.1 [done]
SLES11SERVER:~ # echo $?
106
SLES11SERVER:~ #

根据手册页:

代码语言:javascript
复制
106 - ZYPPER_EXIT_INF_REPOS_SKIPPED
           Some repository had to be disabled temporarily because it failed to refresh. You should check your
           repository configuration (e.g.  zypper ref -f).

所以我做了一个"zypper ref -f":

代码语言:javascript
复制
SLES11SERVER:~ # zypper ref -f
...
Retrieving repository 'foobar_common' metadata [/]
File 'repomd.xml' from repository 'foobar_common' is unsigned, continue? [yes/no] (no): yes
Retrieving repository 'foobar_common' metadata [error]
Repository 'foobar_common' is invalid.
[|] Valid metadata not found at specified URL(s)
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'foobar_common' because of the above error.
Forcing raw metadata refresh
...
Some of the repositories have not been refreshed because of an error.
SLES11SERVER:~ #

包已经安装(来自另一个回购,这个foobar_common没有提供它),但是在包安装之后,我必须有zypper的退出代码0。

问:我怎样才能解决zypper不会给出106出口代码的问题?

我试着:

  • 删除/添加foobar_common回购,相同的问题
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2018-01-03 12:38:38

问题在存储库端(PEBKAC用于repo :的操作团队)

另外,zypper clean --all也有帮助。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/414346

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档