Skip to content
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

ddeb packages don't show up when querying the repository with apt/apt-get #15

Open
dbart opened this issue Dec 17, 2019 · 4 comments
Open

Comments

@dbart
Copy link

dbart commented Dec 17, 2019

I've switched to using this fork of reprepro for my repos for its ability to have multiple versions and support for .ddeb files.

I've created repos and I think I've successfully imported the .ddeb packages. The command reprepro -T ddeb list bionic shows them, and they're there in the repository if you browse the filesystem tree of the repository using a web browser, but when accessing the repository from a remote machine using apt or apt-get it can't find any of the -dbgsym packages.

The Components/DDebComponents lines in my conf/distributions file are:

Components: main
DDebComponents: main

And my sources.list on the remote machine is just has the standard:

deb <url> bionic main

If I'm doing something wrong either with importing the .ddeb files into the repo, or how my sources.list for the repo is configured, I don't know what it is.

The only thing I can think of is that maybe it has something to do with the .ddeb packages not showing up in the main/binary-amd64/Packages file but instead in the main/debug/binary-amd64/Packages file. But I'm not sure what to do on the sources.list side to get apt to see them.

Thanks.

@dbart
Copy link
Author

dbart commented Apr 1, 2020

Ok, I think I've solved it.

To get the debug packages to show up I needed to have a line in my sources.list that has the component main/debug in addition to the main component. It can either be a separate line or on the same line like so:

deb <url> bionic main main/debug

That seems to have things sorted and the dbgsym packages are showing up like they should.

@dbart
Copy link
Author

dbart commented Apr 2, 2020

It does leave me with the following warnings on bionic whenever I do an apt update:

W: Skipping acquire of configured file 'main/debug/i18n/Translation-en_US' as repository '<url> bionic InRelease' doesn't have the component 'main/debug' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main/debug/i18n/Translation-en' as repository '<url> bionic InRelease' doesn't have the component 'main/debug' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'main/debug/cnf/Commands-amd64' as repository '<url> bionic InRelease' doesn't have the component 'main/debug' (component misspelt in sources.list?)

These warnings don't show up on Focal. So maybe it's an error with apt in bionic that got fixed in focal? Not sure. At least they're only warnings and not errors. Still annoying though.

@dbart
Copy link
Author

dbart commented Jun 26, 2021

FYI, some additional information on the above two warnings for people who find this via a search engine in the future:

First, the warnings I think come from this bug in Debian: https://bugs.debian.org/879591 It's been fixed in Debian and Ubuntu, but is still present in Ubuntu Bionic.

Second, if you see these warnings with a repository and want to suppress them, you need to add [ lang=none target-=CNF ] to the deb line of the repository config. The lang=none option supresses the missing "Translation" warnings, and the target-=CNF option removes cnf from the list of "targets" that apt tries to fetch (that's why it's -= and not =).

@qosmio
Copy link

qosmio commented Nov 10, 2022

I always appreciate folks who take time to update their issues (an entire year later!) rather than take the "I fixed it" and never reply approach. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants