aptly-dev / aptly

aptly - Debian repository management tool

Home Page:https://www.aptly.info/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate repo got created in aptly

tusharumbarkar opened this issue · comments

Multiple repo with same name got created in aptly

Detailed Description

We have a automated way to push the packages to aptly mirror. The recent package was not appearing in the dashboard, after debugging found that there are multiple repo with same in aptly mirror. Not sur how more than 1 repo with same name got created. Now the problem is not all repos present in dashboard. We are thinking to rename OR drop repo, but we dont know how these will behave, as we multiple repo with same name

Any idea how to deal with this without loosing data (packages )?

That's a rather peculiar situation you have managed to get yourselfs into.

Just to start debugging, so, aptly mirror list -raw shows multiple lines with the same mirror key?
Please run:

aptly mirror list -raw | sort | uniq -c

which should give you a count for each unique mirror item. This should be 1 for all mirrors, but you seem to have encountered different behaviour. Please share the (sanitized and abbreviated) output of above commands here.

For all mirrors that are existing multiple times, I'd like to know what aptly mirror show -with-packages <mirror_name> produces, replacing <mirror_name> with the name of each affected mirror.

Sorry that I can't "fix your problem" right now, but please bear with us so we can debug this properly.

P.S.: Reading your description again, you might be having a problem with aptly repo, not aptly mirror. If that's the case, just swap mirror for repo in the commands I provided.