MySQL Forums
Forum List  »  Newbie

Re: Broken mysql, cannot use, remove, reinstall, fix
Posted by: Robert Hale
Date: April 18, 2019 09:42AM

I am sorry Peter. Thank you for trying to help, but I am a medical man, not an IT guy. I don't know what you mean. I am assuming you are an IT guy. Imagine I am your doctor telling you what is wrong with you, but you understand very little because I am abbreviating greatly and using medico-speak. That is where we are. Now, I have interpreted your suggestion (probably wrongly) to mean I should use "show variables like 'datadir';" as a command in the terminal. Well, I did that and this happened. Reply in baby language please. Thank you!

robert@robert-ideacentre-AIO-520-22IKU ~ $ show variables like 'datadir';
The program 'show' can be found in the following packages:
* mailutils-mh
* nmh
Try: sudo apt install <selected package>
robert@robert-ideacentre-AIO-520-22IKU ~ $ sudo apt-install mailutils-mh
[sudo] password for robert:
sudo: apt-install: command not found
robert@robert-ideacentre-AIO-520-22IKU ~ $ sudo apt-get install mailutils-mh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cabextract gstreamer0.10-ffmpeg libavcodec-extra libbasicusageenvironment1
libdirectfb-1.2-9 libdvbpsi10 libebml4v5 libgroupsock8 libhal1-flash
libiso9660-8 liblivemedia50 libmatroska6v5 libmpcdec6 libmspack0
libproxy-tools libqt5x11extras5 libresid-builder0c2a libsdl-image1.2
libsidplay2v5 libssh2-1 libunshield0 libupnp6 libusageenvironment3
libva-drm1 libva-x11-1 libvcdinfo0 libvlc5 libvlccore8 libvncclient1
libxcb-composite0 libxcb-xv0 oxideqt-codecs-extra unshield vlc vlc-data
vlc-nox vlc-plugin-notify
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libgsasl7 libkyotocabinet16v5 libmailutils4 libntlm0 mailutils-common
Suggested packages:
mailutils mh-e
The following NEW packages will be installed
libgsasl7 libkyotocabinet16v5 libmailutils4 libntlm0 mailutils-common
mailutils-mh
0 to upgrade, 6 to newly install, 0 to remove and 6 not to upgrade.
2 not fully installed or removed.
Need to get 1.502 kB of archives.
After this operation, 9.251 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ubuntu.cica.es/ubuntu xenial/universe amd64 libntlm0 amd64 1.4-7 [14,3 kB]
Get:2 http://ubuntu.cica.es/ubuntu xenial/universe amd64 libgsasl7 amd64 1.8.0-8ubuntu2 [118 kB]
Get:3 http://ubuntu.cica.es/ubuntu xenial/universe amd64 libkyotocabinet16v5 amd64 1.2.76-4.1 [295 kB]
Get:4 http://ubuntu.cica.es/ubuntu xenial/universe amd64 mailutils-common all 1:2.99.99-1ubuntu2 [257 kB]
Get:5 http://ubuntu.cica.es/ubuntu xenial/universe amd64 libmailutils4 amd64 1:2.99.99-1ubuntu2 [439 kB]
Get:6 http://ubuntu.cica.es/ubuntu xenial/universe amd64 mailutils-mh amd64 1:2.99.99-1ubuntu2 [379 kB]
Fetched 1.502 kB in 0s (1.642 kB/s)
Selecting previously unselected package libntlm0:amd64.
(Reading database ... 281496 files and directories currently installed.)
Preparing to unpack .../libntlm0_1.4-7_amd64.deb ...
Unpacking libntlm0:amd64 (1.4-7) ...
Selecting previously unselected package libgsasl7.
Preparing to unpack .../libgsasl7_1.8.0-8ubuntu2_amd64.deb ...
Unpacking libgsasl7 (1.8.0-8ubuntu2) ...
Selecting previously unselected package libkyotocabinet16v5:amd64.
Preparing to unpack .../libkyotocabinet16v5_1.2.76-4.1_amd64.deb ...
Unpacking libkyotocabinet16v5:amd64 (1.2.76-4.1) ...
Selecting previously unselected package mailutils-common.
Preparing to unpack .../mailutils-common_1%3a2.99.99-1ubuntu2_all.deb ...
Unpacking mailutils-common (1:2.99.99-1ubuntu2) ...
Selecting previously unselected package libmailutils4:amd64.
Preparing to unpack .../libmailutils4_1%3a2.99.99-1ubuntu2_amd64.deb ...
Unpacking libmailutils4:amd64 (1:2.99.99-1ubuntu2) ...
Selecting previously unselected package mailutils-mh.
Preparing to unpack .../mailutils-mh_1%3a2.99.99-1ubuntu2_amd64.deb ...
Unpacking mailutils-mh (1:2.99.99-1ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Setting up mysql-server-5.7 (5.7.25-0ubuntu0.16.04.2) ...
update-alternatives: error: alternative link /etc/mysql/my.cnf is already managed by my.cnf.backup.20190407
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
Setting up libntlm0:amd64 (1.4-7) ...
No apport report written because the error message indicates it's a follow-up error from a previous failure.
Setting up libgsasl7 (1.8.0-8ubuntu2) ...
Setting up libkyotocabinet16v5:amd64 (1.2.76-4.1) ...
Setting up mailutils-common (1:2.99.99-1ubuntu2) ...
Setting up libmailutils4:amd64 (1:2.99.99-1ubuntu2) ...
Setting up mailutils-mh (1:2.99.99-1ubuntu2) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
robert@robert-ideacentre-AIO-520-22IKU ~ $ sudo apt-get install nmh
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cabextract gstreamer0.10-ffmpeg libavcodec-extra libbasicusageenvironment1
libdirectfb-1.2-9 libdvbpsi10 libebml4v5 libgroupsock8 libhal1-flash
libiso9660-8 liblivemedia50 libmatroska6v5 libmpcdec6 libmspack0
libproxy-tools libqt5x11extras5 libresid-builder0c2a libsdl-image1.2
libsidplay2v5 libssh2-1 libunshield0 libupnp6 libusageenvironment3
libva-drm1 libva-x11-1 libvcdinfo0 libvlc5 libvlccore8 libvncclient1
libxcb-composite0 libxcb-xv0 oxideqt-codecs-extra unshield vlc vlc-data
vlc-nox vlc-plugin-notify
Use 'sudo apt autoremove' to remove them.
Suggested packages:
exmh mh-e mh-book par libmime-tools-perl
Recommended packages:
default-mta | mail-transport-agent
The following NEW packages will be installed
nmh
0 to upgrade, 1 to newly install, 0 to remove and 6 not to upgrade.
2 not fully installed or removed.
Need to get 1.084 kB of archives.
After this operation, 7.082 kB of additional disk space will be used.
Get:1 http://ubuntu.cica.es/ubuntu xenial/universe amd64 nmh amd64 1.6-8build1 [1.084 kB]
Fetched 1.084 kB in 0s (1.823 kB/s)
Selecting previously unselected package nmh.
(Reading database ... 281680 files and directories currently installed.)
Preparing to unpack .../nmh_1.6-8build1_amd64.deb ...
Unpacking nmh (1.6-8build1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mysql-server-5.7 (5.7.25-0ubuntu0.16.04.2) ...
update-alternatives: error: alternative link /etc/mysql/my.cnf is already managed by my.cnf.backup.20190407
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
Setting up nmh (1.6-8build1) ...
No apport report written because the error message indicates it's a follow-up error from a previous failure.
update-alternatives: error: no alternatives for mailx
update-alternatives: using /usr/bin/mh/mhmail to provide /usr/bin/mailx (mailx) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/mailx.1.gz because associated file /usr/share/man/man1/mhmail.1.gz (of link group mailx) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/mail.1.gz because associated file /usr/share/man/man1/mhmail.1.gz (of link group mailx) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/Mail.1.gz because associated file /usr/share/man/man1/mhmail.1.gz (of link group mailx) doesn't exist
Errors were encountered while processing:
mysql-server-5.7
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
robert@robert-ideacentre-AIO-520-22IKU ~ $

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.