YUST2018SummerClass / Cloud-Computing

Issue Management
0 stars 0 forks source link

SQL配置文件的时候文件无法保存 #35

Open AnHaoCheng opened 6 years ago

AnHaoCheng commented 6 years ago

ubuntu 64 -2018-07-18-15-55-50

heavenkong commented 6 years ago

完全卸载MySQL: $ sudo apt-get remove dbconfig-mysql $ sudp apt-get remove mariadb-server python-pymysql $ sudo apt-get purge mysql* $ sudo apt-get autoremove $ sudo apt-get autoclean 更新: $ sudo apt-get dist-upgrade 重新安装: $ apt install mariadb-server python-pymysql

然后确认以下目录出现了没有。

AnHaoCheng commented 6 years ago

出现无法获得锁/var/lib/dpkg/lock的现象

AnHaoCheng commented 6 years ago

https://jingyan.baidu.com/article/4b52d702b06695fc5c774bfe.html

AnHaoCheng commented 6 years ago

sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock

来自博客园