How to fix the apt-get -f install error [duplicate]
- by Satish Patel
This question already has an answer here:
How do I fix a “Could not get lock /var/lib/dpkg/lock” problem?
12 answers
I am getting continuous error when I run the command sudo apt-get -f install
The output of the command is as follows:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
default-jre-headless icedtea-7-jre-jamvm openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib
Suggested packages:
fonts-ipafont-gothic fonts-ipafont-mincho ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts
The following NEW packages will be installed:
default-jre-headless icedtea-7-jre-jamvm openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib
0 upgraded, 5 newly installed, 0 to remove and 28 not upgraded.
2 not fully installed or removed
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/
satish@satish-Inspiron-N5010 ~ $
please guide ASAP