Migration Precise à Trusty avec apt-mirror

Clément Février clement at forumanalogue.fr
Mar 15 Juil 15:32:44 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Bonjour à tous,


Ayant plusieurs machines, j'ai monté mon dépôt local avec apt-mirror.
Je souhaite utiliser ce dépôt pour migrer toutes mes machines de
Precise à Trusty. J'ai donc modifié la liste des dépôts pour avoir
présent sur le serveur les paquets de Trusty. Mon serveur tourne sur
Precise. Je ne sais pas si ça peut avoir une influence (mais je ne
pense pas).

Voici mon fichier de configuration simplifié :
% cat mirror.list
############# config ##################
#
set base_path    /home/www/mirror
#
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  amd64
set postmirror_script $var_path/postmirror.sh
set run_postmirror 1
set nthreads     20
set _tilde 0
#
############# end config ##############

deb http://archive.ubuntu.com/ubuntu precise main restricted universe
multiverse
deb http://archive.ubuntu.com/ubuntu precise-security main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu precise-proposed main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu precise-backports main restricted
universe multiverse

deb http://archive.ubuntu.com/ubuntu trusty main restricted universe
multiverse
deb http://archive.ubuntu.com/ubuntu trusty-security main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-proposed main restricted
universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted
universe multiverse

deb http://archive.ubuntu.com/ubuntu precise main/debian-installer
restricted/debian-installer universe/debian-installer
multiverse/debian-installer
deb http://archive.ubuntu.com/ubuntu precise-updates
main/debian-installer restricted/debian-installer
universe/debian-installer
deb http://archive.ubuntu.com/ubuntu precise-backports
main/debian-installer
deb http://archive.ubuntu.com/ubuntu precise-security
main/debian-installer restricted/debian-installer
universe/debian-installer
deb http://archive.ubuntu.com/ubuntu precise-proposed
main/debian-installer restricted/debian-installer
universe/debian-installer

deb http://archive.ubuntu.com/ubuntu trusty main/debian-installer
restricted/debian-installer universe/debian-installer
multiverse/debian-installer
deb http://archive.ubuntu.com/ubuntu trusty-updates
main/debian-installer restricted/debian-installer
universe/debian-installer
deb http://archive.ubuntu.com/ubuntu trusty-backports
main/debian-installer
deb http://archive.ubuntu.com/ubuntu trusty-security
main/debian-installer restricted/debian-installer
universe/debian-installer
deb http://archive.ubuntu.com/ubuntu trusty-proposed
main/debian-installer restricted/debian-installer
universe/debian-installer

deb http://archive.canonical.com/ubuntu precise partner

deb http://archive.canonical.com/ubuntu trusty partner

clean http://archive.ubuntu.com/ubuntu
clean http://archive.canonical.com/ubuntu

Je teste donc pour faire la migration :
% do-release-upgrade -d

...

Fetched 3,238 kB in 0s (0 B/s)

Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done

Updating repository information

No valid mirror found

While scanning your repository information no mirror entry for the
upgrade was found. This can happen if you run an internal mirror or
if the mirror information is out of date.

Do you want to rewrite your 'sources.list' file anyway? If you choose
'Yes' here it will update all 'precise' to 'trusty' entries.
If you select 'No' the upgrade will cancel.

Continue [yN]

Je suis un peu frileux à l'idée de répondre yes, surtout que ce n'est
pas l'option proposée par défaut. J'ai le souvenir que la migration
fait un peu plus que juste renommer le source.list, d'autant plus pour
la migration de LTS à LTS.

Avez-vous des retours d'expérience ou savez-vous comment faire pour
configurer apt-mirror pour la migration ?


Merci d'avance pour votre aide,
Clément
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlPFSZwACgkQzZJOqAPzQk+ikgEAyrlX0iPeaP8FuvdJ/fZMC4Zz
4WBBaG7izJLazB0w88QA/08zTHrr5ws/kSo3XLNe6es+F/bTBHv37koSWk4Toy/E
=/azn
-----END PGP SIGNATURE-----




Plus d'informations sur la liste de diffusion ubuntu-fr