Bug 429099

Summary: Properly handle virtual packages, since in ubuntu 20.10 libgcc1 became virtual thus qapt can't a lot of packages
Product: [Unmaintained] libqapt Reporter: qazerr <qazerr>
Component: generalAssignee: Harald Sitter <sitter>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: qapt UI error

Description qazerr 2020-11-14 15:34:51 UTC
Created attachment 133332 [details]
qapt UI error

SUMMARY
Properly handle virtual packages, since in ubuntu 20.10 libgcc1 became virtual and qapt can't a lot of packages.

https://invent.kde.org/system/libqapt/-/blob/5a8510ab27dec3fca2c91f1469eebf146e70bfe6/utils/qapt-deb-installer/DebInstaller.cpp#L418

STEPS TO REPRODUCE
1. try to install deb package that have libgcc1 as dependency on kubuntu 20.10 for example
2. aqpt will say that dependencies are not met

OBSERVED RESULT

$ apt-cache show libgcc1
N: Can't select versions from package 'libgcc1' as it is purely virtual
N: No packages found
$ apt-cache showpkg libgcc1| tail -2
Reverse Provides: 
libgcc-s1 10.2.0-13ubuntu1 (= 1:10.2.0-13ubuntu1)
$ apt-cache show libgcc-s1 | grep libgcc1
Provides: libgcc1 (= 1:10.2.0-13ubuntu1)
Replaces: libgcc1 (<< 1:10)


EXPECTED RESULT
installation should work

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
qapt-deb-installer 3.0.5-1ubuntu1
Comment 1 Harald Sitter 2020-11-16 13:13:20 UTC

*** This bug has been marked as a duplicate of bug 354477 ***