Bug 23051 - "dnf upgrade" refuses to update packages as "urpmi --auto-update" does
Summary: "dnf upgrade" refuses to update packages as "urpmi --auto-update" does
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Neal Gompa
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-18 12:48 CEST by peter lawford
Modified: 2018-05-21 00:30 CEST (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
return of dnf upgrade (2.00 KB, text/plain)
2018-05-18 12:49 CEST, peter lawford
Details
return of urpmi --auto-update (13.31 KB, text/plain)
2018-05-18 12:49 CEST, peter lawford
Details

Description peter lawford 2018-05-18 12:48:22 CEST
Description of problem:
first:

[alain4@mag6 ~]$ dnf repolist
Dernière vérification de l’expiration des métadonnées effectuée il y a 11 days, 22:03:16 le dim. 06 mai 2018 14:36:18 CEST.
id du dépôt                                  nom du dépôt                                                                     état
dl.google.com_linux_chrome_rpm_stable_x86_64 created by dnf config-manager from http://dl.google.com/linux/chrome/rpm/stable/      3
mageia-x86_64                                Mageia 6 - x86_64                                                                28 136
mageia-x86_64-nonfree                        Mageia 6 - x86_64 - Nonfree                                                         130
mageia-x86_64-tainted                        Mageia 6 - x86_64 - Tainted                                                         347
opera                                        Opera packages                                                                        6
skype-stable                                 skype (stable)                                                                        5
updates-x86_64                               Mageia 6 - x86_64 - Updates                                                       5 045
updates-x86_64-nonfree                       Mageia 6 - x86_64 - Nonfree - Updates                                                72
updates-x86_64-tainted                       Mageia 6 - x86_64 - Tainted - Updates                                               141
vivaldi                                      vivaldi                                                                               3

sorry, LC_ALL=C doesn't apply for dnf

returns of successively executed commands "dnf upgrade" and "urpmi --auto-update" can be found as attached files
see by yourself


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


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 peter lawford 2018-05-18 12:49:03 CEST
Created attachment 10170 [details]
return of dnf upgrade
Comment 2 peter lawford 2018-05-18 12:49:48 CEST
Created attachment 10171 [details]
return of urpmi --auto-update
Comment 3 peter lawford 2018-05-18 12:53:12 CEST
after I executed onc again dnf upgrade without any issue:

[root@mag6 alain4]# dnf upgrade        
Dernière vérification de l’expiration des métadonnées effectuée il y a 0:04:43 le ven. 18 mai 2018 12:24:57 CEST.
Dépendances résolues.
====================================================================================================================================
 Paquet                            Architecture                Version                             Dépôt                      Taille
====================================================================================================================================
Mise à jour de:
 opera-stable                      x86_64                      53.0.2907.57-0                      opera                       50 M

Résumé de la transaction
====================================================================================================================================
Mettre à jour  1 Paquet

Taille totale des téléchargements : 50 M
Voulez-vous continuer ? [o/N] :o
Téléchargement des paquets :
opera_stable-53.0.2907.57-linux-release-x64-signed.rpm                                               29 MB/s |  50 MB     00:01    
------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                29 MB/s |  50 MB     00:01     
Test de la transaction en cours
La vérification de la transaction a réussi.
Lancement de la transaction de test
Transaction de test réussie.
Exécution de la transaction
  Préparation           :                                                                                                       1/1 
  Mise à jour de        : opera-stable-53.0.2907.57-0.x86_64                                                                    1/2 
  Exécution du scriptlet: opera-stable-53.0.2907.57-0.x86_64                                                                    1/2 
  Nettoyage de          : opera-stable-53.0.2907.37-0.x86_64                                                                    2/2 
  Exécution du scriptlet: opera-stable-53.0.2907.37-0.x86_64                                                                    2/2 
  Exécution du scriptlet: opera-stable-53.0.2907.57-0.x86_64                                                                    2/2 
  Exécution du scriptlet: opera-stable-53.0.2907.37-0.x86_64                                                                    2/2 
  Vérification de       : opera-stable-53.0.2907.57-0.x86_64                                                                    1/2 
  Vérification de       : opera-stable-53.0.2907.37-0.x86_64                                                                    2/2 

Mis à niveau:
  opera-stable.x86_64 53.0.2907.57-0                                                                                                

Terminé !
[root@mag6 alain4]#
Comment 4 Marja Van Waes 2018-05-19 08:52:26 CEST
Assigning to the registered maintainer.

Assignee: bugsquad => ngompa13
CC: (none) => marja11

Comment 5 Marja Van Waes 2018-05-20 16:58:02 CEST
Hi Peter,

I had time to read your report now. I can't find a bug in what happened!

I have the impression you don't know this wiki page
https://wiki.mageia.org/en/Using_DNF

Please read it :-)

First of all, if you want the dnf output in English, please use:

LANGUAGE=C

before the command, as told at the bottom of https://wiki.mageia.org/en/Using_DNF#Short_command_variants_of_common_commands

Second, when you ran "dnf repolist" you did see that the metadata were very old.

That should have made you refresh them, for instance with 

   dnf makecache

or using

   dnf upgrade --refresh

as explained here

  https://wiki.mageia.org/en/Using_DNF#Some_commands_to_get_started

Closing this report.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 6 peter lawford 2018-05-20 21:59:17 CEST
(In reply to Marja Van Waes from comment #5)
> Hi Peter,
> 
> I had time to read your report now. I can't find a bug in what happened!
> 
> I have the impression you don't know this wiki page
> https://wiki.mageia.org/en/Using_DNF
> 
> Please read it :-)
> 
> First of all, if you want the dnf output in English, please use:
> 
> LANGUAGE=C
> 
> before the command, as told at the bottom of
> https://wiki.mageia.org/en/
> Using_DNF#Short_command_variants_of_common_commands
> 
> Second, when you ran "dnf repolist" you did see that the metadata were very
> old.

and how could I see that?

> 
> That should have made you refresh them, for instance with 
> 
>    dnf makecache
> 
> or using
> 
>    dnf upgrade --refresh
> 
> as explained here
> 
>   https://wiki.mageia.org/en/Using_DNF#Some_commands_to_get_started
> 
> Closing this report.

 why is it necessary to refresh the dnf metadata? and what is the refreshing frequency? I never did that with urpmi, which always works fine
Comment 7 peter lawford 2018-05-21 00:30:14 CEST
(In reply to Marja Van Waes from comment #5)
> Hi Peter,
> 
> I had time to read your report now. I can't find a bug in what happened!
> 
> I have the impression you don't know this wiki page
> https://wiki.mageia.org/en/Using_DNF
> 
> Please read it :-)
> 
> First of all, if you want the dnf output in English, please use:
> 
> LANGUAGE=C
> 
> before the command, as told at the bottom of
> https://wiki.mageia.org/en/
> Using_DNF#Short_command_variants_of_common_commands
> 
> Second, when you ran "dnf repolist" you did see that the metadata were very
> old.
> 
> That should have made you refresh them, for instance with 
> 
>    dnf makecache
> 
> or using
> 
>    dnf upgrade --refresh
> 
> as explained here
> 
>   https://wiki.mageia.org/en/Using_DNF#Some_commands_to_get_started
> 
> Closing this report.

nevertheless, I thank you very much for giving me all these indications

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