Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Getting error trying to install php5-dev on Ubuntu.

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
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é.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

808 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