删除 PCRE 7.9 后 YaST 损坏

删除 PCRE 7.9 后 YaST 损坏

我使用 YaST 在我的服务器上安装了 PCRE 8.12,但发现 PCRE 7.9 仍安装并处于活动状态(通过 pcretest -C 可以看到)。为了删除或停用 PCRE 7.9,我尝试使用 YaST 将其删除。但我认为该过程删除了 YaST 正常运行所需的许多其他文件。现在,YaST 已损坏。当我在终端中启动 YaST 并选择并输入“软件管理”或任何其他选项时,会出现以下错误:

# yast
Can't locate Config.pm in @INC (@INC contains: /y2update/modules /root/.yast2/modules /usr/share/YaST2/modules /usr/lib/perl5/site_perl/5.12.1/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.12.1 /usr/lib/perl5/vendor_perl/5.12.1/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.1 /usr/lib/perl5/5.12.1/i586-linux-thread-multi /usr/lib/perl5/5.12.1 .) at /usr/lib/perl5/5.12.1/diagnostics.pm line 195.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.12.1/diagnostics.pm line 195.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.12.1/i586-linux-thread-multi/YaST/YCP.pm line 119.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.12.1/i586-linux-thread-multi/YaST/YCP.pm line 119.
Compilation failed in require at /usr/share/YaST2/modules/URLRecode.pm line 16.
BEGIN failed--compilation aborted at /usr/share/YaST2/modules/URLRecode.pm line 16.
Compilation failed in require.
BEGIN failed--compilation aborted.
y2base: perl.c:542: perl_destruct: Assertion `(my_perl->Iscopestack_ix) == 1' failed.
YaST got signal 6 at YCP file /usr/share/YaST2/clients/sw_single.ycp:25
/sbin/yast: line 399: 30680 Aborted $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS

以下信息可能会有用:

我正在使用 opensuse 11.3 (x86_64)

# zypper lr
# | Alias | Name | Enabled | Refresh
--+-------------------------------------+----------------------------------------------+---------+--------
1 | Updates for openSUSE 11.3 11.3-1.82 | Updates for openSUSE 11.3 11.3-1.82 | Yes | Yes 
2 | download.opensuse.org-oss | Main Repository (Sources) | Yes | Yes 
3 | download.opensuse.org-perl | openSUSE BuildService - devel:languageserl | Yes | Yes 
4 | download.opensuse.org-php | openSUSE BuildService - PHP | Yes | Yes 
5 | openSUSE_11.3 | openSUSE_11.3 | Yes | Yes 
6 | repo-non-oss | openSUSE-11.3-Non-Oss | Yes | Yes 
7 | repo-oss | openSUSE-11.3-Oss | Yes | Yes

我已经做了zypper up

任何形式的帮助都将不胜感激。谢谢...

答案1

尝试重新安装 perl。 这里是 Arch Linux 类似问题的解决方案

相关内容