Open AnHaoCheng opened 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
然后确认以下目录出现了没有。
出现无法获得锁/var/lib/dpkg/lock的现象
sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/dpkg/lock
来自博客园