multi-component vs merged snapshots build differences

162 views
Skip to first unread message

ji...@att.net

unread,
Apr 28, 2015, 12:00:48 PM4/28/15
to aptly-...@googlegroups.com
Hi,

I have used aptly to mirror ubuntu 14.04 (trusty), I've published using multiple components trusty-main, updates and security. When I build off these mirrors my kernel is only updated to the version in main, 3.13.0-24-generic.

aptly mirror create -with-udebs=true -architectures=i386,amd64 trusty-main http://archive.ubuntu.com/ubuntu trusty
aptly mirror create -with-udebs=true -architectures=i386,amd64 trusty-updates http://archive.ubuntu.com/ubuntu trusty-updates
aptly mirror create -with-udebs=true -architectures=i386,amd64 trusty-security http://archive.ubuntu.com/ubuntu trusty-security
aptly mirror update trusty-main; aptly mirror update trusty-updates; aptly mirror update trusty-security; echo done; cat
aptly snapshot create trusty-main-14.04.2 from mirror trusty-main
aptly mirror update trusty-main
aptly snapshot create trusty-main-14.04.2 from mirror trusty-main
aptly snapshot create trusty-updates-042415 from mirror trusty-updates
aptly mirror update trusty-updates
aptly snapshot create trusty-updates-042415 from mirror trusty-updates
aptly snapshot create trusty-security-042415 from mirror trusty-security
aptly publish snapshot -architectures=i386,amd64,source trusty-main-14.04.2 ubuntu
aptly publish snapshot -architectures=i386,amd64,source trusty-updates-042415 ubuntu
aptly publish snapshot -architectures=i386,amd64,source trusty-security-042415 ubuntu

If I merge the snapshots and publish I get the latest kernel as if I install of the canonical mirror.

aptly snapshot merge -latest trusty-042415 trusty-main-14.04.2 trusty-security-042415 trusty-updates-042415
aptly publish snapshot -architectures=i386,amd64,source distribution=trusty trusty-042415 trusty

Did I miss a step during the multi-component setup?

Thanks,
Jim

Andrey Smirnov

unread,
May 8, 2015, 8:04:15 PM5/8/15
to ji...@att.net, aptly-...@googlegroups.com
Hi Jim!

If in your first example you publish several snapshots as several distributions (not components), so you should include them all into apt sources.list. And apt would choose which version of package to install (e.g. kernel package). You can get example of sources.list by running aptly serve.

In your second example you merge snapshots with -latest flag, so there's single package kernel (with latest version) in your last snapshot. In this case apt doesn't have to decide what version to choose, it has only one package kernel with latest version.

--
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.

ji...@att.net

unread,
May 11, 2015, 10:14:48 AM5/11/15
to aptly-...@googlegroups.com, ji...@att.net
Thanks for the reply. What's the best way to mimic an externel ubuntu mirror internally with aptly in order to preserve the -updates and -security and having the latest kernel installed?

Andrey Smirnov

unread,
May 11, 2015, 6:17:23 PM5/11/15
to ji...@att.net, aptly-...@googlegroups.com
Jim, 

Have you seen this tutorial: http://www.aptly.info/tutorial/mirror/ ?

It is based on Debian, but for Ubuntu it should be more or less the same.

ji...@att.net

unread,
May 11, 2015, 8:22:50 PM5/11/15
to aptly-...@googlegroups.com
Andrey

Yes I have seen that tutorial

I want to mimic the behavior of the external Ubuntu mirror internally. When I setup trusty trusty-updates and trusty-security each with all components with aptly as shown above my builds don't get the latest kernel installed like when I build off the external mirror. I have to force a apt-get dist-upgrade

If I merge the snapshots with the latest option I get all the latest packages.

Is there something I'm missing with my setup?

Jim

Andrey Smirnov

unread,
May 13, 2015, 6:38:03 PM5/13/15
to ji...@att.net, aptly-...@googlegroups.com
Jim,

I don't have answer for that. Probably worth checking with apt-cache - what apt thinks about different versions being available, what would it choose.

Probably that's related with some settings in Release file - aptly doesn't support all the possible keys there.

Reply all
Reply to author
Forward
0 new messages