2 months since I started using Ubuntu I'm a super beginner for 3 months since I started studying Ruby on Rails. (As of December 31, 2020) This is my first post, so please be kind to me> <
The following commands described on the above site
sudo apt install build-essential -y
When you run
'Ubuntu 20.04.1 _Focal Fossa_ - Release amd64(20200808.1)'Drive the disc labeled'/cdrom/'Put in[Enter]Press the key
If you do not get out of, then restart terminal and execute the above command again,
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
It is a story that I got locked and could not do anything.
It is OK if you manually delete the locked "/ var/lib/dpkg/lock-frontend", but you can automatically delete it with the "sudo apt auto remove" command. Because there was, command execution But,
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Repeat ... Calm down and try rebooting for the time being.
After that, sudo apt autoremove itself was able to run without any problems, Problem sudo apt install build-essential -y
The same CDROM request occurs again in the part of. This time, UBUNTU itself was installed from USB, so there is no CDROM! So, the result of searching for a solution is as follows
Located in /etc/apt/sources.list
# deb cdrom:[Ubuntu 20.04.1 _Focal Fossa_ - Release amd64(20200808.1)]/ focal main restricted
After deleting and restarting, execute the above command again without any problem. I was able to do it!
For some reason, I was addicted to it for about an hour, so I hope it will be helpful for those who are addicted to the same task.
Recommended Posts