从 openSUSE 15.3 升级到 15.4 后,zypper(和 yast)不再工作

从 openSUSE 15.3 升级到 15.4 后,zypper(和 yast)不再工作

我今天将笔记本电脑从 openSUSE 15.3 升级到 15.4。过程中出现了很多无法提供的相关要求的提示。

运行升级过程后,修复了多个存储库 URL 并重新启动,sudo zypper verifysudo zypper ref && sudo zypper up给出以下错误消息:

zypper: symbol lookup error: /usr/lib64/libzypp.so.1722: undefined symbol: _ZN4YAML6detail9node_data12empty_scalarB5cxx11

我还注意到,在 Yast 中,我无法超越第一个屏幕:当我单击“软件管理”或控制中心中的任何其他项目时,颤动器会旋转几秒钟,但没有其他任何反应。

输出rpm -q libzypp

libzypp-17.31.2-150200.45.1.x86_64

输出rpm -q zypper

zypper-1.14.57-150200.39.1.x86_64

输出rpm -q -i libzypp zypper

Name        : libzypp
Version     : 17.31.2
Release     : 150200.45.1
Architecture: x86_64
Install Date: Fri 14 Oct 2022 19:24:59 CEST
Group       : System/Packages
Size        : 10145384
License     : GPL-2.0-or-later
Signature   : RSA/SHA256, Thu 06 Oct 2022 16:21:42 CEST, Key ID 70af9e8139db7c82
Source RPM  : libzypp-17.31.2-150200.45.1.src.rpm
Build Date  : Thu 06 Oct 2022 16:15:12 CEST
Build Host  : sheep16
Relocations : (not relocatable)
Packager    : https://www.suse.com/
Vendor      : SUSE LLC <https://www.suse.com/>
URL         : https://github.com/openSUSE/libzypp
Summary     : Library for package, patch, pattern and product management
Description :
libzypp is the package management library that powers applications
like YaST, zypper and the openSUSE/SLE implementation of PackageKit.

libzypp provides functionality for a package manager:

  * An API for package repository management, supporting most common
    repository metadata formats and signed repositories.
  * An API for solving packages, products, patterns and patches
    (installation, removal, update and distribution upgrade
    operations) dependencies, with additional features like locking.
  * An API for commiting the transaction to the system over a rpm
    target. Supporting deltarpm calculation, media changing and
    installation order calculation.
  * An API for browsing available and installed software, with some
    facilities for programs with an user interface.
Distribution: SUSE Linux Enterprise 15
Name        : zypper
Version     : 1.14.57
Release     : 150200.39.1
Architecture: x86_64
Install Date: Fri 14 Oct 2022 19:25:00 CEST
Group       : System/Packages
Size        : 8306495
License     : GPL-2.0-or-later
Signature   : RSA/SHA256, Thu 06 Oct 2022 16:31:56 CEST, Key ID 70af9e8139db7c82
Source RPM  : zypper-1.14.57-150200.39.1.src.rpm
Build Date  : Thu 06 Oct 2022 16:30:31 CEST
Build Host  : sheep28
Relocations : (not relocatable)
Packager    : https://www.suse.com/
Vendor      : SUSE LLC <https://www.suse.com/>
URL         : https://github.com/openSUSE/zypper
Summary     : Command line software manager using libzypp
Description :
Zypper is a command line tool for managing software. It can be used to add
package repositories, search for packages, install, remove, or update packages,
install patches, hardware drivers, verify dependencies, and more.

Zypper can be used interactively or non-interactively by user, from scripts,
or front-ends.

Authors:
--------
    Jan Kupec <[email protected]>
    Michael Andres <[email protected]>
    Duncan Mac-Vicar <[email protected]>
    Martin Vidner <[email protected]>
    Josef Reidinger <[email protected]>
Distribution: SUSE Linux Enterprise 15

我也注意到这个 libzypp 页面说,

openSUSE Leap 15.4 没有可用的官方软件包

有什么办法可以解决这个问题并使 zypper (和 Yast)再次工作吗?

答案1

您能给我们提供有关该问题的最新信息吗?我遇到了同样的错误,并且 rpm -q 显示完全相同版本的 zypper 和 libzypp。想知道是否找到了可行的解决方案?谢谢你!

更新:找到并执行本文中的 rpm 命令,zypper 恢复正常工作:https://www.suse.com/support/kb/doc/?id=000020725

那里建议的步骤:

sudo rpm -Uhv https://download.opensuse.org/update/leap/15.4/sle/x86_64/\
libyaml-cpp0_6-0.6.3-150400.4.3.1.x86_64.rpm

相关内容