tumbleweed-cli
tumbleweed-cli copied to clipboard
dnf ref doesn't work
I have installed tumbleweed-cli
and did the init
. everything worked fine. I was able to do a distro update to a stable version.
unfortunately now I can't install packages using dnf
localhost:/home/oz # zypper lr -EUP
# | Alias | Name | Enabled | GPG Check | Refresh | Priority | URI
--+----------------------------------+--------------------------------------+---------+-----------+---------+----------+-------------------------------------------------------------------------------
1 | download.opensuse.org-non-oss | Main Repository (NON-OSS) (20210614) | Yes | (r ) Yes | No | 99 | http://download.opensuse.org/history/20210614/tumbleweed/repo/non-oss/
2 | download.opensuse.org-oss | Main Repository (OSS) (20210614) | Yes | (r ) Yes | No | 99 | http://download.opensuse.org/history/20210614/tumbleweed/repo/oss/
3 | download.opensuse.org-tumbleweed | Main Update Repository | Yes | (r ) Yes | No | 99 | http://download.opensuse.org/update/tumbleweed/
6 | openSUSE_Tumbleweed | media codec | Yes | (r ) Yes | No | 90 | http://opensuse-guide.org/repo/openSUSE_Tumbleweed/
7 | packman-essentials | packman | Yes | (r ) Yes | No | 90 | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/Essentials
- these are the errors propergrate on
dnf ref
command
localhost:/home/oz # dnf ref
media codec 1.5 kB/s | 1.5 kB 00:00
packman 696 B/s | 1.3 kB 00:01
Main Repository (NON-OSS) ($snapshotVersion) 725 B/s | 1.1 kB 00:01
Errors during downloading metadata for repository 'download.opensuse.org-non-oss':
- Status code: 404 for http://download.opensuse.org/history/$snapshotVersion/tumbleweed/repo/non-oss/repodata/repomd.xml (IP: 195.135.221.134)
Error: Failed to download metadata for repo 'download.opensuse.org-non-oss': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Main Repository (OSS) ($snapshotVersion) 803 B/s | 1.1 kB 00:01
Errors during downloading metadata for repository 'download.opensuse.org-oss':
- Status code: 404 for http://download.opensuse.org/history/$snapshotVersion/tumbleweed/repo/oss/repodata/repomd.xml (IP: 195.135.221.134)
Error: Failed to download metadata for repo 'download.opensuse.org-oss': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Main Update Repository 4.5 kB/s | 2.1 kB 00:00
Ignoring repositories: download.opensuse.org-non-oss, download.opensuse.org-oss
Metadata cache created.
Thanks for the report.
dnf
is not supported by tumbleweed cli. If there is a similar mechanism for providing URL variables I would be fine supporting that path.
Patches welcome.
@boombatower thanks for pointing out how its working. after doing some research I was able to fix the issue.
sudo ln -s /etc/zypp/vars.d/snapshotVersion /etc/dnf/vars/snapshotVersion
reference: https://dnf.readthedocs.io/en/latest/conf_ref.html#repo-variables
Nice, should be relatively simple to support if someone has the time. Glad you have a workaround.
@oshanz Thx. Fixed the problem for me.