Bug 1195519

Summary: RPM installation with sw_single broken
Product: [openSUSE] openSUSE Tumbleweed Reporter: S. B. <sb56637>
Component: YaST2Assignee: Imobach Gonzalez Sosa <igonzalezsosa>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: enekn, gef_new, guus.poort, igonzalezsosa, quentin, sb56637, sebix+novell.com, virdignus, yustovskiy
Version: Current   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE Tumbleweed   
See Also: http://bugzilla.opensuse.org/show_bug.cgi?id=1192650
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2log while trying to install an RPM package

Description S. B. 2022-02-03 15:58:06 UTC
Hi, there is a regression in Tumbleweed within the past week or so where YaST Software can no longer install manually downloaded RPM packages. This is the error it throws:

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

Caller: /usr/share/YaST2/clients/sw_single.rb:153:in `CheckWhichPackages'

Details: undefined method `EnsureSourceInit' for #<Yast::PackageClass:0x00007f752720c760 @my_textdomain=["base"], @last_op_canceled=false, @installed_packages=[], @removed_packages=[]>
------------------------------------------------

I can provide the y2logs, but please specify which log files you specifically need, as I need to go through them first to remove any privacy concerns.

Thanks a lot!
Comment 1 Ladislav Slezák 2022-02-04 09:51:54 UTC
How can I reproduce the problem? What exactly did you do?


YaST saves the log to the /var/log/YaST2/y2log file, that save_y2logs saves some more data from the system. But the logs or the saved files should not contain any sensitive information (unless you run YaST with Y2DEBUG=1 which turns on extra logging).

But if you accidentally find any sensitive data in the log just open a separate bug for that, YaST should not do that.
Comment 2 S. B. 2022-02-04 12:40:19 UTC
(In reply to Ladislav Slezák from comment #1)
> How can I reproduce the problem? What exactly did you do?

Sorry if I wasn't clear.
1) Download an RPM package.
2) Right click the package, open with YaST Software (sw_single) to install it.

I'm attaching the y2log from today after I made it crash with the above procedure.
Comment 3 S. B. 2022-02-04 12:40:46 UTC
Created attachment 855885 [details]
y2log while trying to install an RPM package
Comment 4 Enekn Enekn 2022-02-04 21:06:51 UTC
Faced the same problem. Any RPM package is not installed manually. 

Log:
2022-02-04 17:21:44 <1> localhost.localdomain(3280) [Ruby] clients/sw_single.rb(CheckWhichPackages):143 CheckWhichPackages ([])
2022-02-04 17:21:47 <2> localhost.localdomain(3280) [Ruby] clients/sw_single.rb(CheckWhichPackages):339 При инициализации репозитория произошла ошибка.
2022-02-04 17:21:50 <1> localhost.localdomain(3280) [Ruby] clients/sw_single.rb(StartSWSingle):545 SW_SINGLE: result CheckWhichPackages `found_descr
2022-02-04 23:36:18 <1> localhost.localdomain(9572) [Ruby] clients/sw_single.rb(CheckWhichPackages):143 CheckWhichPackages (["/home/fss/Загрузки/megasync-openSUSE_Tumbleweed.x86_64.rpm"])
/usr/share/YaST2/clients/sw_single.rb:153:in `CheckWhichPackages'
2022-02-04 23:36:19 <3> localhost.localdomain(9572) [Ruby] yast/wfm.rb(handle_exception):309 Internal error. Please report a bug report with logs.<br>Run save_y2logs to get complete logs.<br><br>Caller:  /usr/share/YaST2/clients/sw_single.rb:153:in `CheckWhichPackages&#39;<br><br>Details: undefined method `EnsureSourceInit&#39; for #&lt;Yast::PackageClass:0x00007f937ffb4900 @my_textdomain=[&quot;base&quot;], @last_op_canceled=false, @installed_packages=[], @removed_packages=[]&gt;
2022-02-04 23:36:32 <1> localhost.localdomain(10397) [Ruby] clients/sw_single.rb(CheckWhichPackages):143 CheckWhichPackages (["/home/fss/Загрузки/megasync-openSUSE_Tumbleweed.x86_64.rpm"])
/usr/share/YaST2/clients/sw_single.rb:153:in `CheckWhichPackages'
2022-02-04 23:36:32 <3> localhost.localdomain(10397) [Ruby] yast/wfm.rb(handle_exception):309 Internal error. Please report a bug report with logs.<br>Run save_y2logs to get complete logs.<br><br>Caller:  /usr/share/YaST2/clients/sw_single.rb:153:in `CheckWhichPackages&#39;<br><br>Details: undefined method `EnsureSourceInit&#39; for #&lt;Yast::PackageClass:0x00007f8476abde50 @my_textdomain=[&quot;base&quot;], @last_op_canceled=false, @installed_packages=[], @removed_packages=[]&gt;
2022-02-04 23:37:00 <1> localhost.localdomain(11388) [Ruby] clients/sw_single.rb(CheckWhichPackages):143 CheckWhichPackages (["/home/fss/Загрузки/megasync-openSUSE_Tumbleweed.x86_64.rpm"])
Comment 5 Yuryi Voloshchuk 2022-02-04 22:43:19 UTC
have the same problem
Comment 6 Guus Poort 2022-02-05 04:55:22 UTC
Same problem, installing google chrome.
Comment 7 Nikita Yu. 2022-02-05 13:22:38 UTC
Have the same trouble
Comment 8 Quentin Denis 2022-02-08 09:58:39 UTC
Same problem here.
Comment 9 Imobach Gonzalez Sosa 2022-02-08 10:00:11 UTC
Hi all,

I am sorry. The problem is fixed now in https://github.com/yast/yast-packager/pull/601. As soon as yast2-packager 4.4.22 enters Tumbleweed, it should work just fine.

Thanks for reporting!

Regards,
Imo
Comment 11 Guus Poort 2022-02-13 03:12:07 UTC
I can confirm it´s fixed since today's Tumbleweed update.
Comment 12 Imobach Gonzalez Sosa 2022-02-16 09:20:13 UTC
*** Bug 1195876 has been marked as a duplicate of this bug. ***