issue133:tutoriel1
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue133:tutoriel1 [2018/05/26 10:32] – créée auntiee | issue133:tutoriel1 [2018/06/16 09:36] (Version actuelle) – christo.2so | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Ah, that time of year is here again. A new Ubuntu release. There are typically two thoughts on updating; fresh and upgrade. This article will focus on the upgrade. The rolling upgrade can be time consuming though, downloading all those new packages. What if I told you that we can speed up our upgrade to 18.04. | + | **Ah, that time of year is here again. A new Ubuntu release. There are typically two thoughts on updating; fresh and upgrade. This article will focus on the upgrade. The rolling upgrade can be time consuming though, downloading all those new packages. What if I told you that we can speed up our upgrade to 18.04. |
- | Well we can; using apt-fast we can make your updates go about 30% faster. While I am thinking about it, here is a link to the github page: https:// | + | Well we can; using apt-fast we can make your updates go about 30% faster. While I am thinking about it, here is a link to the github page: https:// |
- | In short, apt-fast (ppa: | + | Ah ! La même période annuelle est de retour ! Une nouvelle publication d' |
+ | |||
+ | Oui, nous le pouvons : en utilisant apt-fast, nos mises à jour vont environ 30 % plus vite. Pendant que j'y pense, il y a un lien vers une page de github : https:// | ||
+ | |||
+ | **In short, apt-fast (ppa: | ||
While it’s possible to use this even with the upgrade GUI. I’ll focus on the command line tool; do-release-upgrade. So what do we need to do to perform such a miracle? Multiple terminals, that’s what. Or some tmux/screen knowledge**. | While it’s possible to use this even with the upgrade GUI. I’ll focus on the command line tool; do-release-upgrade. So what do we need to do to perform such a miracle? Multiple terminals, that’s what. Or some tmux/screen knowledge**. | ||
- | Let’s get started | + | En bref, apt-fast (ppa: |
+ | |||
+ | Bien qu'il soit possible de l' | ||
+ | |||
+ | **Let’s get started | ||
First off, you’ll need two terminals. But may I suggest three. Consider it a safety thing. I’ll explain as we go. | First off, you’ll need two terminals. But may I suggest three. Consider it a safety thing. I’ll explain as we go. | ||
Ligne 15: | Ligne 23: | ||
Step 2: After you launch the command, your repository information will be updated to pull the new release. If you use PPAs on your system, you will see something like the image shown above, alerting you that they will be disabled. If you do not use PPAs, you may move on to Step 3. | Step 2: After you launch the command, your repository information will be updated to pull the new release. If you use PPAs on your system, you will see something like the image shown above, alerting you that they will be disabled. If you do not use PPAs, you may move on to Step 3. | ||
- | When you see the prompt, acknowledge it by pressing the “enter” key. The update will now refresh to the new release repos. | + | When you see the prompt, acknowledge it by pressing the “enter” key. The update will now refresh to the new release repos.** |
- | Step 3: This is very important if you are going to speed up the release upgrade. When you see what is shown in the image below, DO NOTHING. | + | Commençons |
+ | |||
+ | D' | ||
+ | |||
+ | Étape 1 : Dans le terminal 1, exécutez la commande do-release-upgrade comme sur la figure 1. Il peut être noté que je passe un commutateur « -d ». C'est pour vérifier les canaux bêta lors d'une mise à jour. Utilisez ce commutateur à vos risques et périls. Autrement, vous devrez attendre jusqu' | ||
+ | |||
+ | Étape 2 : Après le lancement de la commande, les informations de votre dépôt seront mises à jour extraire la nouvelle publication. Si vous utilisez des PPA sur votre système, vous verrez quelque chose comme l' | ||
+ | |||
+ | Quand vous voyez le curseur, validez en appuyant sur la touche Entrée. La mise à jour rafraîchira maintenant les dépôts vers les nouveaux. | ||
+ | |||
+ | **Step 3: This is very important if you are going to speed up the release upgrade. When you see what is shown in the image below, DO NOTHING. | ||
When you see this prompt, it is time to move to a new terminal. Proceed to Step 4. | When you see this prompt, it is time to move to a new terminal. Proceed to Step 4. | ||
Ligne 25: | Ligne 43: | ||
NOTE: Do not add the “-y” flag to this command. | NOTE: Do not add the “-y” flag to this command. | ||
- | When you hit enter, all the required packages for the release upgrade will be downloaded using the aria2c multithreaded download manager. Your terminal will look like the image below. | + | When you hit enter, all the required packages for the release upgrade will be downloaded using the aria2c multithreaded download manager. Your terminal will look like the image below.** |
- | Step 5: This is a good time to open a third terminal and keep it in focus. It’s really easy to mess this up, and this helps to prevent other issues. Off jog the window a bit so you can see when the dist-upgrade command is done running. When it looks like the image top right, proceed to the next step. Remember DO NOTHING... | + | Étape 3 : Celle-ci est très importante si vous voulez accélérer la montée de version. Quand vous voyez ce qui est montré sur l' |
+ | |||
+ | Si vous voyez le curseur, c'est le moment de passer sur un autre terminal. Passez à l' | ||
+ | |||
+ | Étape 4 : Dans la nouvelle fenêtre de terminal, entrez la commande dist-upgrade comme montré ci-dessus. | ||
+ | |||
+ | NOTE : n' | ||
+ | |||
+ | Quand vous appuyez sur Entrée, tous les paquets nécessaires à la montée de version seront téléchargés en utilisant le gestionnaire de téléchargement parallélisé aria2c. Votre terminal ressemblera à l' | ||
+ | |||
+ | **Step 5: This is a good time to open a third terminal and keep it in focus. It’s really easy to mess this up, and this helps to prevent other issues. Off jog the window a bit so you can see when the dist-upgrade command is done running. When it looks like the image top right, proceed to the next step. Remember DO NOTHING... | ||
Step 6: When the dist-upgrade command is finished downloading, | Step 6: When the dist-upgrade command is finished downloading, | ||
- | Other things happen in the do-release-upgrade command; such as removing obsolete packages. We want to take advantage of this. So enter “n” and close the terminal. Now we come “full circle” to terminal 1. | + | Other things happen in the do-release-upgrade command; such as removing obsolete packages. We want to take advantage of this. So enter “n” and close the terminal. Now we come “full circle” to terminal 1.** |
+ | |||
+ | Étape 5 : C'est le bon moment pour ouvrir un troisième terminal et le garder au premier plan. Il est très facile de se mélanger les pinceaux et ceci aide à prévenir d' | ||
+ | |||
+ | Étape 6 : Quand la commande dist-upgrade a fini de télécharger, | ||
+ | |||
+ | D' | ||
- | That’s right, we are now ready to proceed with the upgrade. Enter “y”. Here’s what will happen next. The system will attempt to download the required packages and notice that they are already downloaded. So then it will commence with the upgrade and start installing packages. | + | **That’s right, we are now ready to proceed with the upgrade. Enter “y”. Here’s what will happen next. The system will attempt to download the required packages and notice that they are already downloaded. So then it will commence with the upgrade and start installing packages. |
This is where your system will dictate when you will finish upgrading as CPU, RAM, drive speed, all come into play. At the end of the package installation, | This is where your system will dictate when you will finish upgrading as CPU, RAM, drive speed, all come into play. At the end of the package installation, | ||
- | Congratulations, | + | Congratulations, |
- | Notes | + | Ça y est, nous sommes maintenant prêts pour procéder à la montée de version. Entrez « y ». Voici ce qui arrive ensuite. Le système tentera de télécharger les paquets requis et notera qu'ils le sont déjà. Aussi, il démarrera alors la montée de version et commencera à installer les paquets. |
+ | |||
+ | C'est ici que votre système vous imposera la durée de la montée de version car les vitesses des processeur, mémoire, disque entrent toutes en jeu. À la fin de l' | ||
+ | |||
+ | Félicitations, | ||
+ | |||
+ | **Notes | ||
• Try this in a VM before a physical system, remember snapshots. Get familiar with the flow. | • Try this in a VM before a physical system, remember snapshots. Get familiar with the flow. | ||
Ligne 45: | Ligne 85: | ||
• This works with the upgrade GUI. Follow the prompts to know when to perform the dist-upgrade. | • This works with the upgrade GUI. Follow the prompts to know when to perform the dist-upgrade. | ||
- | Thanks for reading, and enjoy the following flow as a cheat-sheet. | + | Thanks for reading, and enjoy the following flow as a cheat-sheet.** |
- | Cheat Sheet | + | Notes |
+ | |||
+ | • Essayez-la dans une machine virtuelle (VM) avant de le faire dans une machine réelle, souvenez-vous des instantanés. Devenez à l'aise avec la succession des étapes. | ||
+ | • Souvenez-vous que vos PPA sont désactivés. | ||
+ | • Ceci fonctionne avec la mise à jour dans un affichage graphique. Suivez les demandes de réponse pour savoir quand réaliser dist-upgrade. | ||
+ | |||
+ | Merci de m' | ||
+ | |||
+ | **Cheat Sheet | ||
Terminal 1: | Terminal 1: | ||
• Execute the do-release-upgrade command: | • Execute the do-release-upgrade command: | ||
- | • sudo do-release-upgrade | + | • sudo do-release-upgrade |
- | • If you’re bold, you may also do this with the do-release-upgrade -d, but I suggest you try this first in a VM to get comfortable with the process. | + | • If you’re bold, you may also do this with the do-release-upgrade -d, but I suggest you try this first in a VM to get comfortable with the process. |
• If you do not use PPAs, continue to the next bullet. If you do use PPAs, you’ll eventually see a prompt that they will be disabled. Hit yes and let the process continue. | • If you do not use PPAs, continue to the next bullet. If you do use PPAs, you’ll eventually see a prompt that they will be disabled. Hit yes and let the process continue. | ||
• ALERT. Had to get your attention. You’ll eventually see a large prompt saying: | • ALERT. Had to get your attention. You’ll eventually see a large prompt saying: | ||
- | • X number of packages are obsolete | + | • X number of packages are obsolete |
- | • Y number of packages are new | + | • Y number of packages are new |
- | • Z number of packages will be updated. | + | • Z number of packages will be updated. |
- | • STOP STOP, just read. | + | • STOP STOP, just read. |
- | • Then a prompt saying “press y to continue”. | + | • Then a prompt saying “press y to continue”. |
- | • DON’T do anything, Move on to the next section. | + | • DON’T do anything, Move on to the next section.** |
- | Terminal 2: | + | Aide-mémoire |
+ | |||
+ | Terminal 1 : | ||
+ | |||
+ | • Exécutez la commande do-release-upgrade : | ||
+ | • sudo do-release-upgrade | ||
+ | • Si vous êtes audacieux, vous pouvez aussi le faire avec la commande do-release-upgrade -d, mais je vous suggère de l' | ||
+ | • Si vous n' | ||
+ | |||
+ | • ALERTE. J' | ||
+ | • X paquets sont périmés | ||
+ | • Y paquets sont nouveaux | ||
+ | • Z paquets seront mis à jour | ||
+ | • STOP, STOP. Ne faîtes que lire. | ||
+ | • Il y a ensuite un texte disant « appuyez sur y pour continuer ». | ||
+ | |||
+ | • NE FAITES RIEN. Passez à la section suivante. | ||
+ | |||
+ | **Terminal 2: | ||
• Execute the apt-fast command: | • Execute the apt-fast command: | ||
Ligne 70: | Ligne 136: | ||
• DO NOT use the “-y”. But go ahead and hit enter once. | • DO NOT use the “-y”. But go ahead and hit enter once. | ||
- | • This is where I suggest a third terminal and put it in focus. It’s far too easy to mess things up. And I’m here to say this is safe. | + | • This is where I suggest a third terminal and put it in focus. It’s far too easy to mess things up. And I’m here to say this is safe.** |
+ | |||
+ | Terminal 2 : | ||
+ | |||
+ | • Exécuter la commande apt-fast : | ||
+ | • sudo apt-fast dist-upgrade | ||
+ | • N' | ||
+ | |||
+ | • C'est ici que je propose un troisième terminal, à mettre au premier plan. C'est trop facile de se mélanger les pinceaux. Et je suis là pour vous dire que c'est plus sûr. | ||
- | Terminal 3: | + | **Terminal 3: |
• When you open the third terminal, move it a bit out of the way so that you can SEE terminal 2. | • When you open the third terminal, move it a bit out of the way so that you can SEE terminal 2. | ||
Ligne 78: | Ligne 152: | ||
• Just wait, since terminal 2 is downloading multithread style, it should only take a few minutes. | • Just wait, since terminal 2 is downloading multithread style, it should only take a few minutes. | ||
- | • When you notice Terminal 2 finished, it will be prompting you to continue. The ANSWER is no. | + | • When you notice Terminal 2 finished, it will be prompting you to continue. The ANSWER is no.** |
- | Terminal 2: | + | Terminal 3 : |
+ | |||
+ | • Quand vous ouvrez le troisième terminal, déplacez-le un peu de côté pour bien voir le terminal 2. | ||
+ | |||
+ | • Attendez, car le terminal 2 exécute un téléchargement parallélisé ; il ne devrait prendre que quelques minutes. | ||
+ | |||
+ | • Quand vous voyez que le terminal 2 a fini, il vous demandera si on continue. La RÉPONSE est non. | ||
+ | |||
+ | **Terminal 2: | ||
• Return to terminal 2 and enter ‘n’ to leave the apt-fast command. That was easy. Let’s go back to terminal 1. | • Return to terminal 2 and enter ‘n’ to leave the apt-fast command. That was easy. Let’s go back to terminal 1. | ||
Ligne 90: | Ligne 172: | ||
• Enter ‘y’ to continue. | • Enter ‘y’ to continue. | ||
- | • Here’s what will happen: | + | • Here’s what will happen:** |
- | • The next step for do-release-upgrade is to download all required packages. But we just did that using apt-fast. | + | |
+ | Terminal 2 : | ||
+ | |||
+ | • Retournez au terminal 2 et entrez « n » pour quitter la commande apt-fast. C' | ||
+ | |||
+ | Terminal 1 : | ||
+ | |||
+ | • Maintenant, vous êtes prêt à continuer la montée de version. | ||
+ | |||
+ | • Entrez « y » pour continuer. | ||
+ | |||
+ | • Voici ce qui se passera : | ||
+ | |||
+ | |||
+ | **• The next step for do-release-upgrade is to download all required packages. But we just did that using apt-fast. | ||
• So, when do-release-upgrade notices the cache is up-to-date, it will casually move on to the next step; Installing the packages... | • So, when do-release-upgrade notices the cache is up-to-date, it will casually move on to the next step; Installing the packages... | ||
• This is where apt-fast may not seem like a winner. But it is. While installing the updates, this part of the process is plagued by your hardware: RAM, CPU, drive speed. | • This is where apt-fast may not seem like a winner. But it is. While installing the updates, this part of the process is plagued by your hardware: RAM, CPU, drive speed. | ||
- | • At the end of this, you;ll be prompted to remove obsolete software, go ahead and enter “y”. | + | • At he end of this, you;ll be prompted to remove obsolete software, go ahead and enter “y”. |
- | • At the end of this, you’ll be prompted to reboot the system, go ahead and enter “y” | + | • At the end of this, you’ll be prompted to reboot the system, go ahead and enter “y”** |
+ | |||
+ | • L' | ||
+ | • Aussi, quand do-release-upgrade se rend compte que le cache est à jour, il va simplement passer à l' | ||
+ | • C'est là que apt-fast ne semble pas être le grand vainqueur. Mais il l'est. L' | ||
+ | • À la fin de ceci, il vous sera demandé si les paquets obsolètes doivent être enlevés ; allez-y et répondez « y ». | ||
+ | • Puis, il vous sera demandé de redémarrer le système ; allez-y et répondez « y ». | ||
issue133/tutoriel1.1527323546.txt.gz · Dernière modification : 2018/05/26 10:32 de auntiee