wsl mysql Error

Resolving MySQL Errors During apt install in WSL Bash

This article introduces how to handle when MySQL causes "Errors were encountered while processing mysql-common" error during apt install in WSL bash, preventing anything from being installed.

Shou Arisaka
1 min read
Oct 26, 2025

This article introduces how to handle when MySQL causes “Errors were encountered while processing: mysql-common” error during apt install in WSL bash, preventing anything from being installed.

When trying to install tools with apt like sudo apt-get install yank( mptre/yank: Yank terminal output to clipboard )…

dpkg: error processing package mysql-common (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 mysql-common

MySQL causes an error.

When trying to remove it as follows, you get caught in dependency hell.

sudo dpkg -r mysql-client-5.7

It seems good to remove it as follows.

sudo apt-get clean
sudo apt-get update
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-5.7

Doing sudo apt-get install yank again works well.

By the way, while the MySQL removal goes well, let’s not think about reinstallation. I’ve tried reinstalling MySQL many times too, but total failure. Hmm. In the first place, my entire Windows system might be unstable because updates are being applied inconsistently or not being applied, which might be the problem. Even reinstalling WSL might not solve it. After all, WSL is technically in beta status, so perhaps perfection shouldn’t be expected.

Share this article

Shou Arisaka Oct 26, 2025

🔗 Copy Links