Created
March 5, 2017 11:35
-
-
Save matt40k/a379d24a73974e2a8cd2921e29eeaa96 to your computer and use it in GitHub Desktop.
Manually remove MSSQL from ubuntu when it fails.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove mssql-server | |
sudo rm -rf /var/opt/mssql/ | |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key remove - | |
sudo rm /etc/apt/sources.list.d/mssql-server.list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /var/lib/dpkg/info/ | |
sudo mv info/mssql-server.* /tmp/ | |
sudo dpkg --remove --force-remove-reinstreq mssql-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment