While trying to install mysql-server on WSL ubuntu I ran into an error. Using the command
sudo apt install mysql-server
I received the following error
Setting up mysql-server-8.0 (8.0.27-0ubuntu0.20.04.1) …
invoke-rc.d: could not determine current runlevel
- Stopping MySQL database server mysqld [ OK ]
Renaming removed key_buffer and myisam-recover options (if present)
Cannot open /proc/net/unix: No such file or directory
Cannot stat file /proc/1/fd/5: Operation not permitted
Cannot stat file /proc/1/fd/10: Operation not permitted
Cannot stat file /proc/1/fd/6: Operation not permitted
Cannot stat file /proc/10/fd/7: Operation not permitted
Cannot stat file /proc/10/fd/10: Operation not permitted
Cannot stat file /proc/10/fd/5: Operation not permitted
Cannot stat file /proc/20/fd/3: Operation not permitted
Cannot stat file /proc/20/fd/9: Operation not permitted
Cannot stat file /proc/20/fd/13: Operation not permitted
Cannot stat file /proc/20/fd/25: Operation not permitted
Cannot stat file /proc/31/fd/4: Operation not permitted
Cannot stat file /proc/31/fd/10: Operation not permitted
Cannot stat file /proc/31/fd/14: Operation not permitted
Cannot stat file /proc/61/fd/4: Operation not permitted
Cannot stat file /proc/61/fd/10: Operation not permitted
Cannot stat file /proc/61/fd/14: Operation not permitted
Cannot stat file /proc/68/fd/4: Operation not permitted
Cannot stat file /proc/68/fd/10: Operation not permitted
Cannot stat file /proc/68/fd/14: Operation not permitted
Cannot stat file /proc/68/fd/21: Operation not permitted
Cannot stat file /proc/347/fd/4: Operation not permitted
Cannot stat file /proc/347/fd/10: Operation not permitted
Cannot stat file /proc/347/fd/14: Operation not permitted
mysqld will log errors to /var/log/mysql/error.log
mysqld is running as pid 382
dpkg: error processing package mysql-server-8.0 (–configure):
installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-8.0; however:
Package mysql-server-8.0 is not configured yet.
dpkg: error processing package mysql-server (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-8.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have Visual C++ installed, and everything up to this point has worked without issue. If I continue the instructions the rest installs fine, but I cannot get the server to connect when I give it the correct password. Any help would be appriciated.