Solved

Getting error trying to install php5-dev on Ubuntu.

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

910 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

23 Experts available now in Live!

Get 1:1 Help Now