Mirror a repository without a "Release" results in 404.

334 views
Skip to first unread message

esse...@gmail.com

unread,
Mar 28, 2015, 4:16:55 AM3/28/15
to aptly-...@googlegroups.com
Hi,

I've been trying to mirror Weechats "officially inofficial" debian mirror available at "http://weechat.org/debian" but I end up getting 404 because Aptly expects either a "InRelease" file or "Release" file which is unavailable.

Is there a way getting around having to fetch the Release-file that I miss?

# aptly mirror create weechat http://weechat.org/debian wheezy main
Downloading http://weechat.org/debian/dists/wheezy/InRelease...
Downloading http://weechat.org/debian/dists/wheezy/Release...
ERROR: unable to fetch mirror: HTTP code 404 while fetching http://weechat.org/debian/dists/wheezy/Release

# aptly mirror create weechat http://weechat.org/debian/dists/wheezy/main/binary-amd64/ ./
Downloading http://weechat.org/debian/dists/wheezy/main/binary-amd64/InRelease...
Downloading http://weechat.org/debian/dists/wheezy/main/binary-amd64/Release...
ERROR: unable to fetch mirror: HTTP code 404 while fetching http://weechat.org/debian/dists/wheezy/main/binary-amd64/Release

Thanks in advance!
Linus

Andrey Smirnov

unread,
Mar 29, 2015, 7:14:11 AM3/29/15
to esse...@gmail.com, aptly-...@googlegroups.com
Hi Linus,

I have no idea what kind of layout for repository these guys are using :)

There's no Release file there at all.

--
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-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

esse...@gmail.com

unread,
Mar 29, 2015, 7:20:49 AM3/29/15
to aptly-...@googlegroups.com, esse...@gmail.com
Hi,

Do you have a suggestion on how to mirror repositories who looks like this, do I have to make a custom script using rsync or something and then create a local repository with Aptly?
> To unsubscribe from this group and stop receiving emails from it, send an email to aptly-discus...@googlegroups.com.

Andrey Smirnov

unread,
Mar 29, 2015, 7:22:57 AM3/29/15
to esse...@gmail.com, aptly-...@googlegroups.com
You can download all packages you need (or download them every day) to some directory, then run 'aptly repo add weechat directory/'. aptly would automatically pick up all downloaded packages and push them to the repo (adding package already present in local repo is no-op).  This would be something like a mirror :)

To unsubscribe from this group and stop receiving emails from it, send an email to aptly-discuss+unsubscribe@googlegroups.com.

esse...@gmail.com

unread,
Mar 29, 2015, 7:26:00 AM3/29/15
to aptly-...@googlegroups.com, esse...@gmail.com
I'll try that, thanks! :)

Serge van Ginderachter

unread,
Mar 29, 2015, 7:31:55 AM3/29/15
to Andrey Smirnov, esse...@gmail.com, aptly-...@googlegroups.com

On 29 March 2015 at 13:14, Andrey Smirnov <smirnov...@gmail.com> wrote:
I have no idea what kind of layout for repository these guys are using :)


I think this is the flat repository format:

https://wiki.debian.org/RepositoryFormat#Flat_Repository_Format

which doesn't use a shared 'pool' of packages.


Andrey Smirnov

unread,
Mar 29, 2015, 7:33:54 AM3/29/15
to Serge van Ginderachter, esse...@gmail.com, aptly-...@googlegroups.com
At the same time on their website they provide lines for apt-sources as if it is "regular" repository: https://weechat.org/download/debian/

Serge van Ginderachter

unread,
Mar 29, 2015, 7:43:08 AM3/29/15
to Andrey Smirnov, esse...@gmail.com, aptly-...@googlegroups.com

On 29 March 2015 at 13:33, Andrey Smirnov <smirnov...@gmail.com> wrote:
At the same time on their website they provide lines for apt-sources as if it is "regular" repository: https://weechat.org/download/debian/


​Well, there is no difference to be expected in the apt-sources syntax​.
Flat repo is what you get by basically just doing a dpkg-scanpackages.

Andrey Smirnov

unread,
Mar 29, 2015, 8:06:43 AM3/29/15
to Serge van Ginderachter, esse...@gmail.com, aptly-...@googlegroups.com
Actually according to https://wiki.debian.org/RepositoryFormat#Flat_Repository_Format there should be difference:

 https://wiki.debian.org/RepositoryFormat#Flat_Repository_Format

aptly supports flat format which has Release file.
Reply all
Reply to author
Forward
0 new messages