Opensuse

刪除 PCRE 7.9 後 YaST 損壞

  • July 4, 2011

我使用 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

任何形式的幫助將不勝感激。謝謝…

嘗試重新安裝 perl。 是 Arch Linux 類似問題的解決方案

引用自:https://serverfault.com/questions/286698