I am facing one issue. I am trying to install mysql-client mysql-server using below command.
sudo apt-get install mysql-client mysql-server libmysqlclient-dev
But here I am guessing that its installing properly. I am getting some errors also and those are given below.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmysqlclient-dev is already the newest version.
mysql-client is already the newest version.
mysql-server is already the newest version.
The following packages were automatically installed and are no longer required:
gcc-4.8-base:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386
libaudio2:i386 libavahi-client3:i386 libavahi-common-data:i386
libavahi-common3:i386 libcups2:i386 libdrm-intel1:i386 libdrm-nouveau2:i386
libdrm-radeon1:i386 libelf1:i386 libexpat1:i386 libffi6:i386 libflac8:i386
libfontconfig1:i386 libfreetype6:i386 libgcrypt11:i386 libgl1-mesa-dri:i386
libgl1-mesa-glx:i386 libglapi-mesa:i386 libglib2.0-0:i386 libgnutls26:i386
libgpg-error0:i386 libgssapi-krb5-2:i386 libgstreamer-plugins-base1.0-0:i386
libgstreamer1.0-0:i386 libice6:i386 libjack-jackd2-0:i386 libjbig0:i386
libjpeg-turbo8:i386 libjpeg8:i386 libk5crypto3:i386 libkeyutils1:i386
libkrb5-3:i386 libkrb5support0:i386 libllvm3.4:i386 libmysqlclient18:i386
libogg0:i386 liborc-0.4-0:i386 libp11-kit0:i386 libpciaccess0:i386
libpulse0:i386 libqt4-dbus:i386 libqt4-declarative:i386 libqt4-network:i386
libqt4-opengl:i386 libqt4-script:i386 libqt4-sql:i386 libqt4-sql-mysql:i386
libqt4-xml:i386 libqt4-xmlpatterns:i386 libqtcore4:i386 libqtdbus4:i386
libqtgui4:i386 libqtwebkit4:i386 libsamplerate0:i386 libsm6:i386
libsndfile1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.0.0:i386
libstdc++6:i386 libtasn1-6:i386 libtiff5:i386 libtxc-dxtn-s2tc0:i386
libudev1:i386 libvorbis0a:i386 libvorbisenc2:i386 libwrap0:i386
libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386
libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-sync1:i386
libxcb1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386
libxi6:i386 libxml2:i386 libxrender1:i386 libxshmfence1:i386 libxslt1.1:i386
libxss1:i386 libxt6:i386 libxv1:i386 libxxf86vm1:i386
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 309 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
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up mysql-server-5.5 (5.5.55-0ubuntu0.14.04.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing package mysql-server (--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:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Here I need to install properly. Please help me.
Related
After running updates and installs on my Ubuntu 16.04 Digital Ocean Droplet (with their LAMP stack installed), I can't can't get MySQL to install... I've tried numerous posts on here but none of them seem to work and the result is always the same for me:
Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative link /etc/mysql/my.cnf is already managed by my.cnf.bak
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--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:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I suspect it's the 'update-alternatives' line that is causing the issue, but I have no my.cnf.bak on the system. I'm not a server guy, so any help would be amazing!
Results when attempting to install via Aptitude:
The following partially installed packages will be configured:
mysql-server mysql-server-5.7
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative link /etc/mysql/my.cnf is already managed by my.cnf.bak
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--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:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
update-alternatives: error: alternative link /etc/mysql/my.cnf is already managed by my.cnf.bak
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.7; however:
Package mysql-server-5.7 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.7
mysql-server
I have over 100 packets to update. When I start updating and then I get an error
mysql-common
subprocess installed post-installation script returned error exit status 2
So, I try to uninstall mysql-common
sudo apt-get remove --purge mysql-common
Sadly I get a results
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-client : Depends: mysql-client-5.7 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I tried to remove mysql-client-5.7
[...]
Unpacking mariadb-client (10.0.29-0ubuntu0.16.04.1) ...
dpkg: mysql-client-5.7: dependency problems, but removing anyway as you requested:
dbconfig-mysql depends on mysql-client | mariadb-client | virtual-mysql-client; however:
Package mysql-client is not installed.
Package mariadb-client is not configured yet.
Package virtual-mysql-client is not installed.
Package mysql-client-5.7 which provides virtual-mysql-client is to be removed.
[...]
update-alternatives: error: alternative path /etc/mysql/my.cnf.fallback doesn't exist
dpkg: error processing package mysql-common (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of mariadb-common:
mariadb-common depends on mysql-common (>= 5.6.25); however:
Package mysql-common is not configured yet.
dpkg: error processing package mariadb-common (--configure):
dependency problems - leaving unconfigured
Setting up libreadline5:amd64 (5.2+dfsg-3build1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of mariadb-client-core-10.0:
mariadb-client-core-10.0 depends on mariadb-common (>= 10.0.29-0ubuntu0.16.04.1); however:
Package mariadb-common is not configured yet.
dpkg: error processing package mariadb-client-core-10.0 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of mariadb-client-10.0:
mariadb-client-10.0 depends on mariadb-client-core-10.0 (>= 10.0.29-0ubuntu0.16.04.1); however:
Package mariadb-client-core-10.0 is not configured yet.
dpkg: error processing package mariadb-client-10.0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mariadb-client:
mariadb-client depends on mariadb-client-10.0 (>= 10.0.29-0ubuntu0.16.04.1); however:
Package mariadb-client-10.0 is not configured yet.
dpkg: error processing package mariadb-client (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Setting up libappindicator1 (12.10.1+16.04.20170215-0ubuntu1) ...
Setting up libappindicator3-1 (12.10.1+16.04.20170215-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Errors were encountered while processing:
mysql-common
mariadb-common
mariadb-client-core-10.0
mariadb-client-10.0
mariadb-client
E: Sub-process /usr/bin/dpkg returned an error code (1)
When I try to remove mariadb* I still get an errors.
Any idea, how can I resolve my problem and update my OS?
I'm trying to setup a Vagrant environment involving a few Ubuntu machines with Ansible and am having trouble writing an Ansible Playbook to automate the process. Primarily, I'm following the instructions from this answer - https://stackoverflow.com/a/26598887
Here is the snippet of the error I'm getting from running the playbook;
PLAY [web] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [business-web1]
TASK: [Install MySQL] *********************************************************
failed: [business-web1] => (item=mysql-server) => {"failed": true, "item": "mysql-server"}
stderr: start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing package mysql-server (--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:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
stdout: Reading package lists...
Building dependency tree...
Reading state information...
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.5 (5.5.44-0ubuntu0.14.04.1) ...
msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'mysql-server'' failed: start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processing package mysql-server (--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:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit #/home/vagrant/provision-business-mysql.retry
business-web1 : ok=1 changed=0 unreachable=0 failed=1
To the best of my understanding, it looks like the first 'install mysql' step isn't being run. To verify this, I managed to recreate the problem by running the ansible module directly from command line;
vagrant#mgmt:~$ ansible web -m apt -a "name=mysql-server update_cache=yes cache_valid_time=3600 state=latest" --sudo
business-web1 | FAILED >> {
"failed": true,
"msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'mysql-server'' failed: start: Job failed to start\ninvoke-rc.d: initscript mysql, action \"start\" failed.\ndpkg: error processing package mysql-server-5.5 (--configure):\n subprocess installed post-installation script returned error exit status 1\ndpkg: dependency problems prevent configuration of mysql-server:\n mysql-server depends on mysql-server-5.5; however:\n Package mysql-server-5.5 is not configured yet.\n\ndpkg: error processing package mysql-server (--configure):\n dependency problems - leaving unconfigured\nNo apport report written because the error message indicates its a followup error from a previous failure.\nErrors were encountered while processing:\n mysql-server-5.5\n mysql-server\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n",
"stderr": "start: Job failed to start\ninvoke-rc.d: initscript mysql, action \"start\" failed.\ndpkg: error processing package mysql-server-5.5 (--configure):\n subprocess installed post-installation script returned error exit status 1\ndpkg: dependency problems prevent configuration of mysql-server:\n mysql-server depends on mysql-server-5.5; however:\n Package mysql-server-5.5 is not configured yet.\n\ndpkg: error processing package mysql-server (--configure):\n dependency problems - leaving unconfigured\nNo apport report written because the error message indicates its a followup error from a previous failure.\nErrors were encountered while processing:\n mysql-server-5.5\n mysql-server\nE: Sub-process /usr/bin/dpkg returned an error code (1)\n",
"stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nmysql-server is already the newest version.\n0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.\n2 not fully installed or removed.\nAfter this operation, 0 B of additional disk space will be used.\nSetting up mysql-server-5.5 (5.5.44-0ubuntu0.14.04.1) ...\n"
}
vagrant#mgmt:~$
Any idea how I can get mysql installed and a DB setup using Ansible?
I had this same error occurring trying to install mysql on a fresh ubuntu/trusty64 box. Crazily enough it turned out to be due to the VM instance having less than 512MB of memory. Make sure your Vagrantfile allots your VM enough memory.
config.vm.provider "virtualbox" do |vb|
vb.memory = "512"
end
#MicahElliott points into the right direction. The error is not related to ansible, but to apt.
E: Sub-process /usr/bin/dpkg returned an error code (1)
stdout: Reading package lists...
Building dependency tree...
Reading state information...
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 52 not upgraded.
2 not fully installed or removed.
Look here for a solution: https://askubuntu.com/a/438843/231051
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
Need to get 0 B/49.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: error processing package python-debian (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of update-notifier-common:
update-notifier-common depends on python-debian; however:
Package python-debian is not configured yet.
dpkg: error processing package update-notifier-common (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apt-xapian-index:
apt-xapian-index depends on python-debian (>= 0.1.14); however:
Package python-debian is not configured yet.
dpkg: error processing package apt-xapian-index (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of flashplugin-installer:
flashplugin-installer depends on update-notifier-common (>= 0.119ubuntu2); however:
Package update-notifier-common is not configured yet.
dpkg: error processing package flashplugin-installer (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-aptdaemon:
python-aptdaemon dependNo 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
No apport report written because MaxReports is reached already
s on python-debian; however:
Package python-debian is not configured yet.
dpkg: error processing package python-aptdaemon (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-aptdaemon.gtk3widgets:
python-aptdaemon.gtk3widgets depends on python-aptdaemon (= 1.1.1-1ubuntu5); however:
Package python-aptdaemon is not configured yet.
dpkg: error processing package python-aptdaemon.gtk3widgets (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-center:
software-center depends on python-aptdaemon (>= 0.40); however:
Package python-aptdaemon is not configured yet.
software-center depends on python-aptdaemon.gtk3widgets; however:
Package python-aptdaemon.gtk3widgets is not configured yet.
dpkg: error processing package software-center (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of sessioninstaller:
sessioninstaller depends on python-aptdaemon.gtk3widgets; however:
Package python-aptdaemon.gtk3widgets is not configured yet.
dpkg: error processing package sessioninstaller (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
E: Sub-process /usr/bin/dpkg returned an error code (1)
I am getting this error when i am trying to configure dpkg...
please tell me what to do..i am stuck.
There is obviously something wrong with your dpkg.
Run this:
sudo dpkg --configure -a
this will make dpkg repairs itself
Then run your installations again.
If it doesn't work run:
sudo apt-get install -f
and again
sudo dpkg --configure -a
This should do the trick
I can't install QGis in ubuntu12.04. I got following error.
$ sudo apt-get install qgis
[sudo] password for anju:
Reading package lists... Done
Building dependency tree
Reading state information... Done
qgis is already the newest version.
The following packages were automatically installed and are no longer required:
libnss3-dev libnspr4-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 574 not upgraded.
5 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 qgis-providers-common (1.8.0-1~precise2) ...
/usr/lib/qgis/crssync: symbol lookup error: /usr/lib/libgdal.so.1: undefined symbol: pj_ctx_alloc
dpkg: error processing qgis-providers-common (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of qgis-providers:
qgis-providers depends on qgis-providers-common (= 1.8.0-1~precise2); however:
Package qgis-providers-common is not configured yet.
dpkg: error processing qgis-providers (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis:
qgis depends on qgis-providers (= 1.8.0-1~precise2); however:
Package qgis-providers is not configured yet.
dpkg: error processing qgis (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qgis-plugin-globe:
qgis-plugin-globe depends on qgis (= 1.8.0-1~precise2); however:
Package qgis is not configured yet.
dpkg: error processing qgis-plugin-globe (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuNo apport report written because the error message indicates its a followup error from a previous failure.
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
ration of qgis-plugin-grass:
qgis-plugin-grass depends on qgis (= 1.8.0-1~precise2); however:
Package qgis is not configured yet.
dpkg: error processing qgis-plugin-grass (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
qgis-providers-common
qgis-providers
qgis
qgis-plugin-globe
qgis-plugin-grass
E: Sub-process /usr/bin/dpkg returned an error code (1)
Please help me..
It looks like the gem is installed, but its dependencies aren't configured properly.
Try running sudo dpkg-reconfigure qgis to reconfigure them.
Follow the steps in the following link, it fixed the symbol look up error in qgis.
http://ubuntuforums.org/showthread.php?t=1764127
If I remove QGIS, then I can't re install it back!