Ask Your Question
1

dnf doesn't update

asked 2016-08-24 18:29:48 -0600

centinel20 gravatar image

I had some troubles with dnf after I deleted some cache from /var I know there are now new updates for fedora but dnf just doesnt want to update.

$ uname -r
4.5.7-200.fc23.x86_64

this is what happens. I probably screwed dnf up, is there a way to reinstall it or to fix it?

$ sudo dnf update
Bitcoin for Fedora - x86_64                      91 kB/s |  63 kB     00:00    
RPM Fusion for Fedora 23 - Free - Updates Debug 313 kB/s | 196 kB     00:00    
RPM Fusion for Fedora 23 - Free                 787 kB/s | 457 kB     00:00    
RPM Fusion for Fedora 23 - Nonfree - Updates    166 kB/s |  57 kB     00:00    
google-chrome - 64-bit                           24 kB/s | 3.7 kB     00:00    
Adobe Systems Incorporated                      9.8 kB/s | 1.8 kB     00:00    
RPM Fusion for Fedora 23 - Free - Updates       238 kB/s | 268 kB     00:01    
Fedora 23 - x86_64 - Updates                    2.1 MB/s |  24 MB     00:11    
RPM Fusion for Fedora 23 - Nonfree              323 kB/s | 156 kB     00:00    
Fedora 23 - x86_64                              3.0 MB/s |  43 MB     00:14    
RPM Fusion for Fedora 23 - Free - Updates Sourc 166 kB/s |  48 kB     00:00    
Dependencies resolved.
Nothing to do.
Complete!
edit retag flag offensive close merge delete

Comments

Try dnf clean all && dnf upgrade

florian gravatar imageflorian ( 2016-08-25 00:10:28 -0600 )edit

Fedora 23 - x86_64 3.0 MB/s | 43 MB 00:14
RPM Fusion for Fedora 23 - Free - Updates Sourc 166 kB/s | 48 kB 00:00
Dependencies resolved. Nothing to do. Complete!

centinel20 gravatar imagecentinel20 ( 2016-08-25 08:14:28 -0600 )edit

Then rebuild your RPM database:

sudo rpm --rebuilddb

How come your question is tagged with Fedora 24 and all you repos are Fedora23-repos?

Can you elaborate on what exactly you deleted?

florian gravatar imageflorian ( 2016-08-25 09:31:08 -0600 )edit

The system is running F23, as you can see from the response to uname -r in the question. Yet another reason I find tags useless.

sideburns gravatar imagesideburns ( 2016-08-25 13:48:48 -0600 )edit

Thank you florian that sound like it would have worked. Unfortunetly I destroyed my system trying to fix it so I just made a clean install. I learned not to delete stuff in /var manually when there are methods to clean cache. I have no way of knowing if that will work but I will mark it as a corect answer since that was the command I was looking for. Plese make it an answer.

centinel20 gravatar imagecentinel20 ( 2016-09-13 19:55:53 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-27 10:29:09 -0600

davidva gravatar image
su
yum-deprecated clean all
yum-deprecated -y update
edit flag offensive delete link more

Comments

sounds good unfortunetly I destroyed my sistem uninstalling dnf from my system and Fedora stopped working so I reinstalled With fedora24 and done! so I have no way of checking if this would have worked. but thanks.

centinel20 gravatar imagecentinel20 ( 2016-09-13 19:53:30 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-08-24 18:29:48 -0600

Seen: 408 times

Last updated: Aug 27 '16