I can neither uninstall nor configure phpmyadmin.
Installation of apache2 and php7.2 went smoothly. Installation of mysql has changed since16.04. Now you just install mysql-server and it installs the client automatically. But then you must run
to configure it. This is new, at least to me.
Then when installing phpmyadmin, it asks which server, apache2 or something else, to use. That is where I messed up because I could not figure out how to choose apache2. (Need to use the space key. Who would have thought of that?) Frankly, I'm not sure what I did, but the subsequent installation of phpmyadmin failed. I tried purging it and doing all sorts of stuff I found on the web, like use 'rm -rf' to delete stuff by hand. Now I have this:
Suggestions on the internet say to fiddle around with stuff in /var/lib/dpkg/info/phpmyadmin.postinst, but that file is meaningless to me. Another suggestion gave this:
How can I get past this hurdle? I would think that a complete removal of phpmyadmin would do the trick, but the arcana of package handling are beyond my ken.
Installation of apache2 and php7.2 went smoothly. Installation of mysql has changed since16.04. Now you just install mysql-server and it installs the client automatically. But then you must run
Code:
sudo mysql_secure_installation
Then when installing phpmyadmin, it asks which server, apache2 or something else, to use. That is where I messed up because I could not figure out how to choose apache2. (Need to use the space key. Who would have thought of that?) Frankly, I'm not sure what I did, but the subsequent installation of phpmyadmin failed. I tried purging it and doing all sorts of stuff I found on the web, like use 'rm -rf' to delete stuff by hand. Now I have this:
Code:
$ sudo apt install phpmyadmin php-mbstring php-gettext Reading package lists... Done Building dependency tree Reading state information... Done php-gettext is already the newest version (1.0.12-0.1). php-mbstring is already the newest version (1:7.2+60ubuntu1). phpmyadmin is already the newest version (4:4.6.6-5). Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done 0 upgraded, 0 newly installed, 0 to remove and 0 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] Setting up phpmyadmin (4:4.6.6-5) ... dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf dbconfig-common: flushing administrative password dpkg: error processing package phpmyadmin (--configure): installed phpmyadmin package post-installation script subprocess returned error exit status 10 Errors were encountered while processing: phpmyadmin E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
$ sudo dpkg --configure -a Setting up phpmyadmin (4:4.6.6-5) ... dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf dbconfig-common: flushing administrative password dpkg: error processing package phpmyadmin (--configure): installed phpmyadmin package post-installation script subprocess returned error exit status 10 Errors were encountered while processing: phpmyadmin
Comment