-
-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use apt-file with an aptly repository #667
Comments
@mtmr could you please provide more details or some steps to reproduce? |
Hey,
Sorry for the delay in responding. You just need to create a repo/mirror
with aptly, publish it and use that in any instance. In that instance,
install apt-file and try to search for any package in apt-file. It will not
work, and apt itself does not fetch Contents-arch.tgz unlike the official
debian repos. If you need any more information, you can ping me.
Thanks.
…On Thu, Nov 9, 2017 at 1:59 AM, Andrey Smirnov ***@***.***> wrote:
@mtmr <https://github.com/mtmr> could you please provide more details or
some steps to reproduce?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/smira/aptly/issues/667#issuecomment-342949202>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJ5vmQmYpyv0nB3RV_Jq7SOII2gyXIkIks5s0g8igaJpZM4QWPTb>
.
|
Hello there, aptly version 1.2.0 Thanks in advance. |
Official documentation: https://wiki.debian.org/DebianRepository/Format#A.22Contents.22_indices
Which version of Debian/Ubuntu are you using? |
We are using Debian stretch, but for some reason it doesn't work as
expected. Copying the file to "dists/$DIST/Contents-$SARCH.gz" fixes the
issue however. This might be because of old versions of apt itself.
…On Fri, Feb 23, 2018 at 5:02 AM, Andrey Smirnov ***@***.***> wrote:
Official documentation:
https://wiki.debian.org/DebianRepository/Format#A.22Contents.22_indices
The files dists/$DIST/$COMP/Contents-$SARCH.gz (and
dists/$DIST/$COMP/Contents-udeb-$SARCH.gz for udebs) are so called
Contents indices. The variable $SARCH means either a binary architecture or
the pseudo-architecture "source" that represents source packages. They are
optional indices describing which files can be found in which packages. *Prior
to Debian wheezy*, the files were located below
"dists/$DIST/Contents-$SARCH.gz".
Which version of Debian/Ubuntu are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/smira/aptly/issues/667#issuecomment-367859087>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AJ5vmZyrXehuXCYLDeo-S-j_V09OkuRmks5tXfj-gaJpZM4QWPTb>
.
|
Even official Debian mirror doesn't have |
I'm closing this one unless there's some additional info on that, if there's anything else we should do on aptly side to support it better. |
Hi @smira, I'm working with @nordri and we faced this issue. After doing my research, it turns out that Ubuntu does still use on this day the traditional mirror layout that Debian modified some time ago. It is easy to see by checking on their repos: Ubuntu: http://archive.ubuntu.com/ubuntu/dists/xenial/ -> Contents-* file located in the root dir. On each system, apt-file is configured to work with their corresponding (incompatible) repo layouts. In Ubuntu at least, it is also possible to configure the download URL, in /etc/apt/apt-file.conf. I have empirically tested this, on Ubuntu 16.04 (Xenial):
Regarding what can be done in the aptly side to better support this situation, I would guess that supporting both traditional (Ubuntu) and modern (Debian) repo layout styles would do it. I don't know if that would introduce too much complexity to aptly, though. Related:
|
@j1elo thanks for researching it, it makes sense to add support for Ubuntu (legacy) layout |
Yes I think it would make sense. There is a bit more to know: apt-file has been reworked lately and in the latest version (to be included in the still unreleased Ubuntu 18.04 LTS) it is now more "intelligent" and able to use the Apt subsystem in order to detect what is the repo layout. Not sure about Debian, but it probably does the same in the most up-to-date versions. However for aptly I think this would be solving the issue by staying too much on the tip of the latest releases; the current Ubuntu 16.04 is officially supported until year 2021, and even the older 14.04 will still be around for one whole year until April 2019 (see the Ubuntu Releases page). (I'm talking here only about Long Term Support releases, because in my opinion those are the only ones for which it makes sense the effort of building tools and providing support) |
I've got the implementation ready, now I need to update tests for the changes, and we should be good to go |
Nightly build |
apt-file is a tool that gives information about packages that provide a specific file
Detailed Description
aptly generates a Contents-arch.tgz, but it is not being recognized by apt-file.
The text was updated successfully, but these errors were encountered: