Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have several Ubuntu servers 10.04. Today, I tried to upgrade some packages on one of these servers and the process got stuck. I logged in using another SSH session and I found that dpkg is in D state (uninterruptible sleep).

According to what I have read, this state results generally from I/O waiting like waiting for NFS share. I can not understand why dpkg will block in this state. I can not see any obvious problems other than this.

Here is the output of ps to show the blocking process:

$ ps axo pid,cmd,s,wchan | grep dpkg
22571 /usr/bin/dpkg --status-fd 2 D call_rwsem_down_read_failed

This process can not be killed even with kill -9. So, I will not be able to install/upgrade any package unless I reboot the server. What makes it worse is that the remote reboot does not succeed in such a case (having processes in D state).

Can anyone help with this? How can I avoid this in the future.

share|improve this question
1  
This may be bug #624877 that already has a fix in Lucid proposed. See if any of the workarounds there help you out. – Takkat Sep 20 '12 at 9:30
@Takkat: Thanks. It seems similar :) – Khaled Sep 20 '12 at 10:32

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.