subpress installed post-installation script returned error exit status 1
2018-02-03 21:26
555 查看
以下是大神给的解决方案记录,先重现下问题吧:
UBUNTU16.04下面出现这个问题:
killall mysql
dpkg -l|grep mysql
dpkg -P 上面列出的所有名字(这个命令的意思是删除所有和mysql相关的包)
然后重新安装mysql即可
apt purge mysql-server mysql-server-5.7
sudo rm /var/lib/mysql/ -R
sudo rm /etc/mysql/ -R
sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor
sudo apt-get install mysql-server mysql-common
UBUNTU16.04下面出现这个问题:
killall mysql
dpkg -l|grep mysql
dpkg -P 上面列出的所有名字(这个命令的意思是删除所有和mysql相关的包)
然后重新安装mysql即可
apt purge mysql-server mysql-server-5.7
sudo rm /var/lib/mysql/ -R
sudo rm /etc/mysql/ -R
sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor
sudo apt-get install mysql-server mysql-common
相关文章推荐
- subprocess installed post-installation script returned error exit status 1
- subprocess installed post-installation script returned error exit status 1
- ubuntu安装出现"删除initramfs-tools时出错",subprocess installed post-installation script returned error exit status 1
- subprocess installed post-installation script returned error exit status 1
- subprocess installed post-installation script returned error exit status 1
- subprocess pre-removal script returned error exit status... 处理办法
- 如何修复 Ubuntu 上“...script returned error exit status 1”的错误
- error: Setup script exited with error: command 'gcc' failed with exit status 1
- 安装python模块时出现:error: Setup script exited with error: command 'gcc' failed with exit status 1
- Linux gcc编译error:"collect2: ld returned 1 exit status"
- 【解决方法】Setup script exited with error: command 'cc' failed with exit status 1
- CentOs安装Scrapy出现error: Setup script exited with error: command ‘gcc’ failed with exit status 1错误解决方案
- collect2: ld returned 1 exit status make: *** [ipvsadm] Error 1
- [CentOS]安装MySQL-python,error: Setup script exited with error: command 'gcc' failed with exit status
- pycuda installation error: command 'gcc' failed with exit status 1
- error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- 创建pjsip module 的python 版本时遇到的错误: error: ld returned 1 exit status error: ommand 'x86_64-linux-g
- python 安装superset:error: Setup script exited with error: command 'gcc' failed with exit status 1
- 使用easy_install时报错如下: error: Setup script exited with error: command ‘gcc’ failed with exit status 1
- error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1