安装:yum -y install zip unzip
提示:-bash: yum: command not found
安装yum:
/centos/6/os/x86_64/Packages/
上下载如下RPM包:
python-iniparse-0.3.1-2.1.el6.noarch.rpm
yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
yum-3.2.29-69.el6.centos.noarch.rpm
yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
安装:
rpm -ivh --force --nodeps python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh --force --nodeps yum-metadata-parser-1.1.2-14.1.el6.x86_64.rpm
rpm -ivh --force --nodepsyum-3.2.29-69.el6.centos.noarch.rpm yum-plugin-fa
stestmirror-1.1.30-30.el6.noarch.rpm
提示:-bash: rpm: command not found
输入命令:sudoapt-getinstallrpm
提示:-bash: sudo: command not found
输入命令:apt-get install sudo
提示:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
输入命令:
rm /var/cache/apt/archives/lock
rm /var/lib/dpkg/lock
删除两个文件,然后在apt-get update -y升级源之后执行需要操作的软件就解决问题。