Hosting or Servers Logo

dnf Hangs Waiting for Process to Finish

If after entering a dnf command into your terminal window you receive the message "Waiting for process to finish" it may be because dnf is locked. To find out if there is a lock enter the command shown in the box.

ls /var/cache/dnf/*pid

If the previous command shows the file then it should be removed using the following command.

sudo rm /var/cache/dnf/

Hopefully, you now have access to dnf without having to wait for the process to finish. Please remember dnf may have been doing something important whereby it would be more advisable to let it finish rather than simply unlocking the process prematurely.

You Are Leaving Us

This link is being provided as a convenience and for informational purposes only it is not an endorsement or an approval of any of the products, services or opinions of the corporation or organization or individual. bears no responsibility for the accuracy, legality or content of the external site or for that of subsequent links.