问题:1、遇到dpkg -i 安装deb包报错【dpkg: error: dpkg frontend is locked by another process】
2、安装MySQL时密钥过期 【Err:1 http://repo.mysql.com/apt/ubuntu bionic InReleaseThe following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <mysql-build@oss.oracle.com>
W: GPG error: http://repo.mysql.com/apt/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <mysql-build@oss.oracle.com>
E: The repository ‘http://repo.mysql.com/apt/ubuntu bionic InRelease‘ is not signed.
N: Updating from such a repository can‘t be done securely, and is therefore disabled by default.】
解决方案:
问题1、
(1)abc@abc-virtual-machine:~$ ps -e
查看正在进行的进程,之所以dpkg安装软件报错,主要是源被另一个 apt 进程占用,我杀死那个进程,再用dpkg可正常进行
(2)abc@abc-virtual-machine:~$ sudo kill -3552 “3552是我自己主机进程pid”
杀死进程
(3)再更新 sudo apt update
!!!转折点!!!
其实并不是我dpkg安装错误,而是方向的错误
最主要的还是!!!!!!!!!!!!!密钥过期!!!!!!!!!
问题2、
*******************更新密钥(续订密钥)**********************
(1)首次更新密钥方法
结果依旧不行!!气死我了。。哼!!百般查找,终于成了
abc@abc-virtual-machine:/$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8C718D3B5072E1F5
试过多种方法:可能电脑型号问题、并不是使用了默认端口而已
(2)abc@abc-virtual-machine:/$ sudo apt update 再次更新
(3)abc@abc-virtual-machine:/$ sudo apt-get install mysql-server 安装mysql
(4)abc@abc-virtual-machine:/$ sudo mysql_secure_installation 设置安全性
(5)abc@abc-virtual-machine:/$ sudo systemstl status mysql 启动!!!
************************终于算是解决了一点点吧*****************************************************************