ubuntu install libncurses5-dev error occured

Error infos:

wzw @ubuntu :~/workstation/mysql-5.1.68$ sudo apt-get install libncurses5-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnet-daemon-perl libhtml-template-perl libdbi-perl libterm-readkey-perl
  libplrpc-perl nginx-full nginx-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libtinfo-dev
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  libncurses5-dev libtinfo-dev
0 upgraded, 2 newly installed, 0 to remove and 26 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

Fixed by these commands:

sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

你可能感兴趣的:(ubuntu,libncurses5-dev)