Read more

Setup an Ubuntu mirror that enables local release upgrades

Thomas Eisenbarth
November 14, 2012Software engineer at makandra GmbH

Setup the mirror by following the steps described here Show archive.org snapshot .

Illustration online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
Read more Show archive.org snapshot

If you want to enable OS upgrades using do-release-upgrade make sure you include $release-proposed packages in the mirror script, e.g., precise-proposed. Additionally, you have to add main/dist-upgrader-all to the $section in your script as debmirror silently ignores some directories.

I attached our modified script to include current releases

Enable Ubuntu release upgrade from the local mirror

Download the following two files into the root document directory of your local mirror:

wget http://changelogs.ubuntu.com/meta-release
wget http://changelogs.ubuntu.com/meta-release-lts

Open both files, replace the hostname archive.ubuntu.com with your local mirror.

Run release upgrade on client machine

On the client machine you want to do the release upgrade, modify /etc/update-manager/meta-release such that

URI = http://$mirror/meta-release
URI_LTS = http://$mirror/meta-release-lts

Run do-release-upgrade, it should now use your local mirror.

Posted by Thomas Eisenbarth to makandra dev (2012-11-14 11:50)