TASK [mariadb : Install MariaDB] ****************************************************************************************************************************
failed: [localhost] (item=[u’mariadb-server’, u’mariadb-client’, u’mariadb-common’, u’libmariadbclient18’, u’python-mysqldb’]) => {“cache_update_time”: 1516161005, “cache_updated”: false, “failed”: true, “item”: [“mariadb-server”, “mariadb-client”, “mariadb-common”, “libmariadbclient18”, “python-mysqldb”], “msg”: “‘/usr/bin/apt-get -y -o "Dpkg::Options::=–force-confdef" -o "Dpkg::Options::=–force-confold" install ‘mariadb-client’’ failed: E: Unable to correct problems, you have held broken packages.\n”, “rc”: 100, “stderr”: “E: Unable to correct problems, you have held broken packages.\n”, “stderr_lines”: [“E: Unable to correct problems, you have held broken packages.”], “stdout”: “Reading package lists…\nBuilding dependency tree…\nReading state information…\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n mariadb-client : Depends: mariadb-client-10.2 (>= 10.2.12+maria~trusty) but it is not going to be installed\n”, “stdout_lines”: [“Reading package lists…”, “Building dependency tree…”, “Reading state information…”, “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:”, " mariadb-client : Depends: mariadb-client-10.2 (>= 10.2.12+maria~trusty) but it is not going to be installed"]}
Below is the Install Prerequisites:
=> Python 2.7.12 or above:-
=> MariaDB 10+
=> Nginx (for production)
=> Nodejs
=> Redis
=> wkhtmltopdf with patched Qt (for pdf generation)
Check your python version in the system.
Type python on your terminal screen and press enter and check the version of python.
For Example
root@ubuntu:~$ python
Thanks
root@ubuntu:~/ErpNext/ErpNext/bench-repo# python
Python 2.7.12 (default, Nov 20 2017, 18:23:56)
[GCC 5.4.0 20160609] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.