1

I am making a Debian package that contains multiple packages. So in the Debian package, I moved my ./drivers/*.deb to $DEBIAN/data/itms/drivers.

sudo mkdir -p $DEBIAN/mnt
sudo mkdir -p $DEBIAN/mnt/data
sudo mkdir -p $DEBIAN/mnt/data/itms
sudo mkdir -p $DEBIAN/mnt/data/itms/drivers
sudo cp -vr ./drivers/* $DEBIAN/mnt/data/itms/drivers # moving the *deb from driver folders into $DEBIAN

Then in the postint script, I would run sudo dpkg -i -R /mnt/data/itms/drivers. However, I got this

E:could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: unable to aquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
dpkg: error processing package xx-drivers (--install):
   installed xx-drivers package post-installation script subprocess returned error exit status 100

I am thinking it is because I am running the dpkg to extract my xx-drivers.deb, but my post is also trying to access dpkg. Is there anyway I can have my dpkg my debian packages inside xx-drivers.deb?

Thanks you!

0 Answers0