Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to setup a local Ubuntu mirror so the whole network doesn't need to hit remote servers in order to update and install new packages. Following a brief tutorial found here, I managed to get a server up and running that correctly mirrors packages from the main and restricted categories. However, when I call apt-get update on a client, I get a couple of errors such as :

Ign http://192.168.1.18 karmic/main Translation-fr
Ign http://192.168.1.18 karmic/restricted Translation-fr

Checking back on the server, I see that apt-mirror only took the binary-amd64 directory of the mirror, and didn't take i18n that would provide Translation-fr.

The manpage for apt-mirror doesn't say anything about i18n, and Google is of no help either. How do I properly mirror i18n?

My current mirror.list file is as follows :

############# config ##################
#
# set base_path    /var/spool/apt-mirror
#
# if you change the base path you must create the directories below with write privileges
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch  <running host architecture>
# set postmirror_script $var_path/postmirror.sh
set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############

deb http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive karmic main restricted
deb http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive karmic-updates main restricted

clean http://mirror.cc.columbia.edu/pub/linux/ubuntu/archive
share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

At our work place we sync using a plain rsync script like this one. It's nice to know what's actually happening, which files we are getting, etc.

#!/bin/ksh                                                                                                 

RSYNCSOURCE=rsync://se.rsync.archive.ubuntu.com/ubuntu
BASEDIR=/export/install/mirror/ubuntu

rsync --recursive --times --links --hard-links \
      --exclude "Packages*" --exclude "Sources*" \
      --exclude "Release*" --no-motd \
      ${RSYNCSOURCE} ${BASEDIR}

rsync --recursive --times --links --hard-links \
      --delete --delete-after --no-motd \
      ${RSYNCSOURCE} ${BASEDIR}

It's based on these instructions https://wiki.ubuntu.com/Mirrors/Scripts

(The important part is the sync being in two stages.)

share|improve this answer
add comment

This is a known issue with apt-mirror. The developer is working on it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.