Ask Your Question
0

How do I overcome 'waiting for process to finish' errors with DNF?

asked 2015-06-28 03:22:33 -0500

I have been attempting to update from the command line, but whenever I run:

sudo dnf update

I get the output:

Waiting for process with pid 3572 to finish.

I get the same error when I run sudo dnf install <package>. This process does not appear in task manager and when I run sudo kill -SIGKILL 3572 from the command line (which I'm hoping would kill process 3572) it makes no difference (i.e., I still get the same output Waiting for process with pid 3572 to finish.). If relevant I am running 32 bit Fedora 22 on a Virtual machine through VirtualBox.

edit retag flag offensive close merge delete

Comments

1

try using killall like killall -vws9 dnf

Rabin gravatar imageRabin ( 2015-06-28 09:08:49 -0500 )edit

Run this command: ps aux | grep 3572 | grep -i grep and you should get exactly one line of output, and this will tell you what process is hanging things up. Once you know that, you can work on getting it killed. Of course, it may be a program that sets a lock file (One of those is yum.) and the program may have died without properly cleaning up. If so, you'll have to find and delete the lock.

sideburns gravatar imagesideburns ( 2015-06-28 15:11:37 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-11-08 10:47:35 -0500

I had the same problem with Fedora 24, it was waiting for some process to finish

Last metadata expiration check: 0:02:24 ago on Tue Nov  8 12:32:12 2016.
Dependencies resolved.
=======================================================================================
 Package                   Arch          Version                 Repository       Size
=======================================================================================
Installing:
 postgresql94-devel        x86_64        9.4.10-1PGDG.f24        pgdg94          1.7 M
Removing:
 kernel                    x86_64        4.7.6-200.fc24          @updates          0  
 kernel-core               x86_64        4.7.6-200.fc24          @updates         52 M
 kernel-modules            x86_64        4.7.6-200.fc24          @updates         21 M

Transaction Summary
=======================================================================================
Install  1 Package
Remove   3 Packages

Total download size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
postgresql94-devel-9.4.10-1PGDG.f24.x86_64.rpm         307 kB/s | 1.7 MB     00:05    
---------------------------------------------------------------------------------------
Total                                                  307 kB/s | 1.7 MB     00:05     
Running transaction check
Waiting for process with pid 29851 to finish.

But couldn't find the pid while making

 ps -ef | grep 29851

But there was a process with pid 29852 associated with Spotify, I'm sure it could be anything else, I've killed that process that freed the lock on the kernel uninstall and the

sudo dnf install

was able to continue

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-06-28 03:22:33 -0500

Seen: 19,428 times

Last updated: Jun 28 '15