invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
...
Cannot stat file /proc/3352/fd/0: Permission denied
Cannot stat file /proc/3352/fd/1: Permission denied
Cannot stat file /proc/3352/fd/2: Permission denied
Cannot stat file /proc/3352/fd/3: Permission denied
Cannot stat file /proc/3352/fd/4: Permission denied
Cannot stat file /proc/3352/fd/5: Permission denied
Cannot stat file /proc/3352/fd/6: Permission denied
Cannot stat file /proc/3352/fd/7: Permission denied
Cannot stat file /proc/3352/fd/8: Permission denied
Cannot stat file /proc/3352/fd/9: Permission denied
Cannot stat file /proc/3352/fd/10: Permission denied
Cannot stat file /proc/3352/fd/11: Permission denied
Cannot stat file /proc/3352/fd/12: Permission denied
Cannot stat file /proc/3352/fd/13: Permission denied
Cannot stat file /proc/3352/fd/14: Permission denied
Cannot stat file /proc/3352/fd/15: Permission denied
Cannot stat file /proc/3352/fd/16: Permission denied
Cannot stat file /proc/3352/fd/17: Permission denied
Cannot stat file /proc/3352/fd/18: Permission denied
Cannot stat file /proc/3352/fd/19: Permission denied
Cannot stat file /proc/3352/fd/20: Permission denied
Cannot stat file /proc/3352/fd/21: Permission denied
Cannot stat file /proc/3352/fd/22: Permission denied
Cannot stat file /proc/3352/fd/23: Permission denied
Cannot stat file /proc/3352/fd/24: Permission denied
Cannot stat file /proc/3352/fd/25: Permission denied
答案1
最后,我找到了解决方案,删除当前的 ubuntu:20.04 docker 容器,安装最新版本的 ubuntu 以兼容 docker。然后我安装了 mysql-server
apt install mysql-server