Fix dpkg frontend locking 91/77791/3
authorshahid_calsoft <mohammad.shahid@altencalsoftlabs.com>
Wed, 14 Nov 2018 13:44:14 +0000 (19:14 +0530)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 14 Nov 2018 21:40:45 +0000 (21:40 +0000)
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>
csit/scripts/dcgw-setup.sh

index f61618b340b06e0db15db40c0c0d88bde6ba55eb..23230082506cb945d87b6a3898742d9906dcd622 100644 (file)
@@ -51,11 +51,11 @@ cat > ${WORKSPACE}/dcgw-setup.sh <<EOF
         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