W: Conflicting distribution: http://reposerver wheezy/updates Release (expected wheezy but got wheezy/updates) #110

Closed
erickeller opened this Issue Sep 23, 2014 · 7 comments

Comments

Projects
None yet
3 participants
@erickeller

Hi Andrey,

After mirroring security.debian.org in aptly, I get the following Warning:

sudo apt-get update
...
W: Conflicting distribution: http://reposerver wheezy/updates Release (expected wheezy but got wheezy/updates)

the sources.list looks like:

deb http://reposerver:8080/debian/daily wheezy main
deb http://reposerver:8080/debian/daily wheezy/updates main

the command I used to create the wheezy/update:

aptly -config=/home/repo/.aptly.conf -architectures=amd64,i386 mirror create wheezy-security-archive http://security.debian.org/ wheezy/updates main

do you have an idea why this warning is shown?

Regards

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Sep 23, 2014

Member

@erickeller, for me to reproduce the issue, what commands have you used to publish the mirror?

Member

smira commented Sep 23, 2014

@erickeller, for me to reproduce the issue, what commands have you used to publish the mirror?

@smira smira added the bug label Sep 23, 2014

@smira smira added this to the v0.8 milestone Sep 23, 2014

@smira smira added the question label Sep 23, 2014

@erickeller

This comment has been minimized.

Show comment
Hide comment
@erickeller

erickeller Sep 23, 2014

@smira here are the missing commands

snapshot:

aptly -config=/home/repo/.aptly.conf snapshot create daily-wheezy-security-archive from mirror wheezy-security-archive

publish:

aptly -config=/home/repo/.aptly.conf publish snapshot daily-wheezy-security-archive debian/daily

publish list:

aptly publish list
...
* debian/daily/wheezy/updates [amd64, i386] publishes {main: [daily-wheezy-security-archive]: Snapshot from mirror [wheezy-security-archive]: http://security.debian.org/ wheezy/updates [src]}

Hope this helps

@smira here are the missing commands

snapshot:

aptly -config=/home/repo/.aptly.conf snapshot create daily-wheezy-security-archive from mirror wheezy-security-archive

publish:

aptly -config=/home/repo/.aptly.conf publish snapshot daily-wheezy-security-archive debian/daily

publish list:

aptly publish list
...
* debian/daily/wheezy/updates [amd64, i386] publishes {main: [daily-wheezy-security-archive]: Snapshot from mirror [wheezy-security-archive]: http://security.debian.org/ wheezy/updates [src]}

Hope this helps

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Oct 1, 2014

Member

The problem here is that aptly actually doesn't support publishing distributions like wheezy/updates (with slash in distribution name). I believe we might need a fix here.

Member

smira commented Oct 1, 2014

The problem here is that aptly actually doesn't support publishing distributions like wheezy/updates (with slash in distribution name). I believe we might need a fix here.

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Oct 1, 2014

Member

The warning from apt should be harmless. Now aptly would auto-replace wheezy/updates with wheezy-updates to avoid such issues.

Member

smira commented Oct 1, 2014

The warning from apt should be harmless. Now aptly would auto-replace wheezy/updates with wheezy-updates to avoid such issues.

@smira smira closed this Oct 1, 2014

@erickeller

This comment has been minimized.

Show comment
Hide comment
@erickeller

erickeller Oct 1, 2014

Hi Andrey,

auto-replacing / with - does fix the problem (escaping the / would not be possible?). But It would have been nice to use the same patter as debian security repository:

deb http://security.debian.org/ wheezy/updates main contrib non-free

so we can switch from official repository to aplty reposiotry back and forth only by switching the URL without modifying the distribution.

Best regards

Hi Andrey,

auto-replacing / with - does fix the problem (escaping the / would not be possible?). But It would have been nice to use the same patter as debian security repository:

deb http://security.debian.org/ wheezy/updates main contrib non-free

so we can switch from official repository to aplty reposiotry back and forth only by switching the URL without modifying the distribution.

Best regards

@smira

This comment has been minimized.

Show comment
Hide comment
@smira

smira Oct 2, 2014

Member

I've created new issue #115 to track adding support for '/' in distribution names, because that would be out of scope of 0.8 release. Thanks!

Member

smira commented Oct 2, 2014

I've created new issue #115 to track adding support for '/' in distribution names, because that would be out of scope of 0.8 release. Thanks!

mbenkmann pushed a commit to mbenkmann/aptly that referenced this issue Feb 27, 2015

Matthias S. Benkmann
Revert "Don't allow '/' in distribution name, auto-replace '/' with '…
…-' while guessing. #110"

This reverts commit 1daa076.

The revert is done because this is not the correct fix for the underlying
problem (which is mirroring the Debian security archive properly).
@woifi

This comment has been minimized.

Show comment
Hide comment
@woifi

woifi Jan 18, 2018

I just had the same issue when I tried to publish snapshots from Debian mirrors with the following URLs:

Is there any way to resolve this? I'm currently using aptly 0.9.7-1+b1 from Debian Stretch.

woifi commented Jan 18, 2018

I just had the same issue when I tried to publish snapshots from Debian mirrors with the following URLs:

Is there any way to resolve this? I'm currently using aptly 0.9.7-1+b1 from Debian Stretch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment