Good day. I'm trying to create local copy of official Ubuntu repository(12.10 or 13.10 does not matter). As far as i know i could recursively download all packages from the mirror (http://mirror.yandex.ru/) but there is any othe way to do the job? Thank you.
Easiest way to copy everything is to use rsync :
Here's more info on the matter : https://help.ubuntu.com/community/Rsyncmirror
Rsync is a great tool.
EDIT to add it as your default repository to your hosts :
Publish the mirror on the Apache server This is the easy part. Assuming that you have Apache configured to follow symbolic links, all you need to do is add a symbolic link to your mirror!
You can test to see if this was successful by using a web browser to visit the site. Goto ubuntumirror.mydomain/ubuntu
You should see some directories named "dists", "indices", "pool", "project", and a file named "ls-lR.gz".
Update Your Clients Now that you have your very own Ubuntu Mirror, you need to point all of your workstations and servers to this mirror for their updates. This mirror will be good for main, universe, multi-verse, and restricted.
Replace the server name for the Ubuntu Archives with your local mirror. The existing server will likely be something like us.ubuntu.com
If your server is called ubuntumirror.mydomain then your /etc/apt/sources.list file should look something like this
You can test your mirror by running
You should see some output referencing your server, similar to this: