tech:debian-apt-maj
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:debian-apt-maj [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:debian-apt-maj [2026/05/29 15:41] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes Mise à jour Debian | ||
| + | |||
| + | Voir | ||
| + | * [|UnattendedUpgrades](https:// | ||
| + | * < | ||
| + | |||
| + | ~~~ | ||
| + | apt-get update | ||
| + | apt list --upgradable | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | apt install apt-show-versions | ||
| + | apt-show-versions | grep upgradeable | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | apt-get install update-notifier-common: | ||
| + | / | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | apt-get install debian-goodies | ||
| + | checkrestart | ||
| + | apt-get install update-notifier-common | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | checkrestart |grep ^servi | bash -s -- | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ----- | ||
| + | |||
| + | < | ||
| + | |||
| + | ~~~ | ||
| + | # apt-get update | ||
| + | Atteint http:// | ||
| + | Ign http:// | ||
| + | Atteint http:// | ||
| + | Atteint http:// | ||
| + | Ign http:// | ||
| + | Atteint http:// | ||
| + | Atteint http:// | ||
| + | Réception de : 1 http:// | ||
| + | Ign http:// | ||
| + | Atteint http:// | ||
| + | Ign http:// | ||
| + | Atteint http:// | ||
| + | Atteint http:// | ||
| + | Atteint http:// | ||
| + | 28,7 ko réceptionnés en 1s (26,3 ko/s) | ||
| + | Lecture des listes de paquets... Fait | ||
| + | W: Erreur de GPG : http:// | ||
| + | ic Signing Key (7.0/ | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | apt-get install debian-keyring debian-archive-keyring | ||
| + | apt-get update | ||
| + | apt-get upgrade | ||
| + | ~~~ | ||
| + | |||
| + | ----- | ||
| + | |||
| + | apt-get upgrade ouvre parfois une jolie fenêtre quand le maintenaient du paquet propose un fichier de configuration différent que votre fichier actuel. L' | ||
| + | |||
| + | |||
| + | ### Solution | ||
| + | |||
| + | DEBIAN_FRONTEND=' | ||
| + | |||
| + | ~~~bash | ||
| + | for SERV in $LISTE_SERV | ||
| + | do | ||
| + | ssh root@$SERV 'env DEBIAN_FRONTEND=' | ||
| + | done | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | Une nouvelle version du fichier de configuration / | ||
| + | disponible mais la version actuellement utilisée a été modifiée localement. | ||
| + | |||
| + | 1. Installer la version du responsable du paquet | ||
| + | 2. Garder la version actuellement installée | ||
| + | 3. Montrer les différences entre les versions | ||
| + | 4. Montrer côte à côte les différences entre les versions | ||
| + | 5. Montrer les différences entre les trois versions du fichier | ||
| + | 6. Fusionner les trois versions (« 3-way merge » : | ||
| + | 7. Lancer un shell pour examiner la situation | ||
| + | |||
| + | Action souhaitée pour le fichier de configuration modifié smb.conf : | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Voir : | ||
| + | ~~~bash | ||
| + | export DEBIAN_FRONTEND=' | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | dpkg-reconfigure --frontend=readline debconf | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Exit-il des packages plus récent à mettre à jour | ||
| + | |||
| + | ~~~bash | ||
| + | apt list --upgradable | ||
| + | ~~~ | ||
| + | |||
| + | Pour les anciennes Debian ? | ||
| + | |||
| + | '' | ||
| + | ~~~bash | ||
| + | #! /bin/bash | ||
| + | |||
| + | # Package update-notifier-common nécessaire | ||
| + | |||
| + | set -o nounset | ||
| + | |||
| + | #declare -i recmaj | ||
| + | #declare -i secmaj | ||
| + | |||
| + | IFS=';' | ||
| + | |||
| + | echo " | ||
| + | echo " | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | / | ||
| + | ~~~bash | ||
| + | apt-get update | ||
| + | LC_ALL=C apt-get -s dist-upgrade | grep " | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Pb | ||
| + | |||
| + | ### Err. This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. | ||
| + | |||
| + | ~~~bash | ||
| + | apt-get update --allow-releaseinfo-change | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ### Err - The following packages have been kept back - 1 not upgraded | ||
| + | |||
| + | ~~~ | ||
| + | # apt-get upgrade | ||
| + | Reading package lists... Done | ||
| + | Building dependency tree... Done | ||
| + | Reading state information... Done | ||
| + | Calculating upgrade... Done | ||
| + | The following packages have been kept back: | ||
| + | libjson-xs-perl | ||
| + | 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. | ||
| + | |||
| + | # apt-get dist-upgrade | ||
| + | Reading package lists... Done | ||
| + | Building dependency tree... Done | ||
| + | Reading state information... Done | ||
| + | Calculating upgrade... Done | ||
| + | The following packages have been kept back: | ||
| + | libjson-xs-perl | ||
| + | 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. | ||
| + | |||
| + | # apt list --upgradable | ||
| + | libjson-xs-perl/ | ||
| + | Notice: There are 2 additional versions. Please use the ' | ||
| + | # apt-show-versions | grep upgradeable | ||
| + | libjson-xs-perl: | ||
| + | # apt-get --with-new-pkgs upgrade | ||
| + | Reading package lists... Done | ||
| + | Building dependency tree... Done | ||
| + | Reading state information... Done | ||
| + | Calculating upgrade... Done | ||
| + | The following packages have been kept back: | ||
| + | libjson-xs-perl | ||
| + | 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. | ||
| + | |||
| + | # apt-mark showhold | ||
| + | # | ||
| + | |||
| + | # apt upgrade --with-new-pkgs libjson-xs-perl | ||
| + | Calculating upgrade... Error! | ||
| + | Some packages could not be installed. This may mean that you have | ||
| + | requested an impossible situation or if you are using the unstable | ||
| + | distribution that some required packages have not yet been created | ||
| + | or been moved out of Incoming. | ||
| + | The following information may help to resolve the situation: | ||
| + | |||
| + | Unsatisfied dependencies: | ||
| + | | ||
| + | Error: Unable to correct problems, you have held broken packages. | ||
| + | |||
| + | |||
| + | # apt install --only-upgrade | ||
| + | Solving dependencies... Error! | ||
| + | Some packages could not be installed. This may mean that you have | ||
| + | requested an impossible situation or if you are using the unstable | ||
| + | distribution that some required packages have not yet been created | ||
| + | or been moved out of Incoming. | ||
| + | The following information may help to resolve the situation: | ||
| + | |||
| + | Unsatisfied dependencies: | ||
| + | | ||
| + | Error: Unable to correct problems, you have held broken packages. | ||
| + | Error: The following information from --solver 3.0 may provide additional context: | ||
| + | | ||
| + | 1. libjson-xs-perl: | ||
| + | 2. libjson-xs-perl: | ||
| + | but none of the choices are installable: | ||
| + | - perl-base: | ||
| + | - perl-base: | ||
| + | | ||
| + | # apt-get purge libjson-xs-perl | ||
| + | Reading package lists... Done | ||
| + | Building dependency tree... Done | ||
| + | Reading state information... Done | ||
| + | The following packages were automatically installed and are no longer required: | ||
| + | libcommon-sense-perl libtypes-serialiser-perl | ||
| + | Use 'apt autoremove' | ||
| + | The following packages will be REMOVED: | ||
| + | libjson-xs-perl* | ||
| + | 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. | ||
| + | After this operation, 213 kB disk space will be freed. | ||
| + | Do you want to continue? [Y/n] Y | ||
| + | (Reading database ... 544809 files and directories currently installed.) | ||
| + | Removing libjson-xs-perl (4.030-2+b5) ... | ||
| + | Processing triggers for man-db (2.13.1-1) ... | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | root@vivabelo: | ||
| + | Reading package lists... Done | ||
| + | Building dependency tree... Done | ||
| + | Reading state information... Done | ||
| + | Calculating upgrade... Done | ||
| + | The following packages have been kept back: | ||
| + | libwine libwine: | ||
| + | 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. | ||
| + | |||
| + | |||
| + | # dpkg --get-selections | grep hold | ||
| + | # | ||
| + | ~~~ | ||
| + | |||
| + | Résolution du problème avec '' | ||
| + | |||
| + | ~~~bash | ||
| + | aptitude upgrade | ||
| + | ~~~ | ||
| + | |||
| + | ou | ||
| + | |||
| + | ~~~ | ||
| + | ¿Acepta esta solución? [Y/ | ||
| + | Las acciones siguientes resolverán estas dependencias | ||
| + | |||
| + | Eliminar los paquetes siguientes: | ||
| + | 1) libavcodec61 [7:7.1.3-1 (now)] | ||
| + | | ||
| + | Instalar los paquetes siguientes: | ||
| + | 2) fonts-wine [10.0~repack-6 (stable)] | ||
| + | 3) libavcodec-extra61 [7: | ||
| + | 4) libavformat61 [7: | ||
| + | 5) libbluray2 [1: | ||
| + | 6) libcapi20-3t64 [1: | ||
| + | 7) libosmesa6 [25.0.7-2 (stable)] | ||
| + | 8) librav1e0.7 [0.7.1-9+b2 (stable)] | ||
| + | 9) libudfread0 [1.1.2-1+b2 (stable)] | ||
| + | 10) | ||
| + | 11) | ||
| + | 12) | ||
| + | |||
| + | Desactualizar los paquetes siguientes: | ||
| + | 13) | ||
| + | |||
| + | Leave the following dependencies unresolved: | ||
| + | 14) | ||
| + | ~~~ | ||
| + | |||
