English
Ask Your Question
1

dnf runs in a loop

asked 2015-01-03 22:31:08 +0000

SantoshHoropter gravatar image

updated 2015-01-04 04:50:50 +0000

mether gravatar image

To be precise, in f21... it, whiile trying to update... runs in a loop from 28% (11 MB may be) to 36% (14 MB may be) over and over. What should I do?

edit retag flag offensive close merge delete

Comments

2

Can you upload the output? Is it sticking on a particular package?

bitwiseoperator ( 2015-01-04 00:04:15 +0000 )edit
1
Script started on Sunday 04 January 2015 04:24:53 PM IST
]0;Horopter@Desai:/home/Horopter]7;file://Desai/home/Horopter[root@Desai Horopter]# dnf install gcc
Fedora 21 - x86_64                                       0% [                                                       ] ---  B/s |   0  B     --:-- ETA
Fedora 21 - x86_64                                       0% [                                                       ] ---  B/s |   0  B     --:-- ETA
Fedora 21 - x86_64                                       0% [                                                       ]  13 kB/s | 4.0 kB     13:55 ETA
Fedora 21 - x86_64                                       0% [                                                       ]  14 kB/s |  12 kB     13:02 ETA
Fedora 21 - x86_64                                       0% [                                                       ]  19 kB/s |  42 kB     09:35 ETA
Fedora 21 - x86_64                                       0% [                                                       ]  25 kB/s |  78 kB     07:14 ETA
Fedora 21 - x86_64                                       1% [-                                                      ]  31 kB/s | 116 kB     05:49 ETA
Fedora 21 - x86_64                                       1% [-                                                      ]  37 kB/s | 153 kB     04:54 ETA
Fedora 21 - x86_64                                       1% [-                                                      ]  42 kB/s | 189 kB     04:18 ETA
Fedora 21 - x86_64                                       2% [=                                                      ]  47 kB/s | 227 kB     03:49 ETA
Fedora 21 - x86_64                                       2% [=                                                      ]  45 kB/s ...
(more)
SantoshHoropter ( 2015-01-04 10:58:00 +0000 )edit

It happens with every package.

SantoshHoropter ( 2015-01-04 11:01:15 +0000 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-01-04 07:39:28 +0000

You can use yum-plugin-fastestmirror. This plugin sorts each repository's mirrorlist by connection speed prior to downloading packages.

su
yum -y install yum-plugin-fastestmirror
yum clean metadata
yum -y update
edit flag offensive delete link more

Comments

nope it didn't work.

SantoshHoropter ( 2015-01-04 11:00:53 +0000 )edit

@SantoshHoropter obvious "yum-plugin" use "yum" my friend...

davidva ( 2015-01-05 06:10:47 +0000 )edit

yum couldn't detect certain packages. I had to move on to dnf

SantoshHoropter ( 2015-01-05 09:33:55 +0000 )edit

It was found out that my dnf was a bit not properly installed. I reinstalled dnf and it works fine.

SantoshHoropter ( 2015-01-09 00:44:53 +0000 )edit
0

answered 2015-01-05 06:26:54 +0000

pnemade gravatar image

If you are trying with dnf, I assume you should have refreshed metadata using

sudo dnf clean all

and tried to update the system right? Do you get same results as above?

edit flag offensive delete link more

Comments

yes... the sample out put is as below

Script started on Monday 05 January 2015 02:52:13 PM IST
]0;Horopter@Desai:~]7;file://Desai/home/Horopter[Horopter@Desai ~]$ cc m.cpp[1@gppccsudo dnf install dnf clean all
[sudo] password for Horopter: 
Cleaning repos: moka-stable fedora rpmfusion-free-updates adobe-linux-x86_64 rpmfusion-nonfree-updates rpmfusion-free fedy google-chrome
              : rpmfusion-nonfree
Cleaning up Everything
]0;Horopter@Desai:~]7;file://Desai/home/Horopter[Horopter@Desai ~]$ sudo dnf clean allcc m.cppsudo dnf clean allsudo dnf install gcc
Moka Project Stable                                      0% [                                                       ] ---  B/s |   0  B     --:-- ETA
Moka Project Stable                                      0% [                                                       ] ---  B/s |   0  B     --:-- ETA
Moka Project Stable                                    100% [=======================================================] 9.4 kB/s | 2.8 kB     00:00 ETA
Moka Project Stable                                    100% [=======================================================] 9.4 kB ...
(more)
SantoshHoropter ( 2015-01-05 09:32:14 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
2 followers

Stats

Asked: 2015-01-03 22:31:08 +0000

Seen: 201 times

Last updated: Jan 05 '15