Solved

Getting error trying to install php5-dev on Ubuntu.

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now