Hi guys, So last night I was working with my Linux and then I realized that there are updates available for it, so I ran the command apt upgrade which surprisingly showed an error something like "could not get lock /var/lib/dpkg/lock", and then I started searching for a solution and the solution I found is the one I am sharing with you here. Source for the solution is Ask ubuntu .