I have created a deb package
abc.deb which successfully installs one application (web-server) when all dependencies (like
python-pip, etc) specified in
Depends: <list of dependensies> parameter of
control file provided to
equivs-build tool. But when dependencies are not matched, I get an error
dpkg: dependency problems prevent configuration of abc: abc depends on python-mysql; however: Package python-mysql is not installed.
The problem here is: after such unsuccessful installation, when I try to use
apt-get install for other packages I get an error as :
The following packages have unmet dependencies: abc : Depends: python-mysql but it is not installable E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
How and where can I catch this dependency error and how can I then remove the apt-get cache (Note : I can't use
dpkg -r abc as
dpkg would already be running).