Unable to unistall mysql package
When I am trying to unisntall "mysql-server 5.7" in my Ubuntu 18.04 machine, getting below error:
sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'mysql-client' is not installed, so not removed
Package 'mysql-server' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libaio1 mysql-client-
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
mysql-client-5.7* mysql-common* mysql-server-5.7
0 upgraded, 0 newly installed, 3 to remove and 358 not upgraded.
2 not fully installed or removed.
After this operation, 31.2 MB disk space will be freed.
debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (you may need to install the Debconf::Log module) (@INC contains: /etc/perl /usr/local/
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
dpkg: error processing package mysql-server-5.7 (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
dpkg: warning: files list file for package 'mysql-
dpkg: warning: files list file for package 'mysql-
(Reading database ... 245596 files and directories currently installed.)
Removing mysql-client-5.7 (5.7.33-
Removing mysql-common (5.8+1.0.4) ...
Errors were encountered while processing:
mysql-server-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------
Also tried running below commands:
sudo apt-get autoremove -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
sudo apt --fix-broken install
sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
sudo rm -rf /etc/mysql
sudo find / -iname 'mysql*' -exec rm -rf {} \;
due to this "E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)." dependencies unable to install any other program into my system.
However when searching for mysql nothing found:
mysql
Command 'mysql' not found, but can be installed with:
sudo apt install mysql-client-
sudo apt install mariadb-
Please guide me on how to remove mysql.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
What have you done to break your package management system that much?
I assume the two commands
sudo rm -rf /etc/mysql
sudo find / -iname 'mysql*' -exec rm -rf {} \;
have made things worse that they were.
For diagnostic purposes please provide the output that you receive for the commands
uname -a
lsb_release -crid
dpkg -l | grep mysql
sudo dpkg --audit
apt-cache policy mysql-server-5.7 mysql-common
Revision history for this message
|
#2 |
Hi Manfred,
Thanks for your response.
From the moment i have installed mysql-server, i am getting the same error given below:
(The following packages have unmet dependencies:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).)
Please find below the output of the required commands:
uname -a
Linux extramarks-
-------
lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
-------
dpkg -l | grep mysql
ii mysql-client-
ic mysql-common 5.8+1.0.4 all MySQL database common files, e.g. /etc/mysql/my.cnf
iHR mysql-server-5.7 5.7.32-
ii mysql-server-
-------
sudo dpkg --audit
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
mysql-server-5.7 (no description available)
The following packages have been triggered, but the trigger processing
has not yet been done. Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
man-db on-line manual pager
The following packages are missing the list control file in the
database, they need to be reinstalled:
mysql-
mysql-server-5.7 (no description available)
mysql-
The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
mysql-
mysql-server-5.7 (no description available)
mysql-
-------
apt-cache policy mysql-server-5.7 mysql-common
mysql-server-5.7:
Installed: 5.7.32-
Candidate: 5.7.33-
Version table:
5.
500 http://
500 http://
*** 5.7.32-
100 /var/lib/
5.
500 http://
mysql-common:
Installed: (none)
Candidate: 5.8+1.0.4
Version table:
5.8+1.0.4 500
500 http://
500 http://
100 /var/lib/
Revision history for this message
|
#3 |
apt-get autoremove will only remove files which are not in use by any installed package.
Revision history for this message
|
#4 |
sudo apt-get remove mysql-client-5.7; mysql-common; mysql-server-5
You first check out for the name of the package you want to remove:
dpkg --list
Then remove the given package
sudo apt-get remove package_name
Purge any related code
sudo apt-get purge package_name
Then Autoremove
sudo apt-get autoremove
Finally, do a clean so you check everything is correctly removed
sudo apt-get clean
You would like to check at the packages list whether the one you wanted to remove is not listed anymore, but it is optional.
https:/
Revision history for this message
|
#5 |
Quote:
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
mysql-server-5.7 (no description available)
and
The following packages are missing the list control file in the
database, they need to be reinstalled:
mysql-
mysql-server-5.7 (no description available)
mysql-
You have to reinstall the mysql-client-
Maybe you still have the files stored locally.
What is the output of
ls -l /var/lib/
Revision history for this message
|
#6 |
below is the output of the comand :
ls -l /var/lib/
ls: cannot access '/var/lib/
tried installing these packages however unable to do so, because of the umet dependencies:
sudo apt install mysql-server-5.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-server-5.7 : PreDepends: mysql-common (>= 5.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
-------
sudo apt install mysql-server-
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server-
mysql-server-
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-server-5.7 : PreDepends: mysql-common (>= 5.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
-------
sudo apt install mysql-client-
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-server-5.7 : PreDepends: mysql-common (>= 5.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
-------
sudo apt install mysql-client-5.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-client-5.7 : Depends: mysql-common (>= 5.5) but it is not going to be installed
mysql-server-5.7 : PreDepends: mysql-common (>= 5.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
-------
Initially i have installed the same version,now it
Revision history for this message
|
#7 |
Download the files
https:/
https:/
https:/
https:/
Then execute the commands
cd directory_
sudo dpkg --force-all -i mysql-common*.deb
sudo dpkg --force-all -i mysql-*5.7*.deb
and report the results.
Revision history for this message
|
#8 |
below is the result of the commands:
~/Downloads/Mysql$ ls
mysql-client-
mysql-common_
-------
~/Downloads/Mysql$ sudo dpkg --force-all -i mysql-common*.deb
[sudo] password for extramarks:
dpkg: warning: files list file for package 'mysql-
(Reading database ... 245563 files and directories currently installed.)
Preparing to unpack mysql-common_
Unpacking mysql-common (5.8+1.0.5ubuntu2) over (5.8+1.0.4) ...
Setting up mysql-common (5.8+1.0.5ubuntu2) ...
Configuration file '/etc/mysql/
Installing new config file as you requested.
Configuration file '/etc/mysql/
Installing new config file as you requested.
Configuration file '/etc/mysql/
Installing new config file as you requested.
update-
-------
~/Downloads/Mysql$ sudo dpkg --force-all -i mysql-*5.7*.deb
Selecting previously unselected package mysql-client-
dpkg: warning: files list file for package 'mysql-
(Reading database ... 245563 files and directories currently installed.)
Preparing to unpack mysql-client-
Unpacking mysql-client-
Preparing to unpack mysql-server-
Can't locate Debconf/Db.pm in @INC (you may need to install the Debconf::Db module) (@INC contains: /etc/perl /usr/local/
BEGIN failed--compilation aborted at /usr/share/
dpkg: error processing archive mysql-server-
new mysql-server-5.7 package pre-installation script subprocess returned error exit status 2
Can't locate Debconf/Db.pm in @INC (you may need to install the Debconf::Db module) (@INC contains: /etc/perl /usr/local/
BEGIN failed--compilation aborted at /usr/share/
dpkg: error while cleaning up:
new mysql-server-5.7 package post-removal script subprocess returned error exit status 2
dpkg: warning: downgrading mysql-server-
Preparing to unpack mysql-server-
Unpacking mysql-server-
Setting up mysql-client-
Setting up mysql-server-
Processing triggers for man-db (2.8.3-2) ...
Errors were encountered while processing:
mysql-
-------
Revision history for this message
|
#9 |
Run the commands
sudo apt install debconf -f
sudo dpkg --audit
and copy/paste all output into the question document that we can see.
Revision history for this message
|
#10 |
(base) extramarks@
[sudo] password for extramarks:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
debconf-i18n : Depends: debconf (= 1.5.66) but 1.5.66ubuntu1 is to be installed
debconf-utils : Depends: debconf (= 1.5.66) but 1.5.66ubuntu1 is to be installed
mysql-server-5.7 : Depends: mysql-client-5.7 (>= 5.7.33-
python3-debconf : Depends: debconf (= 1.5.66) but 1.5.66ubuntu1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
(base) extramarks@
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
mysql-server-5.7 (no description available)
The following packages are missing the list control file in the
database, they need to be reinstalled:
mysql-server-5.7 (no description available)
The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
mysql-server-5.7 (no description available)
Revision history for this message
|
#11 |
Try
sudo apt install debconf=1.5.66 -f
and report the results
Revision history for this message
|
#12 |
(base) extramarks@
Reading package lists... Done
Building dependency tree
Reading state information... Done
debconf is already the newest version (1.5.66).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mysql-server-5.7 : Depends: mysql-client-5.7 (>= 5.7.33-
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Revision history for this message
|
#13 |
Try the following:
download
https:/
and re-install it with
sudo dpkg -i debconf_
Then list the current status of the mysql packages with the command
dpkg -l | grep mysql
and copy/paste the output that we can check.
Revision history for this message
|
#14 |
(base) extramarks@
(base) extramarks@
debconf_
mysql-client-
mysql-common_
(base) extramarks@
[sudo] password for extramarks:
(Reading database ... 245671 files and directories currently installed.)
Preparing to unpack debconf_
Unpacking debconf (1.5.66) over (1.5.66) ...
Setting up debconf (1.5.66) ...
Processing triggers for man-db (2.8.3-2) ...
(base) extramarks@
ii mysql-client-
ii mysql-common 5.8+1.0.5ubuntu2 all MySQL database common files, e.g. /etc/mysql/my.cnf
iHR mysql-server-5.7 5.7.32-
ii mysql-server-
Revision history for this message
|
#15 |
What output do you now receive for
cd ~/Downloads/Mysql
sudo dpkg -i mysql-server-
Revision history for this message
|
#16 |
If this fails, try again with
sudo DEBIAN_
and copy/paste all output.
Revision history for this message
|
#17 |
below is the output for : sudo dpkg -i mysql-server-
(base) extramarks@
[sudo] password for extramarks:
(Reading database ... 245671 files and directories currently installed.)
Preparing to unpack mysql-server-
Can't locate Debian/
BEGIN failed--compilation aborted at /usr/sbin/addgroup line 34.
dpkg: error processing archive mysql-server-
new mysql-server-5.7 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
mysql-
-------
(base) extramarks@
(Reading database ... 245671 files and directories currently installed.)
Preparing to unpack mysql-server-
+ DEBIAN_
${DEBIAN_
+ echo '#42#DEBUG# RUNNING /var/lib/
#42#DEBUG# RUNNING /var/lib/
# Beware that there are two ypwhich one of them needs the 2>/dev/null!
if test -n "`which ypwhich 2>/dev/null`" && ypwhich >/dev/null 2>&1; then
db_input high mysql-server-
db_go
fi
++ which ypwhich
+ test -n ''
# only ask this question on fresh installs, during "reconfiguration" and when
# not upgrading from an existing 5.0 installation.
# there is also an additional check for empty root passwords in the
# postinst script when the tools are available for us to use.
if [ "$1" = "configure" ] && [ ! -e "/var/lib/
while :; do
RET=""
db_input medium mysql-server/
db_go
db_get mysql-server/
# if password isn't empty we ask for password verification
if [ -z "$RET" ]; then
db_fset mysql-server/
db_fset mysql-server/
break
fi
ROOT_PW="$RET"
db_input medium mysql-server/
db_go
db_get mysql-server/
if [ "$RET" == "$ROOT_PW" ]; then
ROOT_PW=''
break
fi
db_fset mysql-server/
db_input critical mysql-server/
db_set mysql-server/
db_set mysql-server/
db_go
done
fi
+ '[' configure = configure ']'
+ '[' '!' -e /var/lib/
+ :
+ RET=
+ db_input medium mysql-server/
+ _db_cmd 'INPUT medium' mysql-server/
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'INPUT medium mysql-server/
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET='30 question skipped'
+ case ${_db_internal_
+ return 30
+ true
+ db_go
+ _db_cmd 'GO '
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GO '
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=ok
+ case ${_db_internal_
+ return 0
+ db_get mysql-server/
+ _db_cmd 'GET mysql-server/
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'GET mysql-server/
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_
+ return 0
+ '[' -z '' ']'
+ db_fset mysql-server/
+ _db_cmd 'FSET mysql-server/
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'FSET mysql-server/
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=false
+ case ${_db_internal_
+ return 0
+ db_fset mysql-server/
+ _db_cmd 'FSET mysql-server/
+ _db_internal_IFS='
'
+ IFS=' '
+ printf '%s\n' 'FSET mysql-server/
+ IFS='
'
+ IFS='
'
+ read -r _db_internal_line
+ RET=false
+ case ${_db_internal_
+ return 0
+ break
+ DEBIAN_
${DEBIAN_
+ echo '#42#DEBUG# RUNNING /var/lib/
#42#DEBUG# RUNNING /var/lib/
export PATH=$PATH:
+ export PATH=/usr/
+ PATH=/usr/
MYADMIN=
+ MYADMIN=
DATADIR=
+ DATADIR=
LOGDIR=
+ LOGDIR=
UPGRADEDIR=
+ UPGRADEDIR=
# To avoid having hardcoded paths in the script, we do a search on the path, as suggested at:
# https:/
pathfind() {
OLDIFS="$IFS"
IFS=:
for p in $PATH; do
if [ -x "$p/$*" ]; then
IFS="$OLDIFS"
return 0
fi
done
IFS="$OLDIFS"
return 1
}
# Try to stop the server in a sane way. If it does not success let the admin
# do it himself. No database directories should be removed while the server
# is running! Another mysqld in e.g. a different chroot is fine for us.
stop_server() {
if [ ! -x /etc/init.d/mysql ]; then return; fi
set +e
if pathfind invoke-rc.d; then
cmd=
else
cmd=
fi
$cmd
errno=$?
set -e
# 0=ok, 100=no init script (fresh install)
if [ "$errno" != 0 -a "$errno" != 100 ]; then
echo "${cmd/ */} returned $errno" 1>&2
echo "There is a MySQL server running, but we failed in our attempts to stop it." 1>&2
echo "Stop it yourself and try again!" 1>&2
db_stop
exit 1
fi
}
#######
this_version=5.7
+ this_version=5.7
# Abort if an NDB cluster is in use.
if egrep -qi -r '^[^#]*
db_fset mysql-server/
db_input high mysql-server/
db_go
db_stop
exit 1
fi
+ egrep -qi -r '^[^#]*
# Abort if skip-bdb option is enabled, required for 5.0 -> 5.1 upgrades.
#TODO
# Safe the user from stupidities.
is_downgrade_
+ is_downgrade_
for i in `ls $DATADIR/
found_
if dpkg --compare-versions "$this_version" '<<' "$found_version"; then
is_
break;
fi
done
++ ls '/var/lib/
if [ "$is_downgrade_
if [ -e /etc/mysql/FROZEN -o -h /etc/mysql/FROZEN ]; then
echo "Warning: /etc/mysql/FROZEN already exists" >&2
else
ln -s ../../usr/
fi
db_fset mysql-server-
db_input critical mysql-server-
db_go
db_stop
echo "Downgrade from (at least) $found_version to $this_version is not possible." 1>&2
echo "Packaging maintenance of MySQL will stop and the daemon disabled to prevent damage to your system." 1>&2
echo "For help, see /etc/mysql/FROZEN" 1>&2
exit 0
fi
+ '[' 0 = 1 ']'
# to be sure
stop_server
+ stop_server
+ '[' '!' -x /etc/init.d/mysql ']'
+ return
# If we use NIS then errors should be tolerated. It's up to the
# user to ensure that the mysql user is correctly setup.
# Beware that there are two ypwhich one of them needs the 2>/dev/null!
if test -n "`which ypwhich 2>/dev/null`" && ypwhich >/dev/null 2>&1; then
set +e
fi
++ which ypwhich
+ test -n ''
#
# Now we have to ensure the following state:
# /etc/passwd: mysql:x:
# /etc/group: mysql:x:101:
#
# Sadly there could any state be present on the system so we have to
# modify everything carefully i.e. not doing a chown before creating
# the user etc...
#
# creating mysql group if he isn't already there
if ! getent group mysql >/dev/null; then
# Adding system group: mysql.
addgroup --system mysql >/dev/null
fi
+ getent group mysql
+ addgroup --system mysql
Can't locate Debian/
BEGIN failed--compilation aborted at /usr/sbin/addgroup line 34.
dpkg: error processing archive mysql-server-
new mysql-server-5.7 package pre-installation script subprocess returned error exit status 2
+ DEBIAN_
${DEBIAN_
+ echo '#42#DEBUG# RUNNING /var/lib/
#42#DEBUG# RUNNING /var/lib/
mysql_cfgdir=
+ mysql_cfgdir=
MYADMIN=
+ MYADMIN=
# To avoid having hardcoded paths in the script, we do a search on the path, as suggested at:
# https:/
pathfind() {
OLDIFS="$IFS"
IFS=:
for p in $PATH; do
if [ -x "$p/$*" ]; then
IFS="$OLDIFS"
return 0
fi
done
IFS="$OLDIFS"
return 1
}
# Try to stop the server in a sane way. If it does not success let the admin
# do it himself. No database directories should be removed while the server
# is running!
stop_server() {
set +e
if pathfind invoke-rc.d; then
invoke-rc.d mysql stop
else
/etc/
fi
errno=$?
set -e
if [ "$?" != 0 ]; then
echo "Trying to stop the MySQL server resulted in exitcode $?." 1>&2
echo "Stop it yourself and try again!" 1>&2
exit 1
fi
}
case "$1" in
purge|
if [ -n "`$MYADMIN ping 2>/dev/null`" ]; then
stop_server
sleep 2
fi
;;
*)
echo "postrm called with unknown argument '$1'" 1>&2
exit 1
;;
esac
+ case "$1" in
++ /usr/bin/mysqladmin --defaults-
+ '[' -n '' ']'
# New packaging paradigm for my.cnf as of Dec-2014 for sharing mysql
# variants in Ubuntu.
case "$1" in
remove|disappear)
[ -x /usr/share/
;;
esac
+ case "$1" in
#
# - When purging, ask if data files should also be removed
#
if [ "$1" = "purge" ]; then
# we remove the mysql user only after all his owned files are purged
rm -f /var/log/
rm -rf /var/log/mysql
db_input high mysql-server-
db_go || true
db_get mysql-server-
if [ "$RET" = "true" ]; then
# never remove the debian.cnf when the databases are still existing
# else we ran into big trouble on the next install!
rm -f /etc/mysql/
rm -rf /var/lib/mysql
rm -rf /var/lib/
rm -rf /var/lib/
userdel mysql || true
fi
fi
+ '[' abort-upgrade = purge ']'
# Automatically added by dh_installinit/
if [ "$1" = "purge" ] ; then
update-rc.d mysql remove >/dev/null
fi
+ '[' abort-upgrade = purge ']'
# In case this system is running systemd, we make systemd reload the unit files
# to pick up changes.
if [ -d /run/systemd/system ] ; then
systemctl --system daemon-reload >/dev/null || true
fi
+ '[' -d /run/systemd/system ']'
+ systemctl --system daemon-reload
# End automatically added section
# Automatically added by dh_systemd_
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/
deb-systemd-
fi
fi
+ '[' abort-upgrade = remove ']'
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/
deb-systemd-
deb-systemd-
fi
fi
+ '[' abort-upgrade = purge ']'
# End automatically added section
# Automatically added by dh_installdebco
if [ "$1" = purge ] && [ -e /usr/share/
. /usr/share/
db_purge
fi
+ '[' abort-upgrade = purge ']'
# End automatically added section
# Automatically added by dh_apparmor/
if [ "$1" = "purge" ] && ! [ -e "/etc/apparmor.
rm -f "/etc/apparmor.
rm -f "/etc/apparmor.
rm -f "/etc/apparmor.
rmdir /etc/apparmor.
rmdir /etc/apparmor.
rmdir /etc/apparmor.d 2>/dev/null || true
fi
+ '[' abort-upgrade = purge ']'
# End automatically added section
exit 0
+ exit 0
Errors were encountered while processing:
mysql-
Revision history for this message
|
#18 |
The failure happens at
+ addgroup --system mysql
Can't locate Debian/
BEGIN failed--compilation aborted at /usr/sbin/addgroup line 34.
What output do you receive for the command
sudo addgroup --system mysql
Revision history for this message
|
#19 |
(base) extramarks@
[sudo] password for extramarks:
Can't locate Debian/
BEGIN failed--compilation aborted at /usr/sbin/addgroup line 34.
Revision history for this message
|
#20 |
Ok. This shows that mysql is not the culprit, but there is something broken in other parts of your operating system.
Try reinstalling the adduser package
download
https:/
and install it with
sudo dpkg -i adduser_
Then try again:
sudo addgroup --system mysql
and report the results.
Revision history for this message
|
#21 |
(base) extramarks@
[sudo] password for extramarks:
eSorry, try again.
[sudo] password for extramarks:
Sorry, try again.
[sudo] password for extramarks:
(Reading database ... 245671 files and directories currently installed.)
Preparing to unpack adduser_
Unpacking adduser (3.116ubuntu1) over (3.116ubuntu1) ...
Setting up adduser (3.116ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
(base) extramarks@
(base) extramarks@
(base) extramarks@
add-apt-repository addgnupghome addgroup addpart addr2line add-shell adduser
(base) extramarks@
Adding group `mysql' (GID 127) ...
Done.
Revision history for this message
|
#22 |
ok, adduser works again. Now try installing mysql
sudo dpkg -i mysql-server-
and report the results.
Revision history for this message
|
#23 |
(base) extramarks@
[sudo] password for extramarks:
(Reading database ... 245671 files and directories currently installed.)
Preparing to unpack mysql-server-
Unpacking mysql-server-5.7 (5.7.32-
dpkg: dependency problems prevent configuration of mysql-server-5.7:
mysql-server-5.7 depends on mysql-client-5.7 (>= 5.7.32-
Package mysql-client-5.7 is not installed.
dpkg: error processing package mysql-server-5.7 (--install):
dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next reboot
Processing triggers for systemd (237-3ubuntu10.3) ...
Processing triggers for man-db (2.8.3-2) ...
Errors were encountered while processing:
mysql-server-5.7
Revision history for this message
|
#24 |
It seems I missed one
and then
sudo dpkg -i mysql-client-
sudo dpkg -i mysql-server-
and report the results.
Revision history for this message
|
#25 |
(base) extramarks@
Selecting previously unselected package mysql-client-5.7.
(Reading database ... 245757 files and directories currently installed.)
Preparing to unpack mysql-client-
Unpacking mysql-client-5.7 (5.7.32-
Setting up mysql-client-5.7 (5.7.32-
Processing triggers for man-db (2.8.3-2) ...
(base) extramarks@
(Reading database ... 245791 files and directories currently installed.)
Preparing to unpack mysql-server-
Unpacking mysql-server-5.7 (5.7.32-
Setting up mysql-server-5.7 (5.7.32-
update-
Renaming removed key_buffer and myisam-recover options (if present)
AppArmor parser error for /etc/apparmor.
Created symlink /etc/systemd/
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu10.3) ...
Processing triggers for man-db (2.8.3-2) ...
Revision history for this message
|
#26 |
It worked, just checked, MySQL-service is running and also other packages are getting installed:
(base) extramarks@
● mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/
Active: active (running) since Wed 2021-02-10 00:43:05 IST; 7min ago
Main PID: 5977 (mysqld)
Tasks: 27 (limit: 4915)
CGroup: /system.
└─5977 /usr/sbin/mysqld --daemonize --pid-file=
Feb 10 00:43:04 extramarks-
Feb 10 00:43:05 extramarks-
(base) extramarks@
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
whois
0 upgraded, 1 newly installed, 0 to remove and 361 not upgraded.
Need to get 43.7 kB of archives.
After this operation, 262 kB of additional disk space will be used.
Get:1 http://
Fetched 43.7 kB in 17s (2,606 B/s)
Selecting previously unselected package whois.
(Reading database ... 245791 files and directories currently installed.)
Preparing to unpack .../archives/
Unpacking whois (5.3.0) ...
Setting up whois (5.3.0) ...
Processing triggers for man-db (2.8.3-2) ...
(base) extramarks@
who whoami whois whoopsie whoopsie-
Revision history for this message
|
#27 |
Success! The package management system is back in a consistent state.
"0 upgraded, 1 newly installed, 0 to remove and 361 not upgraded."
There are 361 package updates available. you should consider installing them
If this problem has been resolved, then you should set the status of this question document to "solved".
Revision history for this message
|
#28 |
Thanks a lot for your help, Manfred!
Problem Solved
Revision history for this message
|
#29 |
Thanks Manfred Hampl, that solved my question.