Bug 1177427

Summary: zypper 1.14(Leap 15.2) unable to chroot-install Leap 42.3
Product: [openSUSE] openSUSE Distribution Reporter: Jan Engelhardt <jengelh>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.2   
Target Milestone: ---   
Hardware: x86-64   
OS: Linux   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: zyppbug.log
zyppbug.txt (zypper generates two files for some reason)

Description Jan Engelhardt 2020-10-07 11:18:47 UTC
# mkdir -p /r/etc/zypp/repos.d
# cat >/r/etc/zypp/repos.d/base.repo <<-EOF
[base]
enabled=1
autorefresh=0
baseurl=http://download.opensuse.org/distribution/leap/42.3/repo/oss
type=rpm-md
EOF

# zypper -R /r in --no-recommends gcc-java
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 284 NEW packages are going to be installed:
  Mesa[...]

The following NEW product is going to be installed:
  "openSUSE Leap 42.3"

284 new packages to install.
Overall download size: 130.8 MiB. Already cached: 0 B. After the operation, additional 534.2 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 

Checking for file conflicts: (284 skipped) ...............................................................................[done]
Warning: 284 packages had to be excluded from file conflicts check because they are not yet downloaded.

    Note: Checking for file conflicts requires not installed packages to be downloaded in advance in
    order to access their file lists. See option '--download-in-advance / --dry-run --download-only'
    in the zypper manual page for details.

Retrieving package hicolor-icon-theme-0.15-8.3.noarch                                    (1/284),  42.8 KiB ( 50.6 KiB unpacked)
Retrieving: hicolor-icon-theme-0.15-8.3.noarch.rpm ..................................................................[not found]
Retrieving package hicolor-icon-theme-0.15-8.3.noarch                                             (1/284),  42.8 KiB ( 50.6 KiB unpacked)
Retrieving: hicolor-icon-theme-0.15-8.3.noarch.rpm ...........................................................................[not found]
File './noarch/hicolor-icon-theme-0.15-8.3.noarch.rpm' not found on medium 'http://download.opensuse.org/distribution/leap/42.3/repo/oss'
Comment 1 Jan Engelhardt 2020-10-07 11:24:39 UTC
Created attachment 842369 [details]
zyppbug.log
Comment 2 Jan Engelhardt 2020-10-07 11:25:18 UTC
Created attachment 842370 [details]
zyppbug.txt (zypper generates two files for some reason)

ZYPP_LOGFILE=/tmp/zyppbug.log ZYPP_MEDIA_CURL_DEBUG=2 zypper -R /r in --no-recommends filesystem
Comment 3 Michael Andres 2020-10-07 14:24:26 UTC
(In reply to Jan Engelhardt from comment #2)
> Created attachment 842370 [details]
> zyppbug.txt (zypper generates two files for some reason)

Looks like they are from different dates:

> ==> zyppbug.log.txt <==
> 2020-10-07 13:15:30 <1> fj.lh(31257) [zypp::satpool] PoolImpl.cc(PoolImpl):190 Creating sat-pool.

> ==> zyppbug.txt <==
> 2020-09-24 11:56:30 <1> fj.lh(15738) [zypp::satpool] PoolImpl.cc(PoolImpl):190 Creating sat-pool.
Comment 4 Jan Engelhardt 2020-10-07 14:39:16 UTC
Ok. Disregard the older one.
Comment 5 Michael Andres 2020-10-07 15:18:52 UTC
@Jan, can you retry without the 'type=rpm-md' line in /r/etc/zypp/repos.d ?


The repo is not rpm-md and the old 2020-09-24 log correctly probed it as susetags (AKA YAST2) and prepared the cache accordingly. 

If you do a 'dumpsolv /r/var/cache/zypp/solv/base/solv | grep susetags:datadir' you should get "susetags:datadir: suse".


Looks like some part in zypp got confused by wrong type tag in the repo file and so the susetags:datadir subpath did not make it into the download path. It tries to GET '86_64/filesystem-13.1-9.5.x86_64.rpm' from the repo rather than 'suse/86_64/filesystem-13.1-9.5.x86_64.rpm'.
Comment 6 Jan Engelhardt 2020-10-07 15:25:53 UTC
Yeah, it's fine with type=NONE or type=yast2.
Comment 7 Michael Andres 2020-10-07 15:30:22 UTC
'type=' is actually legacy. You should not need one at all.
Comment 8 Jan Engelhardt 2020-10-07 15:49:33 UTC
Right, not specifying type in the .repo file is equal to "type=NONE" in the .repo file. `zypper lr base` confirms this by showing type=NONE anyway.
Comment 9 Michael Andres 2020-10-07 16:10:41 UTC
(In reply to Jan Engelhardt from comment #8)
> ... `zypper lr base` confirms this by showing type=NONE anyway.

Which is fixed in an up-to-date zypper. 'type=' will refer to the type of metadata available on disk. NONE would mean that no metadata are cached right now. After a successful refresh it should tell the correct type.


The issue here is fixed for libzypp-17.25.3
Comment 16 Swamp Workflow Management 2021-01-13 14:32:28 UTC
SUSE-SU-2021:0109-1: An update that solves one vulnerability and has 11 fixes is now available.

Category: security (moderate)
Bug References: 1050625,1174016,1177238,1177275,1177427,1177583,1178910,1178966,1179083,1179222,1179415,1179909
CVE References: CVE-2017-9271
JIRA References: 
Sources used:
SUSE Linux Enterprise Module for Basesystem 15-SP2 (src):    libzypp-17.25.5-3.25.6, yast2-installation-4.2.48-3.16.1, zypper-1.14.41-3.14.10
SUSE Linux Enterprise Installer 15-SP2 (src):    libzypp-17.25.5-3.25.6, yast2-installation-4.2.48-3.16.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 17 Swamp Workflow Management 2021-01-14 20:16:13 UTC
openSUSE-SU-2021:0059-1: An update that solves one vulnerability and has 11 fixes is now available.

Category: security (moderate)
Bug References: 1050625,1174016,1177238,1177275,1177427,1177583,1178910,1178966,1179083,1179222,1179415,1179909
CVE References: CVE-2017-9271
JIRA References: 
Sources used:
openSUSE Leap 15.2 (src):    libzypp-17.25.5-lp152.2.16.1, yast2-installation-4.2.48-lp152.2.12.1, zypper-1.14.41-lp152.2.12.1
Comment 21 Swamp Workflow Management 2021-03-11 23:18:01 UTC
SUSE-SU-2021:0770-1: An update that solves one vulnerability and has 15 fixes is now available.

Category: security (moderate)
Bug References: 1050625,1174016,1177238,1177275,1177427,1177583,1178910,1178966,1179083,1179222,1179415,1179847,1179909,1181328,1181622,1182629
CVE References: CVE-2017-9271
JIRA References: 
Sources used:
SUSE Linux Enterprise Server for SAP 15 (src):    libsolv-0.7.17-3.40.1, libzypp-17.25.8-3.66.1, yast2-installation-4.0.77-3.22.5, zypper-1.14.43-3.49.1
SUSE Linux Enterprise Server 15-LTSS (src):    libsolv-0.7.17-3.40.1, libzypp-17.25.8-3.66.1, yast2-installation-4.0.77-3.22.5, zypper-1.14.43-3.49.1
SUSE Linux Enterprise Installer 15 (src):    libsolv-0.7.17-3.40.1, libzypp-17.25.8-3.66.1, yast2-installation-4.0.77-3.22.5, zypper-1.14.43-3.49.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    libsolv-0.7.17-3.40.1, libzypp-17.25.8-3.66.1, yast2-installation-4.0.77-3.22.5, zypper-1.14.43-3.49.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    libsolv-0.7.17-3.40.1, libzypp-17.25.8-3.66.1, yast2-installation-4.0.77-3.22.5, zypper-1.14.43-3.49.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 22 Swamp Workflow Management 2021-03-25 23:17:26 UTC
SUSE-SU-2021:0956-1: An update that solves one vulnerability, contains one feature and has 18 fixes is now available.

Category: security (moderate)
Bug References: 1050625,1174016,1177238,1177275,1177427,1177583,1178910,1178966,1179083,1179222,1179816,1179847,1179909,1180077,1180663,1180721,1181328,1181622,1182629
CVE References: CVE-2017-9271
JIRA References: SLE-8482
Sources used:
SUSE Manager Server 4.0 (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE Manager Retail Branch Server 4.0 (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE Manager Proxy 4.0 (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE Linux Enterprise Installer 15-SP1 (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE Enterprise Storage 6 (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1
SUSE CaaS Platform 4.0 (src):    libsigc++2-2.10.0-3.7.1, libsolv-0.7.17-3.32.1, libyui-ncurses-pkg-2.48.9-7.7.1, libyui-ncurses-pkg-doc-2.48.9-7.7.1, libyui-qt-pkg-2.45.28-3.10.1, libyui-qt-pkg-doc-2.45.28-3.10.1, libzypp-17.25.8-3.48.1, yast2-pkg-bindings-4.1.3-3.10.3, zypper-1.14.43-3.34.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.