debian安装环境出错,?

问答中心分类: OneinStackdebian安装环境出错,?
chancat asked 8 年 ago
Debian 7.3 64 安装的时候如下提示

Linux blog 4.9.0-040900-generic #201612111631 SMP Sun Dec 11 21:33:00 UTC 2016 x86_64
 
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
 
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@blog:~# apt-get -y install wget screen curl python  #for Debian/Ubuntu  wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version.
curl is already the newest version.
The following packages were automatically installed and are no longer required:
  libuuid-perl linux-base
Use 'apt-get autoremove' to remove them.
Suggested packages:
  iselect screenie byobu
The following NEW packages will be installed:
  screen
The following packages will be upgraded:
  wget
1 upgraded, 1 newly installed, 0 to remove and 87 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/
root@blog:~# ./install.sh
-bash: ./install.sh: No such file or directory

root@blog:~#
求解Lock那里是啥意思

2 Answers
oneinstack answered 8 年 ago
看到这种问题,请google下 试试下面命令

sudo rm -rf /var/cache/apt/archives/lock
sudo apt-get update

chancat answered 8 年 ago
已解决。大意了。。