tumbleweed-cli icon indicating copy to clipboard operation
tumbleweed-cli copied to clipboard

dnf ref doesn't work

Open oshanz opened this issue 3 years ago • 4 comments

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.

oshanz avatar Jun 21 '21 15:06 oshanz

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 avatar Jun 22 '21 03:06 boombatower

@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

oshanz avatar Jun 22 '21 12:06 oshanz

Nice, should be relatively simple to support if someone has the time. Glad you have a workaround.

boombatower avatar Jun 22 '21 18:06 boombatower

@oshanz Thx. Fixed the problem for me.

dagdrommer avatar Jul 14 '21 13:07 dagdrommer