I am trying to install mysql mod security on my debian machine, but it gives me the following error when I do this -
apt-get install libapache-mod-security
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
liblua5.1-0 mod-security-common
The following NEW packages will be installed:
libapache-mod-security liblua5.1-0 mod-security-common
0 upgraded, 3 newly installed, 0 to remove and 93 not upgraded.
Need to get 0 B/1,173 kB of archives.
After this operation, 3,506 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: unrecoverable fatal error, aborting:
syntax error: unknown user 'mixmaster' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
Any ideas what I am doing wrong?
Try this
sudo apt-get remove --purge mixmaster
Or
Check for
cat /etc/groups.default | grep mix
If there is a mixmaster user/group in defaults put it in the system file too
edit /etc/groups and put in the put in the output of cat /etc/groups.default | grep mix command
run apt-get again
Or
Check for
dpkg-statoverride
This command may be of some help
Related
We have a peculiar situation. I have inherited some source code from the people who left the company.
in docker file they are installing the mysql driver via
apt-get install -y python3-pip sshpass python-mysqldb
and the container is running successfully, recentlhy after we upgraded mysql verskion to 8.x. we starred getting exception
Exception message: (2026, 'SSL connection error: unknown error number')
I tried to upgrade the python-msql
apt-get upgrade python-mysql
I always get the message
root#ad27eb3de17d:~# apt upgrade python-mysqldb
Reading package lists... Done
Building dependency tree
Reading state information... Done
**python-mysqldb is already the newest version (1.3.7-1build2).**
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
wget
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
but we are still getting the same error message. please help what component do I need to upgrade?
we are using
root#ad27eb3de17d:~# python3 --version
Python 3.5.2
``
I deleted the file oracle-java11-installer-local but i messed my system up. I now cant install mySQL and it is giving errors
here is what happens... Image
~ sudo apt install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (8.0.21-1ubuntu18.04).
0 upgraded, 0 newly installed, 0 to remove and 2 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 oracle-java11-installer-local (11.0.8-1~linuxuprising0) ...
Before installing this package,
please download the Oracle JDK 11 .tar.gz file
with the same version as this package (version 11.0.4),
and place it in /var/cache/oracle-jdk11-installer-local,
E.g.:
sudo mkdir -p /var/cache/oracle-jdk11-installer-local
sudo cp jdk-11.0.4_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
sha256sum mismatch jdk-11.0.8_linux-x64_bin.tar.gz
Oracle JDK 11 is NOT installed.
dpkg: error processing package oracle-java11-installer-local (--configure):
installed oracle-java11-installer-local package post-installation script subpro
cess returned error exit status 1
Errors were encountered while processing:
oracle-java11-installer-local
E: Sub-process /usr/bin/dpkg returned an error code (1)
The screen shot says following things --
mysql 8 is already installed.
Please check the output of the following command
ps aux | grep mysql
Trying to install java 11 and reached the error in package repository.
I have a VPS and it runs on Debian GNU/Linux 8 (jessie). I try to install Apache, PHP, and MySQL on it. I get the below error:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
When I run apt-get -f install, i get below error:
Preconfiguring packages ...
(Reading database ... 39521 files and directories currently installed.)
Preparing to unpack .../mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb ...
Aborting downgrade from (at least) 10.0 to 5.5.
If are sure you want to downgrade to 5.5, remove the file
/var/lib/mysql/debian-*.flag and try installing again.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-5.5_5.5.52-0+deb8u1_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have basic knowledge of Linux, so any suggestion or help. I search online and try to uninstall and remove and reinstall MySQL... but no luck.
from you error output i did a quick apt-cache search to see the version numbers of mysql-server
from what i seen you might have installed mariadb-server-10.0 installed instead of mysql-server
do a dpkg -l | grep mysql and look at the results. you could also try dpkg -l | grep server and look at that output also.
ADDED COMMENT-
did you remove the file that it's asking you to do?
if you need to have both db-servers running i would follow along with this
https://superuser.com/questions/1029228/mysql-and-mariadb-instances-on-the-same-server
if you don't need both dbs, then i would apt-get remove mariadb-.. from your server and then apt-get -f install to get mysql-server installed
I have been unsuccessful at installing a mysql server on Ubuntu 12.04. Here is what I see when I try to install after a remove --purge of mysql server:
$ sudo apt-get install mysql-server-5.5 mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
tinyca mailx
The following NEW packages will be installed:
mysql-server mysql-server-5.5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/8,861 kB of archives.
After this operation, 32.8 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package mysql-server-5.5.
(Reading database ... 257077 files and directories currently installed.)
Unpacking mysql-server-5.5
(from .../mysql-server-5.5_5.5.43-0ubuntu0.12.04.1_amd64.deb) ...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.43-0ubuntu0.12.04.1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mysql-server-5.5 (5.5.43-0ubuntu0.12.04.1) ...
150705 15:38:03 [Warning] Using unique option prefix key_buffer instead of
key_buffer_size is deprecated and will be removed in a future release.
Please use the full name instead.
150705 15:38:03 [Note] /usr/sbin/mysqld (mysqld 5.5.43-0ubuntu0.12.04.1)
starting as process 14658 ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
No apport report written because the error message indicates its a followup
error from a previous failure.
dpkg: error processing 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 mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
A mysql client is installed, but when I try to launch it I get this:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Any help will be appreciated.
Well, I got no help from StackExchange, so I dug deeper and figured it out myself: First I got rid of mysql-server and mysql-client by following instructions at Removing MySQL 5.5 Completely. Then I simply installed the server and client as usual with apt-get. Everything worked fine after that.
MariaDB 10.1.3, kernel 3.19.3, Debian
Problem: apt-get upgrade always fails due to mariadb-server timezone issue.
my.cnf contains
[mysqld]
default_time_zone=America/New_York
I also imported the tzinfo:
# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
When I manually stop/start the service, there is no issue:
# service mysql restart
[ ok ] Stopping MariaDB database server: mysqld.
[ ok ] Starting MariaDB database server: mysqld ..
[info] Checking for corrupt, not cleanly closed and upgrade needing tables..
However, every single time I run apt-get upgrade, it always fails on mariadb-server:
# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 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]?
Setting up mariadb-server-10.1 (10.1.3+maria-1~wheezy) ...
[ ok ] Stopping MariaDB database server: mysqld.
dpkg: error processing mariadb-server-10.1 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.1 (= 10.1.3+maria-1~wheezy); however:
Package mariadb-server-10.1 is not configured yet.
dpkg: error processing mariadb-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mariadb-server-10.1
mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
The error is:
# tail /var/log/syslog
mysqld_safe[32269]: [ERROR] Fatal error: Illegal or unknown default time zone 'America/New_York'
This is happening on multiple servers and has become a real annoyance. Could use your help. BTW, it isn't the MariaDB version, as this error has persisted for a couple of years throughout several versions.
EDIT TO ADD: I forgot to mention if I remove the default_time_zone parameter from my.cnf, apt-get upgrade does work. It is only when that parameter is present that apt-get upgrade fails. It needs to be present for my configuration.
EDIT 2: To ensure clarity, even after removing default_time_zone, then doing apt-get upgrade successfully, then adding back default_time_zone and restarting -- future mariadb-* upgrades will fail via apt. There is something specific to the process during apt-get upgrades that is not consistent with a normal service start.
Had the same issue. This is what worked for me:
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo rm -rf /var/lib/mysql
sudo apt-get install mariadb-server
Backup /var/lib/mysql folder, as all data in will be deleted
Perhaps the answer is "The MySQL installation procedure creates the time zone tables in the mysql database, but does not load them. You must do so manually using the following instructions..."
See Manual page.
You may choose to file a bug report about the installation error, too.