Getting following error while installing debian packages in CSIT
dpkg: error: dpkg status database is locked by another process
due to this locking failure dcgw script could not install all
required Quagga debian packges in tools system hence suite failed
refer following fix for the same
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/
1796081
Change-Id: I498520b1fbc1068a2f9ad9d54cab1e9217a0977e
Signed-off-by: shahid_calsoft <mohammad.shahid@altencalsoftlabs.com>
pkill -f dpkg
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
- dpkg -i thrift-1.0.0.b2a4d4a.Ubuntu16.04.deb
- dpkg -i c-capnproto-1.0.2.75f7901.Ubuntu16.04.deb
- dpkg -i zmq-4.1.3.56b71af.Ubuntu16.04.deb
- dpkg -i quagga-1.1.0.837f143.Ubuntu16.04.deb
- dpkg -i zrpc-0.2.56d11ae.thriftv4.Ubuntu16.04.deb
+ DPKG_FRONTEND_LOCKED=1 dpkg -i thrift-1.0.0.b2a4d4a.Ubuntu16.04.deb
+ DPKG_FRONTEND_LOCKED=1 dpkg -i c-capnproto-1.0.2.75f7901.Ubuntu16.04.deb
+ DPKG_FRONTEND_LOCKED=1 dpkg -i zmq-4.1.3.56b71af.Ubuntu16.04.deb
+ DPKG_FRONTEND_LOCKED=1 dpkg -i quagga-1.1.0.837f143.Ubuntu16.04.deb
+ DPKG_FRONTEND_LOCKED=1 dpkg -i zrpc-0.2.56d11ae.thriftv4.Ubuntu16.04.deb
;;
esac
EOF