Ich habe Probleme, Pakete zu installieren oder upzudaten. Die Fehlermeldung ist
Media source 'http://download.opensuse.org/tumbleweed/repo/oss/' does not contain the desired medium
Ausgangslage:
Ich nutze OpenUSSE Tumbleweed in einem Dockercontainer (in einem Kubernetes-Cluster) auf Amazon AWS.
Das Ausgangsimage ist "FROM opensuse:tumbleweed" von DockerHub, hier. ich versuche darauf aufbauend weitere Images zu bauen und dafür installiere ich über Dockerfile Pakete, im Grunde nicht anders als bei einer Desktopinstallation. Das klappt mitunter problemlos. Dann wieder nicht. Tritt der Fehler mal auf, bleibt er hartnäckig über Tage bestehen. Ich kann dann idR keine Pakete mehr installieren.
Da ich schon Instanzen von Tumbleweed laufen habe, kann ich das Problem auch interaktiv reproduzieren und entsprechend debuggen. Leider weiß ich nicht, wo ich suchen muss.
bash-4.4# zypper lr -d
Repository priorities are without effect. All enabled repositories share the same priority.
# | Alias | Name | Enabled | GPG Check | Refresh | Priority | Type | URI | Service
--+-------------+-------------+---------+-----------+---------+----------+--------+-------------------------------------------------------+--------
1 | non-oss | NON-OSS | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/tumbleweed/repo/non-oss/ |
2 | oss | OSS | Yes | (r ) Yes | Yes | 99 | yast2 | http://download.opensuse.org/tumbleweed/repo/oss/ |
3 | repo-update | repo-update | Yes | (r ) Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/tumbleweed/ |
Patchstand System
bash-4.4# zypper up
Retrieving repository 'OSS' metadata .....................................[done]
Loading repository data...
Reading installed packages...
Nothing to do.
Triggern des Problems
bash-4.4# zypper -vvv --non-interactive --no-color install tree
Verbosity: 3
Entering non-interactive mode.
Non-option program arguments: 'tree'
Initializing Target
Checking whether to refresh metadata for NON-OSS
Checking whether to refresh metadata for OSS
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/content .....[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/media.1/media[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/media.1/media[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/content.asc .[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/content.key .[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/content .....[done]
Repository: OSS
Key Name: openSUSE Project Signing Key <opensuse@opensuse.org>
Key Fingerprint: 22C07BA5 34178CD0 2EFE22AA B88B2FD4 3DBDC284
Key Created: Mon May 5 08:37:40 2014
Key Expires: Thu May 2 08:37:40 2024
Rpm Name: gpg-pubkey-3dbdc284-53674dd4
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/s[done (8.6 MiB/s)]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/suse/setup/de[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/suse/setup/de[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/suse/setup/de[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/[done (12.9 MiB/s)]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/suse/setup/de[done]
Retrieving repository 'OSS' metadata .....................................[done]
Checking whether to refresh metadata for repo-update
Loading repository data...
Reading installed packages...
Force resolution: No
Selecting 'tree-1.7.0-3.10.x86_64' from repository 'OSS' for installation.
Resolving package dependencies...
Force resolution: No
The following NEW package is going to be installed:
tree 1.7.0-3.10 x86_64 OSS openSUSE
1 new package to install.
Overall download size: 53.8 KiB. Already cached: 0 B. After the operation,
additional 105.7 KiB will be used.
Continue? [y/n/...? shows all options] (y): y
committing
Retrieving package tree-1.7.0-3.10.x86_64 (1/1), 53.8 KiB (105.7 KiB unpacked)
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/media.1/media[done]
Media source 'http://download.opensuse.org/tumbleweed/repo/oss/' does not contain the desired medium
Abort, retry, ignore? [a/r/i/...? shows all options] (a): a
Problem occurred during or after installation or removal of packages:
Installation aborted by user
Please see the above error message for a hint.
Alles anzeigen
Das Logfile im Anhang ist /var/log/zypper.log vom Fehlschlag.
Der Gag ist nun, dass wenn ich RETRY probiere, das Paket problemlos installiert wird!
bash-4.4# zypper -vvv --no-color install tree
Verbosity: 3
Non-option program arguments: 'tree'
Initializing Target
Checking whether to refresh metadata for NON-OSS
Checking whether to refresh metadata for OSS
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/content .....[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/media.1/media[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/media.1/media[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/content.asc .[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/content.key .[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/content .....[done]
Repository: OSS
Key Name: openSUSE Project Signing Key <opensuse@opensuse.org>
Key Fingerprint: 22C07BA5 34178CD0 2EFE22AA B88B2FD4 3DBDC284
Key Created: Mon May 5 08:37:40 2014
Key Expires: Thu May 2 08:37:40 2024
Rpm Name: gpg-pubkey-3dbdc284-53674dd4
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss[done (418.2 KiB/s)]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/suse/setup/de[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/[done (11.7 MiB/s)]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/suse/setup/de[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/suse/setup/de[done]
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/[done (11.3 MiB/s)]
Retrieving repository 'OSS' metadata .....................................[done]
Checking whether to refresh metadata for repo-update
Loading repository data...
Reading installed packages...
Force resolution: No
Selecting 'tree-1.7.0-3.10.x86_64' from repository 'OSS' for installation.
Resolving package dependencies...
Force resolution: No
The following NEW package is going to be installed:
tree 1.7.0-3.10 x86_64 OSS openSUSE
1 new package to install.
Overall download size: 53.8 KiB. Already cached: 0 B. After the operation,
additional 105.7 KiB will be used.
Continue? [y/n/...? shows all options] (y):
committing
Retrieving package tree-1.7.0-3.10.x86_64 (1/1), 53.8 KiB (105.7 KiB unpacked)
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/media.1/media[done]
Media source 'http://download.opensuse.org/tumbleweed/repo/oss/' does not contain the desired medium
Abort, retry, ignore? [a/r/i/...? shows all options] (a): r
Retrieving: http://download.opensuse.org/tumbleweed/repo/oss/suse/x86_64/t[done]
Checking for file conflicts: .............................................[done]
(1/1) Installing: tree-1.7.0-3.10.x86_64 .................................[done]
CommitResult (total 1, done 1, error 0, skipped 0, updateMessages 0)
Alles anzeigen
Leider ist ABORT die default-Auswahl im nicht-interkativen Modus. Aber selbst wenn RETRY default wäre, wäre das nur ein Workaround.
Frage: Wo muss ich nach dem Fehler suchen? Welche Informationen kann ich noch bereitstellen, was kann ich noch prüfen?
Danke im Voraus!
Nachtrag: Meine Zypper-Configs sind alle Default: