Regata OS Fórum
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Ir para baixo
avatar
Gregor_
Mensagens : 2
Data de inscrição : 16/03/2024

Resolvido [Solução alternativa/Alternative solution] YaST2, update, error. ruby, Pkg

Sáb Mar 16, 2024 3:13 pm
After a major update of Regata OS, the YaST2 software update and Zypper became unavailable in both the terminal and the GUI.

OS: Regata OS 24 Arctic Fox x86_64 Kernel: 6.7.7-lp155.10-default Packages: 3647 (rpm), 5 (flatpak), 14 (snap) Shell: bash 4.4.23 Terminal: console

Error messages:

sudo zypper update zypper: symbol lookup error: zypper: undefined symbol: _ZN4zypp5debug7MeasureC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE, version ZYPP_plain

On a graphical interface:

Internal error. Please report a bug report with logs. Run save_y2logs to get complete logs.

Caller: /usr/lib64/ruby/vendor_ruby/2.5.0/yast/yast.rb:186:in `import_pure'

Details: component cannot import namespace 'Pkg'

VAR log:

024-03-16 00:48:05 <1> gr-pc(25162) [Ruby] bin/y2start(<main>):22 y2base called with ["sw_single", "qt", "-name", "YaST2", "-icon", "yast"]
2024-03-16 00:48:05 <1> gr-pc(25162) [ui-component] YUIComponentCreator.cc(createInternal):124 Creating UI component for ""
2024-03-16 00:48:05 <1> gr-pc(25162) [ui] YUI.cc(YUI):83 This is libyui 4.5.2
2024-03-16 00:48:05 <1> gr-pc(25162) [ui] YUI.cc(YUI):84 Creating UI with threads
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(YQUI):110 This is libyui-qt 4.5.2
2024-03-16 00:48:05 <3> gr-pc(25162) [qt-ui] YQUI.cc(qMessageHandler):660 <libqt-critical>Failed to create wl_display (No such file or directory)
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(qMessageHandler):647 <libqt-info> Could not load the Qt platform plugin "wayland" in "" even though it was found.
2024-03-16 00:48:05 <2> gr-pc(25162) [qt-ui] YQUI.cc(qMessageHandler):656 <libqt-warning> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-styler] QY2Styler.cc(loadStyleSheet):158 Using style sheet "/usr/share/YaST2/theme/current/wizard/style.qss"
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(processCommandLineArgs):259 Qt argument: /usr/bin/ruby.ruby2.5
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(processCommandLineArgs):259 Qt argument: --encoding=utf-8
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(processCommandLineArgs):259 Qt argument: /usr/lib/YaST2/bin/y2start
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(processCommandLineArgs):259 Qt argument: sw_single
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(processCommandLineArgs):259 Qt argument: qt
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(processCommandLineArgs):259 Qt argument: -icon
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(processCommandLineArgs):259 Qt argument: yast
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(calcDefaultSize):412 Default size: 1344 x 724
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQApplication.cc(YQApplication):98 QIcon::themeName = 'breeze-dark'
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQApplication.cc(loadPredefinedQtTranslations):153 Selected language: hu_HU
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQApplication.cc(loadPredefinedQtTranslations):173 Loaded translations for predefined Qt dialogs for hu_HU
2024-03-16 00:48:05 <1> gr-pc(25162) [qt-ui] YQUI.cc(initUI):236 YQUI initialized. Thread ID: 0x0x7fe1870006c0
2024-03-16 00:48:05 <1> gr-pc(25162) [ui] YCP_UI.cc(SetApplicationTitle):1742 Setting application title to '"YaST2 - sw_single @ gr-pc                                    >
2024-03-16 00:48:05 <1> gr-pc(25162) [Interpreter] bin/y2start:68 Calling YaST client sw_single
2024-03-16 00:48:05 <1> gr-pc(25162) [Ruby] yast/wfm.rb(run_client):341 Call client /usr/share/YaST2/clients/sw_single.rb
2024-03-16 00:48:05 <3> gr-pc(25162) [liby2] Y2PluginComponent.cc(loadPlugin):234 error loading plugin /usr/lib64/YaST2/plugin/libpy2Pkg.so.2: /usr/lib64/YaST2/plugin/lib>
2024-03-16 00:48:05 <3> gr-pc(25162) [liby2] Y2PluginComponent.cc(loadPlugin):234 error loading plugin /usr/lib64/YaST2/plugin/libpy2Pkg.so.2: /usr/lib64/YaST2/plugin/lib>
2024-03-16 00:48:05 <3> gr-pc(25162) [Interpreter] bin/y2start:68 Loading module 'Pkg' failed
2024-03-16 00:48:05 <3> gr-pc(25162) [libycp] Import.cc(import):97 No matching component found
2024-03-16 00:48:05 <3> gr-pc(25162) [Ruby] binary/Yast.cc(getNs):67 ruby call: Can't import namespace 'Pkg'
2024-03-16 00:48:05 <3> gr-pc(25162) [Ruby] yast/wfm.rb(handle_exception):271 Client /usr/share/YaST2/clients/sw_single.rb failed with 'component cannot import namespace >
Backtrace:
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/yast.rb:186:in `import_pure'
/usr/lib64/ruby/vendor_ruby/2.5.0/yast/yast.rb:186:in `import'
/usr/share/YaST2/lib/y2packager/resolvable.rb:15:in `<top (required)>'
/usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib64/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'


Can anyone help me on how to fix it?

YaST2 is broken after executing `zypper update`

Unfortunately, no sudo zypper command in the terminal works.
avatar
josue2363
Mensagens : 76
Data de inscrição : 02/09/2020
Localização : Brasil

Resolvido Re: [Solução alternativa/Alternative solution] YaST2, update, error. ruby, Pkg

Seg Mar 18, 2024 12:28 am
Hello, I was also surprised by this problem. The solution was to download this package, extract it and copy the files to the system root (/), replacing the existing files.
avatar
Gregor_
Mensagens : 2
Data de inscrição : 16/03/2024

Resolvido Re: [Solução alternativa/Alternative solution] YaST2, update, error. ruby, Pkg

Seg Mar 18, 2024 2:38 am
This is the good solution. cheers It seems that I applied a sudo zypper update command to the not yet finalized graphic update. That could have caused the problem.

Everything is back and working. Very Happy

josue2363 gosta desta mensagem

avatar
Rubens Cavallieri
Mensagens : 2
Data de inscrição : 26/01/2024

Resolvido Re: [Solução alternativa/Alternative solution] YaST2, update, error. ruby, Pkg

Seg Mar 18, 2024 5:26 pm
Como instalar esse pacote para corrigir o YAST2, pois o terminal não funciona e nem o YAST2.

josue2363 gosta desta mensagem

avatar
josue2363
Mensagens : 76
Data de inscrição : 02/09/2020
Localização : Brasil

Resolvido Re: [Solução alternativa/Alternative solution] YaST2, update, error. ruby, Pkg

Seg Mar 18, 2024 9:34 pm
Rubens Cavallieri escreveu:Como instalar esse pacote para corrigir o YAST2, pois o terminal não funciona e nem o YAST2.

Siga os seguintes passos:

1. Faça o download deste arquivo .zip. Em seguida, descompacte o arquivo, clicando com o botão
direito do mouse sobre o arquivo e indo em Extrair > Extrair aqui.

2. Entre na pasta, clique com o botão direito do mouse sobre o arquivo fix-libzypp.sh e depois em
Executar no Konsole. Informe a senha root quando solicitado no terminal.

3. Para verificar se o problema foi corrigido, execute:
Código:
sudo zypper ref; sudo zypper up

Rubens Cavallieri gosta desta mensagem

avatar
Rubens Cavallieri
Mensagens : 2
Data de inscrição : 26/01/2024

Resolvido Resolvido!

Ter Mar 19, 2024 12:27 pm
Obrigado pela agilidade e facilidade na explicação para corrigir o problema.
Excelente sistema e suporte técnico.

josue2363 gosta desta mensagem

Conteúdo patrocinado

Resolvido Re: [Solução alternativa/Alternative solution] YaST2, update, error. ruby, Pkg

Ir para o topo
Permissões neste sub-fórum
Não podes responder a tópicos