我的安装环境:ubuntu 18.04
1. 在使用 sudo apt-get install xxx 时,出现
- 问题
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
- 解决方法
依次执行下面3句即可。
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
2. 当运行以下语句进行安装时,出现错误。
./install.sh -n3V 2.5.0
- 问题
Makefile:4032: recipe for target ‘lib/dhparams.lo’ failed
make[3]: *** [lib/dhparams.lo] Error 1
make[3]: Leaving directory ‘/home/w111/openvswitch/openvswitch-2.5.0’
Makefile:4679: recipe for target ‘install-recursive’ failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory ‘/home/w111/openvswitch/openvswitch-2.5.0’
Makefile:4985: recipe for target ‘install’ failed
make[1]: *** [install] Error 2
make[1]: Leaving directory ‘/home/w111/openvswitch/openvswitch-2.5.0’
dh_auto_install: make -j1 install DESTDIR=/home/w111/openvswitch/openvswitch-2.5.0/debian/tmp AM_UPDATE_INFO_DIR=no returned exit code 2
debian/rules:25: recipe for target ‘binary’ failed
make: *** [binary] Error 2
- 解决方案
在安装语句"./install.sh -n3V 2.5.0"中,"-n"表示安装Mininet的依赖和核心文件, "-3"表示安装OpenFlow 1.3版本, "-V 2.5.0"表示安装2.5.0版本的Open vSwitch。
此错误是由于参数 "-V 2.5.0"导致的。
可以不进行版本选择,利用参数“-v”进行安装。更改安装语句如下,发现可以正常安装。
./install.sh -n3v