E: Could not get lock /var/lib/dpkg/lock-frontend.
Open your terminal and type:
ps -aux | grep -iE “apt”
It will show the id of the process running apt. Kill it with:
sudo kill -9 You could also kill all processes using apt with: sudo killall apt apt-get