Today everyone is switching to cloud platforms. To this, we need to install basic software or modify certain Configurations in each server and to all this, we call prerequisites. So we have a concept of creating a BASE IMAGE and GOLDEN IMAGE. We were creating Golden Server Image for one of our clients using Packer to fulfill the prerequisites, and it is when I faced this issue.
‘E: Could not get lock /var/lib/dpkg/lock’
Firstly, we will talk about Packer.Continue reading “How to fix the dpkg lock file error in Packer?”