Solved

Getting error trying to install php5-dev on Ubuntu.

Posted on 2013-06-29
2
548 Views
Last Modified: 2013-06-30
I am trying to install php5-dev using the command "sudo apt-get install php5-dev"
The installation is stopping with the following errors. Request experts to help me resolve this issue:


Processing triggers for install-info ...
Processing triggers for man-db ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--unpack):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Processing triggers for doc-base ...
Processing 1 added doc-base file...
Errors were encountered while processing:
 man-db
E: Sub-process /usr/bin/dpkg returned an error code (1)
0
Comment
Question by:sukhoi35
2 Comments
 
LVL 19

Accepted Solution

by:
simon3270 earned 500 total points
ID: 39288135
It looks as though a previous installation is still running, or it has failed to remove a lock on one of the dpkg configuration files.  You can only run one "apt-get" process at a time, because of the underlying dpkg processes, and locks on the package control files.

You could try rebooting the machine (a bit drastic, but should solve the problem).  Otherwise, try running:
    fuser -v /var/cache/debconf/config.dat
as root to see which process is holding on to the file, and kill that process.
0
 

Author Closing Comment

by:sukhoi35
ID: 39288140
Hi Simon,
You are right, I did realize (by chance) after sometime after posting this question that a previous installation was already present. Thanks for your other suggestions which I can try if I face a similar issue in future.

Regards.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
while read ID; do 4 58
Why is my foreach loop not returning values from $_SESSION variable 8 25
PHP Curl Problem 10 41
How do I post more than 1 item to php backend 24 31
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Fine Tune your automatic Updates for Ubuntu / Debian
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question