I'm using linux mint. I'm trying to install php5-cli, but after execution a corresponding bash command I've the following log:
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-cli is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 353 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up php5-common (5.4.6-1ubuntu1.5) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up man-db (2.6.3-1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.4.6-1ubuntu1.5); however:
Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.4.6-1ubuntu1.5); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
php5-common
man-db
libapache2-mod-php5
php5-cli
E: Sub-
process /usr/bin/dpkg returned an error code (1)
If I'm trying to execute sudo apt-get install man-db or sudo apt-get install libapache2-mod-php5 I have the same errors. Why it occurred?
I had this same error after symlinking the /etc/php5/cli/php.ini from /etc/php5/apache/php.ini
I deleted the symlink and then called
sudo apt-get -f install
all is good!
before above you should do
sudo mv /etc/php5/cli/php.ini /etc/php5/cli/php.bak
Related
I have recently upgraded my ubuntu to 20.04. Now, I am trying to install the postgresql but I am getting error. I have tried to 100 different ways and crawled every web but nothing worked.
These are the steps I followed:
Step 1
sudo apt update
Step 2
sudo apt install postgresql postgresql-contrib
Here is the error log
Setting up postgresql-common (223.pgdg20.04+1) ...
dpkg: error processing package postgresql-common (--configure):
installed postgresql-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of postgresql-13:
postgresql-13 depends on postgresql-common (>= 182~); however:
Package postgresql-common is not configured yet.
dpkg: error processing package postgresql-13 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-13; however:
Package postgresql-13 is not configured yet.
dpkg: error processing package postgresql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-contrib:
postgresql-contrib depends on postgresql-contrib-13; however:
Package postgresql-contrib-13 is not installed.
Package postgresql-13 which provides postgresql-contrib-13 is not configured yet.
dpkg: error processing package postgresql-contrib (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is
reached already
No apport report written because MaxReports is reached already
9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.3) ...
Errors were encountered while processing:
sysstat
postgresql-common
postgresql-13
postgresql
postgresql-contrib
E: Sub-process /usr/bin/dpkg returned an error code (1)
Somebody please help me here
~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python3-setuptools (45.2.0-1) ...
/var/lib/dpkg/info/python3-setuptools.postinst: 6: py3compile: not found
dpkg: error processing package python3-setuptools (--configure):
installed python3-setuptools package post-installation script subprocess returned error exit status 127
Setting up python3-wheel (0.34.2-1) ...
/var/lib/dpkg/info/python3-wheel.postinst: 6: py3compile: not found
dpkg: error processing package python3-wheel (--configure):
installed python3-wheel package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of python3-pip:
python3-pip depends on python3-setuptools; however:
Package python3-setuptools is not configured yet.
python3-pip depends on python3-wheel; however:
Package python3-wheel is not configured yet.
dpkg: error processing package python3-pip (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
python3-setuptools
python3-wheel
python3-pip
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt-get install nodejs
[sudo] password for akhil:
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.1).
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-51 linux-headers-4.4.0-51-generic linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic
linux-image-4.4.0-51-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-51-generic linux-image-extra-4.4.0-57-generic
ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 140 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python-gunicorn (19.4.5-1ubuntu1) ...
update-rc.d: error: initscript does not exist: /etc/init.d/gunicorn
dpkg: error processing package python-gunicorn (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of gunicorn:
gunicorn depends on python-gunicorn (= 19.4.5-1ubuntu1); however:
Package python-gunicorn is not configured yet.
dpkg: error processing package gunicorn (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
python-gunicorn
gunicorn
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am trying to install nodejs on my system.But the above error occured.
I already installed gunicorn in my system.Please figureout what is the real issue?
When i'm trying to install libapache2-mod-fastcgi for apache as following:
OS: Ubuntu 14.04
root#server:~# sudo apt-get install libapache2-mod-fastcgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-fastcgi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libapache2-mod-fastcgi (2.4.7~0910052141-1.1) ...
dpkg: error processing package libapache2-mod-fastcgi (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-fastcgi
E: Sub-process /usr/bin/dpkg returned an error code (1)
What's wrong ? I've done this before on Ubuntu, But this time an error came up.
Both sudo dpkg --configure -a and sudo apt-get install -f
Setting up libapache2-mod-fastcgi (2.4.7~0910052141-1.1) ...
dpkg: error processing package libapache2-mod-fastcgi (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
libapache2-mod-fastcgi
There was a better solution (yours doesn't works for me):
Uninstall the module
sudo apt-get remove --auto-remove libapache2-mod-fastcgi
Purge config/data
sudo apt-get purge --auto-remove libapache2-mod-fastcgi
Then you can install the module
sudo apt-get install libapache2-mod-fastcgi
I want to install mongoDB on Debian. The problem is when I try to do that the output is like this:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb-10gen is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up mongodb-10gen (2.4.10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've searched about that and found some solutions like:
install mongodb-10gen failed with apt-get
But when try to run this command:
apt-get remove mongodb-clients
The result is:
[root#Takhalof-srv ~]$ apt-get remove mongodb-clients
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mongodb-clients' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mongodb-10gen (2.4.10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I try to run this command:
sudo service mongodb restart
The result is:
mongodb: unrecognized service
When I use apt-get -f install the result is:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mongodb-10gen (2.4.10) ...
invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
I really confused and don't know what's the problem. What should I do?
The error in your first command strongly suggest that the MongoDB server(/daemon) isn't installed. Try installing mongodb-server, then doing apt-get -f install to finish configuring any half installed packages.