aptly db in confused state

326 views
Skip to first unread message

joshe...@gmail.com

unread,
Dec 13, 2016, 12:54:56 PM12/13/16
to aptly-discuss
Hello-
I'm trying to remove a published repo which by all accounts does appear to exist.

bamboo@bamboo:~$ aptly publish list
Published repositories:
* ./precise [amd64] publishes {main: [precise]}
* ./precise-dev [amd64] publishes {main: [precise-dev]}
* ./precise-thirdparty [amd64] publishes {non-free: [precise-thirdparty]}
* ./trusty [amd64] publishes {main: [trusty]}
* ./trusty-dev [amd64] publishes {main: [trusty-dev]}
* ./trusty-thirdparty [amd64] publishes {main: [trusty-thirdparty]}
* ./xenial [amd64] publishes {main: [xenial]}
* main/xenial [amd64] publishes {main: [xenial-thirdparty]}

bamboo@bamboo:~$ aptly publish drop "main/xenial"
ERROR: unable to remove: published repo with storage:prefix/distribution ./main/xenial not found

bamboo@bamboo:~$ aptly publish drop "xenial-thirdparty"
ERROR: unable to remove: published repo with storage:prefix/distribution ./xenial-thirdparty not found

bamboo@bamboo:~$ aptly publish drop "main"
ERROR: unable to remove: published repo with storage:prefix/distribution ./main not found

I've also tried using -force-drop as well as -force for the source repo:

bamboo@bamboo:/usr/local/aptly/ubuntu/public/dists$ aptly repo list
List of local repos:
* [precise-dev] (packages: 45)
* [precise-thirdparty] (packages: 14)
* [precise] (packages: 89)
* [trusty-dev] (packages: 296)
* [trusty-fallback] (packages: 0)
* [trusty-qa] (packages: 0)
* [trusty-thirdparty] (packages: 81)
* [trusty] (packages: 307)
* [xenial-thirdparty] (packages: 1)
* [xenial] (packages: 25)

To get more information about local repository, run `aptly repo show <name>`.
bamboo@bamboo:/usr/local/aptly/ubuntu/public/dists$ aptly repo drop -force xenial-thirdparty
Local repo `xenial-thirdparty` is published currently:
* main/xenial [amd64] publishes {main: [xenial-thirdparty]}
ERROR: unable to drop: local repo is published

I'm kind of at a loss as to where to go from here, since it will not let me publish the repo either:

bamboo@bamboo:/usr/local/aptly/ubuntu/public/dists$ aptly publish repo xenial-thirdparty
ERROR: prefix/distribution already used by another published repo: ./xenial [amd64] publishes {main: [xenial]}

I'm not sure where to take things from here, and any advice is welcome.

-Josh

Andrey Smirnov

unread,
Dec 18, 2016, 1:40:04 PM12/18/16
to joshe...@gmail.com, aptly-discuss
Hey Josh!

aptly publish list command (https://www.aptly.info/doc/aptly/publish/list/) lists published repositories with fixed format: ./precise means default endpoint, root prefix and distribution name precise.

aptly publish drop (https://www.aptly.info/doc/aptly/publish/drop/) is accepting distribution name and optional prefix (default prefix might be omitted).

So in your case:  `aptly publish drop "main/xenial"` should be `aptly publish drop xenial main`.

--
You received this message because you are subscribed to the Google Groups "aptly-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aptly-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages