(Quoted items are redacted elements)
I am using a private repository and an currently trying to repackage some packages 3rd-party packages.
I extract the package, make a few modifications (just the control files to fit with company policy - though sometimes file install locations though not in this case) and repackage (and usually rename).
Normally I copy the files into a new blank debhelper project and reconstruct the package, however, with a recent one I attempting to convert and some libraries and stuff aren't linking properly (I did copy the postinst, postrm, and preinst files along with all DEDIAN files exactly), the original package worked, but my repackage doesn't, despite providing the same files in the same locations and the same postinst and preinst.
So I was attempting to just modify the current packages control files (as the original package is not very good and will not list in our repository and getting a better one from the 3rd party is not an option). I also renamed the package.
I did the following:
dpkg-deb -R "directory"
dpkg-deb -b "directory" "package name I want"
I did this and put it in our repository. The package shows up in the "Packages" file on the repository and running apt-get update on the client side shows the package in: /var/lib/apt/lists/"server"_"location"_Packages
However when I do an apt-get install on the package name (as listed in the Packages file - I did a copy paste) it says it can't find the package. Same with an apt-cache search
The Packages listings is as follow (name redacted):
Package: "package name"
Section: unknown Maintainer: "maintainer"
SHA1: "sha key"
SHA256: "sha256 key"
I am running as sudo (and tried as root as well). I don't understand why apt-get won't see the package.
Can you point out any flaws in what I have done, or perhaps some help on getting apt-get to properly see the package. Or perhaps an alternative. I am not even sure if this is a valid way to repackage something.