E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
解决过程:
1.首先切换到root用户
2.怀疑是apt被锁住了,所以杀死了apt相关的进程
3.搜了一下Ubuntu系统安装gcc的命令 apt-get install build-essential(之前用的是apt install gcc tcl)
4.重启了Ubuntu系统,使用apt-get install build-essential命令,成功