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 [2025/11/11 19:46] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| = Notes Mise à jour Debian | = Notes Mise à jour Debian | ||
| - | Voir [[https:// | + | Voir |
| + | * [[https:// | ||
| + | * [[http:// | ||
| - | [[http:// | + | < |
| + | apt-get update | ||
| + | apt list --upgradable | ||
| + | </ | ||
| + | <code bash> | ||
| + | apt install apt-show-versions | ||
| + | apt-show-versions | grep upgradeable | ||
| + | </ | ||
| + | |||
| + | <code -> | ||
| apt-get install update-notifier-common: | apt-get install update-notifier-common: | ||
| / | / | ||
| - | / | + | / |
| + | </ | ||
| + | |||
| + | <code bash> | ||
| apt-get install debian-goodies | apt-get install debian-goodies | ||
| checkrestart | checkrestart | ||
| apt-get install update-notifier-common | apt-get install update-notifier-common | ||
| + | </ | ||
| <code bash> | <code bash> | ||
| checkrestart |grep ^servi | bash -s -- | checkrestart |grep ^servi | bash -s -- | ||
| </ | </ | ||
| + | |||
| ----- | ----- | ||
| Ligne 52: | Ligne 68: | ||
| 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' | 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 | === Solution | ||
| Ligne 97: | Ligne 114: | ||
| Pour les anciennes Debian ? | Pour les anciennes Debian ? | ||
| - | <code bash check_update_apt.sh> | + | |
| + | '' | ||
| + | <code bash> | ||
| #! /bin/bash | #! /bin/bash | ||
| Ligne 119: | Ligne 138: | ||
| LC_ALL=C apt-get -s dist-upgrade | grep " | LC_ALL=C apt-get -s dist-upgrade | grep " | ||
| </ | </ | ||
| + | |||
| == Pb | == Pb | ||
| Ligne 126: | Ligne 146: | ||
| <code bash> | <code bash> | ||
| apt-get update --allow-releaseinfo-change | apt-get update --allow-releaseinfo-change | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | === Err - The following packages have been kept back - 1 not upgraded | ||
| + | |||
| + | <code -> | ||
| + | # 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) ... | ||
| </ | </ | ||
tech/debian-apt-maj.1742825205.txt.gz · Dernière modification : de 127.0.0.1
