Unable to install mysql server

I get the following message. Any help to resolve this is welcome:

hadoop@hadoop:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libhtml-template-perl mysql-server-5.5
Suggested packages:
libipc-sharedcache-perl tinyca mailx
The following NEW packages will be installed:
libhtml-template-perl mysql-server mysql-server-5.5
0 upgraded, 3 newly installed, 0 to remove and 140 not upgraded.
1 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/

2 Answer(s)


Never mind. Resolved. I had to first kill the apt processes to release the lock.


Hi Paul,
Please update the packages using command - sudo apt-get update
And try to run the command again.