Below is the working control file while creating debian package using the link. I kept a single dependency and it is creating the deb file.
Package: my-program Version: 1.0 Architecture: all Essential: no Priority: optional Depends: default-jdk Maintainer: Your Name Description: A short desc
But if I keep multiple dependencies, I am getting error. The dependencies I kept are not actual, just for testing.
Package: my-program Version: 1.0 Architecture: all Essential: no Priority: optional Depends: default-jdk;net-tools Maintainer: Your Name Description: A short desc
dpkg-deb --build my-program_version_architecture/ dpkg-deb: error: parsing file 'my-program_version_architecture//DEBIAN/control' near line 6 package 'my-program': 'Depends' field, invalid package name 'default-jdk;net-tools': character ';' not allowed (only letters, digits and characters '-+._')
Even for the deb file created with single dependency, when I am trying to install, I am getting error as below, for the folder I kept in DEBIAN folder for installation.
dpkg: error processing archive /home/azureuser/my-program_version_architecture.deb (--unpack): unable to open file '/var/lib/dpkg/tmp.ci//testing': Is a directory