As part of my custom (in-house) .deb file that will be deployed to Ubuntu 12.04 devices, I need to add several PPA repositories, run apt-get update, and then install packages from those PPAs.
Can this be done within the .preinst or .postinst scripts in my .deb file?
I assume that when my .deb file is installed (sudo dpkg -i testing.deb
) that some locks or mechanisms likely exist which would prevent me from calling certain commands such as add-apt-repository
, apt-get update
, and apt-get install
.
Is this a correct assumption?