Outils pour utilisateurs

Outils du site


tech:debian-apt-maj

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:debian-apt-maj [2025/09/10 17:21] Jean-Baptistetech:debian-apt-maj [2025/11/11 19:46] (Version actuelle) Jean-Baptiste
Ligne 7: Ligne 7:
   * [[http://www.pontikis.net/blog/simple-steps-to-update-a-debian-server]]   * [[http://www.pontikis.net/blog/simple-steps-to-update-a-debian-server]]
  
-<code>+<code ->
 apt-get update apt-get update
 apt list --upgradable apt list --upgradable
-apt-get --with-new-pkgs upgrade 
 </code> </code>
  
Ligne 18: Ligne 17:
 </code> </code>
  
-<code>+<code ->
 apt-get install update-notifier-common: apt-get install update-notifier-common:
 /usr/lib/update-notifier/apt-check /usr/lib/update-notifier/apt-check
Ligne 69: 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'interface (debconf !?) proposée par défaut de se prête pas vraiment aux scripts. 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'interface (debconf !?) proposée par défaut de se prête pas vraiment aux scripts.
 +
  
 === Solution  === Solution 
Ligne 114: Ligne 114:
  
 Pour les anciennes Debian ? Pour les anciennes Debian ?
-<code bash check_update_apt.sh>+ 
 +''check_update_apt.sh'' 
 +<code bash>
 #! /bin/bash #! /bin/bash
  
Ligne 136: Ligne 138:
 LC_ALL=C apt-get -s dist-upgrade | grep "^[[:digit:]]\+ upgraded" LC_ALL=C apt-get -s dist-upgrade | grep "^[[:digit:]]\+ upgraded"
 </code> </code>
 +
  
 == Pb == Pb
Ligne 143: Ligne 146:
 <code bash> <code bash>
 apt-get update --allow-releaseinfo-change apt-get update --allow-releaseinfo-change
 +</code>
 +
 +
 +
 +=== 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/oldstable-security 4.040-1~deb12u1 amd64 [upgradable from: 4.030-2+b5]
 +Notice: There are 2 additional versions. Please use the '-a' switch to see them.
 +# apt-show-versions | grep upgradeable
 +libjson-xs-perl:amd64/testing 4.030-2+b5 upgradeable to 4.040-1~deb12u1
 +# 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:
 + libjson-xs-perl : Depends: perlapi-5.36.0
 +Error: Unable to correct problems, you have held broken packages.
 +
 +
 +# apt install --only-upgrade  libjson-xs-perl
 +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:
 + libjson-xs-perl : Depends: perlapi-5.36.0
 +Error: Unable to correct problems, you have held broken packages.
 +Error: The following information from --solver 3.0 may provide additional context:
 +   Unable to satisfy dependencies. Reached two conflicting decisions:
 +   1. libjson-xs-perl:amd64=4.040-1~deb12u1 is selected as an upgrade
 +   2. libjson-xs-perl:amd64=4.040-1~deb12u1 Depends perlapi-5.36.0
 +      but none of the choices are installable:
 +      - perl-base:amd64=5.36.0-7+deb12u3 is not selected for install
 +      - perl-base:amd64=5.36.0-7+deb12u2 is not selected for install
 +      
 +# 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' to remove them.
 +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) ...
 </code> </code>
  
  
tech/debian-apt-maj.1757517668.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki