Solved

Getting error trying to install php5-dev on Ubuntu.

Posted on 2013-06-29
2
545 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

810 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