This one of the most frequent
problems that arises while updating the installation packages. In order to
solve this problem we need to remove the lock file from dpkg directory.as well
as cache directory. After removing the lock we can update the packages without
any error.
Remove Lock from dpkg : sudo
rm /var/lib/dpkg/lock
Remove Lock from cache : sudo rm /var/cache/apt/archives/lock
Update packages
: sudo apt-get update
Upgrade packages
: sudo apt-get upgrade
No comments:
Post a Comment