Couldn't find package - But package is listed in the Packages file

Posted by Chris on Ask Ubuntu See other posts from Ask Ubuntu or by Chris
Published on 2012-08-28T21:10:21Z Indexed on 2012/08/28 21:52 UTC
Read the original article Hit count: 565

(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"
Modify DEBIAN/control
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"
Priority: extra
Section: unknown Maintainer: "maintainer"
Architecture: any
Version: 1.0-lucid5
Depends: libc
Filename: "directory"/"package_filename"
Size: 2206292
MD5sum: "md5sum"
SHA1: "sha key"
SHA256: "sha256 key"
Description: "description"

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.

Thanks.

© Ask Ubuntu or respective owner

Related posts about package-management

Related posts about packages