Bug 1280070 - "dnf clean all" fails where "yum clean all" succeeds
Summary: "dnf clean all" fails where "yum clean all" succeeds
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1280071 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-10 21:29 UTC by Martín Cigorraga
Modified: 2015-12-11 17:34 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-12-09 23:34:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1226322 0 unspecified CLOSED dnf clean all does not clean package metadata for local repos 2021-02-22 00:41:40 UTC

Internal Links: 1226322

Description Martín Cigorraga 2015-11-10 21:29:03 UTC
Description of problem:
Dnf seems to fail cleaning the local metadata and cache.

Version-Release number of selected component (if applicable):
dnf 1.1.3

How reproducible:
Sometimes.

Steps to Reproduce:
1. # dnf clean all; dnf upgrade
2.
3.

Actual results:
Failed to synchronize cache for repo 'google-chrome' from 'http://dl.google.com/linux/chrome/rpm/stable/x86_64': Yum repo downloading error: Downloading error(s): repodata/filelists.xml.gz - Cannot download, all mirrors were already tried without success, disabling.

Expected results:
Local copy of the repositories freshened without issues.

Additional info:
Please refer to ticket: https://bugzilla.redhat.com/show_bug.cgi referenced here: https://lists.fedoraproject.org/pipermail/users/2015-February/458370.html

Comment 1 Michael Mráka 2015-11-11 08:04:09 UTC
*** Bug 1280071 has been marked as a duplicate of this bug. ***

Comment 2 Honza Silhan 2015-11-18 13:42:02 UTC
Does `dnf update --refresh` or `rm -fr /var/cache/dnf && dnf update` works for you?

Comment 3 Martín Cigorraga 2015-11-18 13:57:18 UTC
Hi Jan, thanks for stepping in.

In the past I had issues with `--refresh` (Fedora 22) so I decided to go by forcing a complete sync of the local repos (hence the `dnf clean all` command);  now that you mention it I will try it again and post back.

Comment 4 Michal Domonkos 2015-12-09 17:07:35 UTC
Hi Martín,

What's your current experience regarding this issue?  Did Jan's suggestions help you?

Thanks for sharing!

Comment 5 Martín Cigorraga 2015-12-09 23:34:50 UTC
Hello Michal, Jan,

I totally forgot to post back :P
So far it seems to be working, how did I test it:
1. # dnf --refresh upgrade && dnf clean all; dnf upgrade

Version of DNF:
 dnf --version
1.1.4
  Installed: dnf-0:1.1.4-2.fc23.noarch at 2015-12-09 12:02
  Built    : Fedora Project at 2015-11-27 10:25

  Installed: rpm-0:4.13.0-0.rc1.7.fc23.x86_64 at 2015-12-09 12:01
  Built    : Fedora Project at 2015-11-20 13:08


Thanks for your vigilant watch guys!

Comment 6 Michal Domonkos 2015-12-10 09:33:23 UTC
(In reply to Martín Cigorraga from comment #5)
> Hello Michal, Jan,
> 
> I totally forgot to post back :P
> So far it seems to be working, how did I test it:
> 1. # dnf --refresh upgrade && dnf clean all; dnf upgrade
> 
> Version of DNF:
>  dnf --version
> 1.1.4
>   Installed: dnf-0:1.1.4-2.fc23.noarch at 2015-12-09 12:02
>   Built    : Fedora Project at 2015-11-27 10:25
> 
>   Installed: rpm-0:4.13.0-0.rc1.7.fc23.x86_64 at 2015-12-09 12:01
>   Built    : Fedora Project at 2015-11-20 13:08
> 
> 
> Thanks for your vigilant watch guys!

Glad to hear that, thanks again!

Comment 7 Martín Cigorraga 2015-12-11 03:07:34 UTC
Hi again,

Well, I'm not sure how to interpret this - besides feeling a fool: 
http://paste.fedoraproject.org/299715/02845144
(You will need to click on the 'Wrap' button on the upper-right border, Terminus font 9px on 1920x1080 display).

I'll be on alert to any requirements you may have.

Comment 8 Michal Domonkos 2015-12-11 09:19:13 UTC
Hey,

So what happens is that if you provide "google-chrome" to dnf install, dnf will look for a package with this name in the enabled repositories.  However, the google-chrome repository only contains the following packages (you can list them with "dnf repo-pkgs google-chrome list"):

google-chrome-beta
google-chrome-stable
google-chrome-unstable

Since there's no package simply named "google-chrome", dnf will interpret your request as a virtual provide and look for the package which provides it.  All of the 3 mentioned packages do (you can list them with "dnf provides google-chrome"), so dnf will pick the newest package, which is google-chrome-beta.

That said, if you want the latest stable version rather than beta, run "dnf install google-chrome-stable" instead.

Let me know if that answers your question.

Comment 9 Martín Cigorraga 2015-12-11 17:34:09 UTC
Excellent, I still learning my way with DNF, thanks a lot for the thorough explanation!

Comment 10 Martín Cigorraga 2015-12-11 17:34:34 UTC
s/I/I'm


Note You need to log in before you can comment on or make changes to this bug.