Migration Debian 7 vers Debian 10

Bonjour à toutes et tous,

J’ai une vieille VM chez Gandi à laquelle je n’ai pas touché depuis des lustres puisqu’elle fonctionne :slight_smile:

Je profite du confinement pour m’y remettre un peu, et je me dis que ce serait bien de migrer cette vieille machine hébergée dans une VM vers une version plus récente de notre OS préféré. J’ai évidemment lu différentes documentations, mais n’étant pas expert je souhaiterais avoir vos avis avant de modifier quoi que ce soit.

La machine actuelle :

$ cat /etc/debian_version
7.11
$ uname -a
Linux chre 3.2.85-xenU-26-081911a-x86_64 #2 SMP Fri Feb 24 16:54:11 UTC 2017 x86_64 GNU/Linux

Et des soucis dans les mises à jour évidemment avant d’envisager la migration :

# apt-get update
Ign http://mirrors.gandi.net wheezy Release.gpg
Ign http://mirrors.gandi.net wheezy/updates Release.gpg
Hit http://mirrors.gandi.net wheezy Release.gpg
Ign http://mirrors.gandi.net wheezy Release
Ign http://mirrors.gandi.net wheezy/updates Release
Hit http://mirrors.gandi.net wheezy Release
Ign http://mirrors.gandi.net wheezy/main amd64 Packages/DiffIndex
Ign http://mirrors.gandi.net wheezy/contrib amd64 Packages/DiffIndex
Ign http://mirrors.gandi.net wheezy/non-free amd64 Packages/DiffIndex
Ign http://mirrors.gandi.net wheezy/updates/main amd64 Packages/DiffIndex
Ign http://mirrors.gandi.net wheezy/updates/contrib amd64 Packages/DiffIndex
Ign http://mirrors.gandi.net wheezy/updates/non-free amd64 Packages/DiffIndex
Ign http://ftp.uk.debian.org squeeze Release.gpg
Ign http://ftp.uk.debian.org squeeze Release
Hit http://mirrors.gandi.net wheezy/main amd64 Packages
Ign http://ftp.uk.debian.org squeeze/main amd64 Packages/DiffIndex
Ign http://ftp.uk.debian.org squeeze/contrib amd64 Packages/DiffIndex
Ign http://ftp.uk.debian.org squeeze/non-free amd64 Packages/DiffIndex
Ign http://mirrors.gandi.net wheezy/contrib Translation-en
Ign http://mirrors.gandi.net wheezy/main Translation-en
Ign http://mirrors.gandi.net wheezy/non-free Translation-en
Ign http://mirrors.gandi.net wheezy/updates/contrib Translation-en
Ign http://mirrors.gandi.net wheezy/updates/main Translation-en
Ign http://mirrors.gandi.net wheezy/updates/non-free Translation-en
Err http://mirrors.gandi.net wheezy/main amd64 Packages
  404  Not Found [IP: 2001:4b98:dc4:5::80 80]
Err http://mirrors.gandi.net wheezy/contrib amd64 Packages
  404  Not Found [IP: 2001:4b98:dc4:5::80 80]
Err http://mirrors.gandi.net wheezy/non-free amd64 Packages
  404  Not Found [IP: 2001:4b98:dc4:5::80 80]
Err http://mirrors.gandi.net wheezy/updates/main amd64 Packages
  404  Not Found [IP: 2001:4b98:dc4:5::80 80]
Err http://mirrors.gandi.net wheezy/updates/contrib amd64 Packages
  404  Not Found [IP: 2001:4b98:dc4:5::80 80]
Err http://mirrors.gandi.net wheezy/updates/non-free amd64 Packages
  404  Not Found [IP: 2001:4b98:dc4:5::80 80]
Ign http://mirrors.gandi.net wheezy/main Translation-en
Ign http://ftp.uk.debian.org squeeze/contrib Translation-en
Ign http://ftp.uk.debian.org squeeze/main Translation-en
Ign http://ftp.uk.debian.org squeeze/non-free Translation-en
Err http://ftp.uk.debian.org squeeze/main amd64 Packages
  404  Not Found [IP: 2001:1b40:5600:ff80:f8ee::1 80]
Err http://ftp.uk.debian.org squeeze/contrib amd64 Packages
  404  Not Found [IP: 2001:1b40:5600:ff80:f8ee::1 80]
Err http://ftp.uk.debian.org squeeze/non-free amd64 Packages
  404  Not Found [IP: 2001:1b40:5600:ff80:f8ee::1 80]
W: Failed to fetch http://mirrors.gandi.net/debian/dists/wheezy/main/binary-amd64/Packages      404  Not Found [IP: 2001:4b98:dc4:5::80 80]

W: Failed to fetch http://mirrors.gandi.net/debian/dists/wheezy/contrib/binary-amd64/Packages      404  Not Found [IP: 2001:4b98:dc4:5::80 80]

W: Failed to fetch http://mirrors.gandi.net/debian/dists/wheezy/non-free/binary-amd64/Packages  404  Not Found [IP: 2001:4b98:dc4:5::80 80]

W: Failed to fetch http://mirrors.gandi.net/debian-security/dists/wheezy/updates/main/binary-amd64/Packages  404  Not Found [IP: 2001:4b98:dc4:5::80 80]

W: Failed to fetch http://mirrors.gandi.net/debian-security/dists/wheezy/updates/contrib/binary-amd64/Packages  404  Not Found [IP: 2001:4b98:dc4:5::80 80]

W: Failed to fetch http://mirrors.gandi.net/debian-security/dists/wheezy/updates/non-free/binary-amd64/Packages  404  Not Found [IP: 2001:4b98:dc4:5::80 80]

W: Failed to fetch http://ftp.uk.debian.org/debian/dists/squeeze/main/binary-amd64/Packages  404  Not Found [IP: 2001:1b40:5600:ff80:f8ee::1 80]

W: Failed to fetch http://ftp.uk.debian.org/debian/dists/squeeze/contrib/binary-amd64/Packages  404  Not Found [IP: 2001:1b40:5600:ff80:f8ee::1 80]

W: Failed to fetch http://ftp.uk.debian.org/debian/dists/squeeze/non-free/binary-amd64/Packages  404  Not Found [IP: 2001:1b40:5600:ff80:f8ee::1 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

Et le fichier /etc/apt/sources.list :

$ cat /etc/apt/sources.list
deb http://mirrors.gandi.net/debian wheezy main contrib non-free
deb http://mirrors.gandi.net/debian-security wheezy/updates main contrib non-free
deb http://ftp.uk.debian.org/debian/ squeeze main contrib non-free

(Je suis surpris de voir du Wheezy 7.x mélangé avec du Squeeze 6.x, une erreur de ma part à une époque certainement ; sachant qu’il est probable que cette machine soit une migration de Squeeze vers Wheezy).

Merci de vos conseils <3

Normalement il faut faire 7 -> 8 -> 9 -> 10 !!!
Donc sans doute plus simple de faire un installation au lieu d’une migration.

1 J'aime

J’avoue que j’y avais pensé aussi, vu qu’il y a peu de choses dessus, et qu’il s’agit uniquement de programmes qui tournent en continus, et pas de données à récupérer/sauvegarder.

C’est peut-être l’approche la plus raisonnable en termes de temps et efficacité. J’y réfléchis de plus près alors :slight_smile:

Bonjour à toutes et tous,

Mais s’il y a d’autres avis sur la manière de faire, je reste preneur :slight_smile:
Merci.

Salut,

j’ai déjà fait ce genre d’opération. :slight_smile:

Alors il faut effectivement passer par des mises à jours successives : il faut faire 7 -> 8 -> 9 -> 10.

Pour cela, j’avais trouvé un serveur qui disposait de moulte anciennes versions de Debian.
S’il n’y a pas grand chose sur ta VM, chaque maj ne devrait pas te demander bcp de tps t’intervention.

@+

1 J'aime

Bonjour à toutes et tous,
J’ai, enfin, entrepris cette migration.
Pas de soucis à priori sur la migration Wheezy -> Jessie.
Mais je rencontre le problème suivant sur la migration Jessie -> Stretch. Avant de poursuivre quoi que ce soit, j’aimerais votre avis. Il s’agit d’une VM hébergée chez Gandi.

(Après un apt-get update et apt-get ugrade réalisés avec succès)

> # apt-get dist-upgrade
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> Calculating upgrade... Done
> The following packages were automatically installed and are no longer required:
>   libalgorithm-c3-perl libapt-inst1.5 libapt-pkg4.12 libarchive-extract-perl
>   libb-hooks-endofscope-perl libbind9-90 libboost-iostreams1.55.0
>   libcgi-fast-perl libcgi-pm-perl libclass-c3-perl libclass-c3-xs-perl
>   libclass-method-modifiers-perl libclass-xsaccessor-perl libcpan-changes-perl
>   libcpan-meta-perl libdata-optlist-perl libdata-perl-perl
>   libdata-section-perl libdevel-caller-perl libdevel-globaldestruction-perl
>   libdevel-lexalias-perl libdns-export100 libdns100 libencode-locale-perl
>   libexporter-tiny-perl libfcgi-perl libfile-slurp-perl
>   libgetopt-long-descriptive-perl libgnutls-deb0-28 libgnutls-openssl27
>   libhogweed2 libhtml-parser-perl libhtml-tagset-perl libhttp-date-perl
>   libhttp-message-perl libicu52 libimport-into-perl libio-html-perl
>   libio-stringy-perl libirs-export91 libisc-export95 libisc95 libisccc90
>   libisccfg-export90 libisccfg90 liblist-moreutils-perl liblog-message-perl
>   liblog-message-simple-perl liblognorm1 liblwp-mediatypes-perl liblwres90
>   libmodule-build-perl libmodule-implementation-perl
>   libmodule-load-conditional-perl libmodule-pluggable-perl
>   libmodule-runtime-perl libmodule-signature-perl libmoo-perl
>   libmoox-handlesvia-perl libmro-compat-perl libnamespace-autoclean-perl
>   libnamespace-clean-perl libnettle4 libpackage-constants-perl
>   libpackage-stash-perl libpackage-stash-xs-perl libpadwalker-perl
>   libparams-classify-perl libparams-util-perl libparams-validate-perl
>   libpath-tiny-perl libpng12-0 libpod-latex-perl libpod-markdown-perl
>   libpod-readme-perl libprocps3 libpsl0 libpython2.7 libregexp-common-perl
>   librole-tiny-perl libruby2.1 libsoftware-license-perl libstrictures-perl
>   libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl
>   libsub-install-perl libsub-name-perl libterm-ui-perl libtext-soundex-perl
>   libtext-template-perl libtimedate-perl libtry-tiny-perl libtype-tiny-perl
>   libtype-tiny-xs-perl libunicode-utf8-perl liburi-perl libvariable-magic-perl
>   libxtables10
> Use 'apt autoremove' to remove them.
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 3 not fully installed or removed.
> After this operation, 0 B of additional disk space will be used.
> Do you want to continue? [Y/n] y
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
> 	LANGUAGE = (unset),
> 	LC_ALL = (unset),
> 	LANG = "fr_FR.utf8"
>     are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> locale: Cannot set LC_CTYPE to default locale: No such file or directory
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory
> locale: Cannot set LC_ALL to default locale: No such file or directory
> Setting up avahi-daemon (0.6.32-2) ...
> Job for avahi-daemon.service failed because the control process exited with error code.
> See "systemctl status avahi-daemon.service" and "journalctl -xe" for details.
> invoke-rc.d: initscript avahi-daemon, action "restart" failed.
> ● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
>    Loaded: loaded (/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
>    Active: failed (Result: exit-code) since Sun 2020-08-16 11:13:55 CEST; 12ms ago
>   Process: 28095 ExecStart=/usr/sbin/avahi-daemon -s (code=exited, status=255)
>  Main PID: 28095 (code=exited, status=255)
> 
> Aug 16 11:13:55 chre systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
> Aug 16 11:13:55 chre avahi-daemon[28095]: Daemon already running on PID 8570
> Aug 16 11:13:55 chre systemd[1]: avahi-daemon.service: Main process exited,…/n/a
> Aug 16 11:13:55 chre systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
> Aug 16 11:13:55 chre systemd[1]: avahi-daemon.service: Unit entered failed …ate.
> Aug 16 11:13:55 chre systemd[1]: avahi-daemon.service: Failed with result '…de'.
> Hint: Some lines were ellipsized, use -l to show in full.
> dpkg: error processing package avahi-daemon (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Setting up openssh-server (1:7.4p1-10+deb9u7) ...
> locale: Cannot set LC_CTYPE to default locale: No such file or directory
> locale: Cannot set LC_MESSAGES to default locale: No such file or directory
> locale: Cannot set LC_ALL to default locale: No such file or directory
> Job for ssh.service failed because the control process exited with error code.
> See "systemctl status ssh.service" and "journalctl -xe" for details.
> invoke-rc.d: initscript ssh, action "restart" failed.
> ● ssh.service - OpenBSD Secure Shell server
>    Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
>    Active: failed (Result: exit-code) since Sun 2020-08-16 11:13:57 CEST; 10ms ago
>   Process: 28235 ExecStart=/usr/sbin/sshd -D $SSHD_OPTS (code=exited, status=255)
>   Process: 28232 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
>  Main PID: 28235 (code=exited, status=255)
> 
> Aug 16 11:13:57 chre systemd[1]: Starting OpenBSD Secure Shell server...
> Aug 16 11:13:57 chre systemd[1]: ssh.service: Main process exited, code=exi…/n/a
> Aug 16 11:13:57 chre systemd[1]: Failed to start OpenBSD Secure Shell server.
> Aug 16 11:13:57 chre systemd[1]: ssh.service: Unit entered failed state.
> Aug 16 11:13:57 chre systemd[1]: ssh.service: Failed with result 'exit-code'.
> Hint: Some lines were ellipsized, use -l to show in full.
> dpkg: error processing package openssh-server (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Setting up rsyslog (8.24.0-1) ...
> Job for rsyslog.service failed because the control process exited with error code.
> See "systemctl status rsyslog.service" and "journalctl -xe" for details.
> invoke-rc.d: initscript rsyslog, action "restart" failed.
> ● rsyslog.service - System Logging Service
>    Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; vendor preset: enabled)
>    Active: activating (auto-restart) (Result: exit-code) since Sun 2020-08-16 11:13:58 CEST; 12ms ago
>      Docs: man:rsyslogd(8)
>            http://www.rsyslog.com/doc/
>   Process: 28278 ExecStart=/usr/sbin/rsyslogd -n (code=exited, status=1/FAILURE)
>  Main PID: 28278 (code=exited, status=1/FAILURE)
> dpkg: error processing package rsyslog (--configure):
>  subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
>  avahi-daemon
>  openssh-server
>  rsyslog
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Voici mon sources.list
# cat /etc/apt/sources.list
#
# Mise a jour du dimanche 16 aout 2020
#
deb http://mirrors.gandi.net/debian stretch main contrib non-free
deb http://mirrors.gandi.net/debian-security/ stretch/updates main contrib non-free
deb http://mirrors.gandi.net/debian stretch-updates main contrib non-free

Et les logs évoqués dans le retour terminal :
See "systemctl status rsyslog.service" and "journalctl -xe" for details.

systemctl :

# systemctl status rsyslog.service 
● rsyslog.service - System Logging Service
   Loaded: loaded (/lib/systemd/system/rsyslog.service; enabled; vendor preset: 
   Active: failed (Result: exit-code) since Sun 2020-08-16 11:13:59 CEST; 14min 
     Docs: man:rsyslogd(8)
           http://www.rsyslog.com/doc/
  Process: 28291 ExecStart=/usr/sbin/rsyslogd -n (code=exited, status=1/FAILURE)
 Main PID: 28291 (code=exited, status=1/FAILURE)

Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Service hold-off time over, sc
Aug 16 11:13:59 chre systemd[1]: Stopped System Logging Service.
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Start request repeated too qui
Aug 16 11:13:59 chre systemd[1]: Failed to start System Logging Service.
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Unit entered failed state.
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Failed with result 'exit-code'

Et journalctl

# journalctl -xe
-- 
-- The result is failed.
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Unit entered failed state.
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Failed with result 'exit-code'
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Service hold-off time over, sc
Aug 16 11:13:59 chre systemd[1]: Stopped System Logging Service.
-- Subject: Unit rsyslog.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit rsyslog.service has finished shutting down.
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Start request repeated too qui
Aug 16 11:13:59 chre systemd[1]: Failed to start System Logging Service.
-- Subject: Unit rsyslog.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit rsyslog.service has failed.
-- 
-- The result is failed.
Aug 16 11:13:59 chre systemd[1]: syslog.socket: Unit entered failed state.
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Unit entered failed state.
Aug 16 11:13:59 chre systemd[1]: rsyslog.service: Failed with result 'exit-code'
lines 2723-2745/2745 (END)

Merci.

Bonjour à toutes et tous,

Bon, dans le doute, j’ai rebooté le machine. Idem, toujours même problème.

Lors de la mise à jour, j’avais remplacé la configuration du SSHD par celle du paquet. En cherchant, j’ai retrouvé la configuration originale SSHD de la VM, que j’ai restauré :

# cp /etc/ssh/sshd_config /etc/ssh/sshd_config_20200817
# cp /etc/ssh/sshd_config.ucf-old /etc/ssh/sshd_config

Puis j’ai relancé le apt-get upgrade et apt-get dist-upgrade , avec succès !

# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libalgorithm-c3-perl libapt-inst1.5 libapt-pkg4.12 libarchive-extract-perl libb-hooks-endofscope-perl
  libbind9-90 libboost-iostreams1.55.0 libcgi-fast-perl libcgi-pm-perl libclass-c3-perl libclass-c3-xs-perl
  libclass-method-modifiers-perl libclass-xsaccessor-perl libcpan-changes-perl libcpan-meta-perl
  libdata-optlist-perl libdata-perl-perl libdata-section-perl libdevel-caller-perl
  libdevel-globaldestruction-perl libdevel-lexalias-perl libdns-export100 libdns100 libencode-locale-perl
  libexporter-tiny-perl libfcgi-perl libfile-slurp-perl libgetopt-long-descriptive-perl libgnutls-deb0-28
  libgnutls-openssl27 libhogweed2 libhtml-parser-perl libhtml-tagset-perl libhttp-date-perl libhttp-message-perl
  libicu52 libimport-into-perl libio-html-perl libio-stringy-perl libirs-export91 libisc-export95 libisc95
  libisccc90 libisccfg-export90 libisccfg90 liblist-moreutils-perl liblog-message-perl liblog-message-simple-perl
  liblognorm1 liblwp-mediatypes-perl liblwres90 libmodule-build-perl libmodule-implementation-perl
  libmodule-load-conditional-perl libmodule-pluggable-perl libmodule-runtime-perl libmodule-signature-perl
  libmoo-perl libmoox-handlesvia-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl
  libnettle4 libpackage-constants-perl libpackage-stash-perl libpackage-stash-xs-perl libpadwalker-perl
  libparams-classify-perl libparams-util-perl libparams-validate-perl libpath-tiny-perl libpng12-0
  libpod-latex-perl libpod-markdown-perl libpod-readme-perl libprocps3 libpsl0 libpython2.7 libregexp-common-perl
  librole-tiny-perl libruby2.1 libsoftware-license-perl libstrictures-perl libsub-exporter-perl
  libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libsub-name-perl libterm-ui-perl
  libtext-soundex-perl libtext-template-perl libtimedate-perl libtry-tiny-perl libtype-tiny-perl
  libtype-tiny-xs-perl libunicode-utf8-perl liburi-perl libvariable-magic-perl libxtables10
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "fr_FR.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up avahi-daemon (0.6.32-2) ...
Setting up openssh-server (1:7.4p1-10+deb9u7) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up rsyslog (8.24.0-1) ...
W: APT had planned for dpkg to do more than it reported back (0 vs 10).
   Affected packages: avahi-daemon:amd64 openssh-server:amd64 rsyslog:amd64

Et

# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libalgorithm-c3-perl libapt-inst1.5 libapt-pkg4.12 libarchive-extract-perl libb-hooks-endofscope-perl
  libbind9-90 libboost-iostreams1.55.0 libcgi-fast-perl libcgi-pm-perl libclass-c3-perl libclass-c3-xs-perl
  libclass-method-modifiers-perl libclass-xsaccessor-perl libcpan-changes-perl libcpan-meta-perl
  libdata-optlist-perl libdata-perl-perl libdata-section-perl libdevel-caller-perl
  libdevel-globaldestruction-perl libdevel-lexalias-perl libdns-export100 libdns100 libencode-locale-perl
  libexporter-tiny-perl libfcgi-perl libfile-slurp-perl libgetopt-long-descriptive-perl libgnutls-deb0-28
  libgnutls-openssl27 libhogweed2 libhtml-parser-perl libhtml-tagset-perl libhttp-date-perl libhttp-message-perl
  libicu52 libimport-into-perl libio-html-perl libio-stringy-perl libirs-export91 libisc-export95 libisc95
  libisccc90 libisccfg-export90 libisccfg90 liblist-moreutils-perl liblog-message-perl liblog-message-simple-perl
  liblognorm1 liblwp-mediatypes-perl liblwres90 libmodule-build-perl libmodule-implementation-perl
  libmodule-load-conditional-perl libmodule-pluggable-perl libmodule-runtime-perl libmodule-signature-perl
  libmoo-perl libmoox-handlesvia-perl libmro-compat-perl libnamespace-autoclean-perl libnamespace-clean-perl
  libnettle4 libpackage-constants-perl libpackage-stash-perl libpackage-stash-xs-perl libpadwalker-perl
  libparams-classify-perl libparams-util-perl libparams-validate-perl libpath-tiny-perl libpng12-0
  libpod-latex-perl libpod-markdown-perl libpod-readme-perl libprocps3 libpsl0 libpython2.7 libregexp-common-perl
  librole-tiny-perl libruby2.1 libsoftware-license-perl libstrictures-perl libsub-exporter-perl
  libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl libsub-name-perl libterm-ui-perl
  libtext-soundex-perl libtext-template-perl libtimedate-perl libtry-tiny-perl libtype-tiny-perl
  libtype-tiny-xs-perl libunicode-utf8-perl liburi-perl libvariable-magic-perl libxtables10
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Je poursuis donc ma migration :stuck_out_tongue:

Bon,
Nouvelle erreur pour le passage de Stretch à Buster.
Par de soucis pour apt-get update et apt-get ugrade (avec mise à jour du fichier crontabe, une incidence ?).
Par contre, avec apt-get dist-upgrade :

[Crunch!]
Installing new version of config file /etc/systemd/journald.conf ...
Installing new version of config file /etc/systemd/logind.conf ...
Installing new version of config file /etc/systemd/resolved.conf ...
Installing new version of config file /etc/systemd/system.conf ...
Installing new version of config file /etc/systemd/timesyncd.conf ...
Job for systemd-journald.service failed.
See "systemctl status systemd-journald.service" and "journalctl -xe" for details.
Job for systemd-timesyncd.service failed.
See "systemctl status systemd-timesyncd.service" and "journalctl -xe" for details.
dpkg: error processing package systemd (--configure):
 installed systemd package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Et

# systemctl status systemd-journald.service
● systemd-journald.service - Journal Service
   Loaded: loaded (/lib/systemd/system/systemd-journald.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-08-17 19:52:32 CEST; 5min ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
  Process: 14719 ExecStart=/lib/systemd/systemd-journald (code=exited, status=227/NO_NEW_PRIVILEGES)
 Main PID: 14719 (code=exited, status=227/NO_NEW_PRIVILEGES)

Et

# journalctl -xe
Aug 17 19:52:32 chre systemd[1]: Stopped Flush Journal to Persistent Storage.
-- Subject: A stop job for unit systemd-journal-flush.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A stop job for unit systemd-journal-flush.service has finished.
-- 
-- The job identifier is 3614 and the job result is done.
Aug 17 19:52:32 chre systemd[1]: Stopping Flush Journal to Persistent Storage...
-- Subject: A stop job for unit systemd-journal-flush.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A stop job for unit systemd-journal-flush.service has begun execution.
-- 
-- The job identifier is 3614.
Aug 17 19:52:32 chre systemd-journald[379]: Journal stopped
-- Subject: The journal has been stopped
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The system journal process has shut down and closed all currently
-- active journal files.
lines 1116-1138/1138 (END)

Je vais fouiner sur Internet. Si vous avez des pistes, merci.

Je n’ai rien trouvé d’évident sur cette erreur par rapport à mon contexte.

Par contre, j’ai utilisé la commande apt au lieu de apt-get, et j’ai eu les résultats suivants :

# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 dmsetup : Depends: libdevmapper1.02.1 (>= 2:1.02.138) but 2:1.02.137-2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

J’ai donc lancé le --fix-broken install :

# apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  gnupg-l10n libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0 libck-connector0
  libcryptsetup4 libdbus-glib-1-2 libevent-2.0-5 libpolkit-gobject-1-0 libxfont1 tcpd
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libdevmapper1.02.1
The following packages will be upgraded:
  libdevmapper1.02.1
1 upgraded, 0 newly installed, 0 to remove and 90 not upgraded.
25 not fully installed or removed.
Need to get 0 B/141 kB of archives.
After this operation, 73.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "fr_FR.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up apt (1.8.2.1) ...
Installing new version of config file /etc/apt/apt.conf.d/01autoremove ...
Installing new version of config file /etc/cron.daily/apt-compat ...
Setting up libcomerr2:amd64 (1.44.5-1+deb10u3) ...
(Reading database ... 23458 files and directories currently installed.)
Preparing to unpack .../libdevmapper1.02.1_2%3a1.02.155-3_amd64.deb ...
Unpacking libdevmapper1.02.1:amd64 (2:1.02.155-3) over (2:1.02.137-2) ...
Setting up libcwidget3v5:amd64 (0.5.17-11) ...
Setting up apt-utils (1.8.2.1) ...
Setting up libtirpc-common (1.1.4-0.4) ...
Setting up libsqlite3-0:amd64 (3.27.2-3) ...
Setting up systemd (241-7~deb10u4) ...
Removing user `systemd-bus-proxy' ...
Warning: group `systemd-bus-proxy' has no more members.
Done.
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.hostname1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.locale1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.login1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.network1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.resolve1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.systemd1.conf ...
Removing obsolete conffile /etc/dbus-1/system.d/org.freedesktop.timedate1.conf ...
Setting up locales (2.28-10) ...
Installing new version of config file /etc/locale.alias ...
Generating locales (this might take a while)...
Generation complete.
Setting up libkrb5support0:amd64 (1.17-3) ...
Setting up aptitude-common (0.8.11-7) ...
Setting up udev (241-7~deb10u4) ...
Installing new version of config file /etc/init.d/udev ...
Installing new version of config file /etc/udev/udev.conf ...
Removing obsolete conffile /etc/init/udev.conf ...
Removing obsolete conffile /etc/init/udevmonitor.conf ...
Removing obsolete conffile /etc/init/udevtrigger.conf ...
Setting up libboost-iostreams1.67.0:amd64 (1.67.0-13+deb10u1) ...
Setting up libk5crypto3:amd64 (1.17-3) ...
Setting up libevent-2.1-6:amd64 (2.1.8-stable-4) ...
Setting up lz4 (1.8.3-1) ...
Setting up liblz4-tool (1.8.3-1) ...
Setting up libpam-systemd:amd64 (241-7~deb10u4) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libkrb5-3:amd64 (1.17-3) ...
Setting up libboost-system1.67.0:amd64 (1.67.0-13+deb10u1) ...
Setting up libgssapi-krb5-2:amd64 (1.17-3) ...
Setting up aptitude (0.8.11-7) ...
Setting up libtirpc3:amd64 (1.1.4-0.4) ...
Setting up rpcbind (1.2.5-0.3+deb10u1) ...
Installing new version of config file /etc/init.d/rpcbind ...
Removing obsolete conffile /etc/init/portmap-wait.conf ...
Removing obsolete conffile /etc/init/rpcbind.conf ...
Removing obsolete conffile /etc/init/rpcbind-boot.conf ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.155-3) ...
Setting up dmsetup (2:1.02.155-3) ...
Setting up nfs-common (1:1.3.4-2.5+deb10u1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
nfs-utils.service is a disabled or a static unit not running, not starting it.
insserv: warning: current start runlevel(s) (2 3 4 5 S) of script `nfs-common' overrides LSB defaults (S).
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for systemd (241-7~deb10u4) ...

Et j’ai donc relancé upgrade :

# apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gnupg-agent libbind9-140 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0

[Crunch!]

Adding 'diversion of /usr/share/vim/vim81/doc/help.txt to /usr/share/vim/vim81/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim81/doc/tags to /usr/share/vim/vim81/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.1.0875-5) over (2:8.0.0197-4+deb9u3) ...
Removing 'diversion of /usr/share/vim/vim80/doc/help.txt to /usr/share/vim/vim80/doc/help.txt.vim-tiny by vim-runtime'
Removing 'diversion of /usr/share/vim/vim80/doc/tags to /usr/share/vim/vim80/doc/tags.vim-tiny by vim-runtime'
Selecting previously unselected package libpython3.7:amd64.
Preparing to unpack .../14-libpython3.7_3.7.3-2+deb10u2_amd64.deb ...
Unpacking libpython3.7:amd64 (3.7.3-2+deb10u2) ...
Selecting previously unselected package ruby-xmlrpc.
Preparing to unpack .../15-ruby-xmlrpc_0.3.0-2_all.deb ...
Unpacking ruby-xmlrpc (0.3.0-2) ...
Selecting previously unselected package libruby2.5:amd64.
Preparing to unpack .../16-libruby2.5_2.5.5-3+deb10u2_amd64.deb ...
Unpacking libruby2.5:amd64 (2.5.5-3+deb10u2) ...
Preparing to unpack .../17-vim-common_2%3a8.1.0875-5_all.deb ...
Unpacking vim-common (2:8.1.0875-5) over (2:8.0.0197-4+deb9u3) ...
Selecting previously unselected package libfstrm0:amd64.
Preparing to unpack .../18-libfstrm0_0.4.0-1_amd64.deb ...
Unpacking libfstrm0:amd64 (0.4.0-1) ...
Selecting previously unselected package liblmdb0:amd64.
Preparing to unpack .../19-liblmdb0_0.9.22-1_amd64.deb ...
Unpacking liblmdb0:amd64 (0.9.22-1) ...
Selecting previously unselected package libprotobuf-c1:amd64.
Preparing to unpack .../20-libprotobuf-c1_1.3.1-1+b1_amd64.deb ...
Unpacking libprotobuf-c1:amd64 (1.3.1-1+b1) ...
Selecting previously unselected package libicu63:amd64.
Preparing to unpack .../21-libicu63_63.1-6+deb10u1_amd64.deb ...
Unpacking libicu63:amd64 (63.1-6+deb10u1) ...
Preparing to unpack .../22-libxml2_2.9.4+dfsg1-7+b3_amd64.deb ...
Unpacking libxml2:amd64 (2.9.4+dfsg1-7+b3) over (2.9.4+dfsg1-2.2+deb9u2) ...
Selecting previously unselected package libisc1100:amd64.
Preparing to unpack .../23-libisc1100_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Unpacking libisc1100:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Selecting previously unselected package libdns1104:amd64.
Preparing to unpack .../24-libdns1104_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Unpacking libdns1104:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Selecting previously unselected package libisccc161:amd64.
Preparing to unpack .../25-libisccc161_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Unpacking libisccc161:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Selecting previously unselected package libisccfg163:amd64.
Preparing to unpack .../26-libisccfg163_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Unpacking libisccfg163:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Selecting previously unselected package libbind9-161:amd64.
Preparing to unpack .../27-libbind9-161_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Unpacking libbind9-161:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Selecting previously unselected package liblwres161:amd64.
Preparing to unpack .../28-liblwres161_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Unpacking liblwres161:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Preparing to unpack .../29-bind9-host_1%3a9.11.5.P4+dfsg-5.1+deb10u1_amd64.deb ...
Unpacking bind9-host (1:9.11.5.P4+dfsg-5.1+deb10u1) over (1:9.10.3.dfsg.P4-12.3+deb9u6) ...
Selecting previously unselected package libnss-systemd:amd64.
Preparing to unpack .../30-libnss-systemd_241-7~deb10u4_amd64.deb ...
Unpacking libnss-systemd:amd64 (241-7~deb10u4) ...
Preparing to unpack .../31-openssh-sftp-server_1%3a7.9p1-10+deb10u2_amd64.deb ...
Unpacking openssh-sftp-server (1:7.9p1-10+deb10u2) over (1:7.4p1-10+deb9u7) ...
Preparing to unpack .../32-openssh-server_1%3a7.9p1-10+deb10u2_amd64.deb ...
Unpacking openssh-server (1:7.9p1-10+deb10u2) over (1:7.4p1-10+deb9u7) ...
Replacing files in old package openssh-client (1:7.4p1-10+deb9u7) ...
dpkg: warning: unable to delete old directory '/etc/init': Directory not empty
Preparing to unpack .../33-libedit2_3.1-20181209-1_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20181209-1) over (3.1-20160903-3) ...
Preparing to unpack .../34-openssh-client_1%3a7.9p1-10+deb10u2_amd64.deb ...
Unpacking openssh-client (1:7.9p1-10+deb10u2) over (1:7.4p1-10+deb9u7) ...
Selecting previously unselected package libpcre2-8-0:amd64.
Preparing to unpack .../35-libpcre2-8-0_10.32-5_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.32-5) ...
Preparing to unpack .../36-libpsl5_0.20.2-2_amd64.deb ...
Unpacking libpsl5:amd64 (0.20.2-2) over (0.17.0-3) ...
Preparing to unpack .../37-wget_1.20.1-1.1_amd64.deb ...
Unpacking wget (1.20.1-1.1) over (1.18-5+deb9u3) ...
Preparing to unpack .../38-acpid_1%3a2.0.31-1_amd64.deb ...
Warning: Stopping acpid.service, but it can still be activated by:
  acpid.path
  acpid.socket
Unpacking acpid (1:2.0.31-1) over (1:2.0.28-1+b1) ...
Preparing to unpack .../39-avahi-daemon_0.7-4+b1_amd64.deb ...
Unpacking avahi-daemon (0.7-4+b1) over (0.6.32-2) ...
Preparing to unpack .../40-binutils_2.31.1-16_amd64.deb ...
Unpacking binutils (2.31.1-16) over (2.28-5) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../41-binutils-common_2.31.1-16_amd64.deb ...
Unpacking binutils-common:amd64 (2.31.1-16) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../42-libbinutils_2.31.1-16_amd64.deb ...
Unpacking libbinutils:amd64 (2.31.1-16) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../43-binutils-x86-64-linux-gnu_2.31.1-16_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.31.1-16) ...
Preparing to unpack .../44-openssl_1.1.1d-0+deb10u3_amd64.deb ...
Unpacking openssl (1.1.1d-0+deb10u3) over (1.1.0l-1~deb9u1) ...
Preparing to unpack .../45-ca-certificates_20200601~deb10u1_all.deb ...
Unpacking ca-certificates (20200601~deb10u1) over (20200601~deb9u1) ...
Preparing to unpack .../46-dirmngr_2.2.12-1+deb10u1_amd64.deb ...
Unpacking dirmngr (2.2.12-1+deb10u1) over (2.1.18-8~deb9u4) ...
Preparing to unpack .../47-gnupg_2.2.12-1+deb10u1_all.deb ...
Unpacking gnupg (2.2.12-1+deb10u1) over (2.1.18-8~deb9u4) ...
Preparing to unpack .../48-gnupg-agent_2.2.12-1+deb10u1_all.deb ...
Unpacking gnupg-agent (2.2.12-1+deb10u1) over (2.1.18-8~deb9u4) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../49-gpgconf_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpgconf (2.2.12-1+deb10u1) ...
Preparing to unpack .../50-pinentry-curses_1.1.0-2_amd64.deb ...
Unpacking pinentry-curses (1.1.0-2) over (1.0.0-2) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../51-gpg-agent_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpg-agent (2.2.12-1+deb10u1) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../52-gnupg-utils_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gnupg-utils (2.2.12-1+deb10u1) ...
Selecting previously unselected package gpg.
Preparing to unpack .../53-gpg_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpg (2.2.12-1+deb10u1) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../54-gpg-wks-client_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpg-wks-client (2.2.12-1+deb10u1) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../55-gpg-wks-server_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpg-wks-server (2.2.12-1+deb10u1) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../56-gpgsm_2.2.12-1+deb10u1_amd64.deb ...
Unpacking gpgsm (2.2.12-1+deb10u1) ...
Preparing to unpack .../57-libldap-2.4-2_2.4.47+dfsg-3+deb10u2_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u2) over (2.4.44+dfsg-5+deb9u4) ...
Selecting previously unselected package e2fsprogs-l10n.
Preparing to unpack .../58-e2fsprogs-l10n_1.44.5-1+deb10u3_all.deb ...
Unpacking e2fsprogs-l10n (1.44.5-1+deb10u3) ...
Preparing to unpack .../59-gdisk_1.0.3-1.1_amd64.deb ...
Unpacking gdisk (1.0.3-1.1) over (1.0.1-1) ...
Preparing to unpack .../60-info_6.5.0.dfsg.1-4+b1_amd64.deb ...
Unpacking info (6.5.0.dfsg.1-4+b1) over (6.3.0.dfsg.1-1+b2) ...
Preparing to unpack .../61-libglib2.0-0_2.58.3-2+deb10u2_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.58.3-2+deb10u2) over (2.50.3-2+deb9u2) ...
Preparing to unpack .../62-parted_3.2-25_amd64.deb ...
Unpacking parted (3.2-25) over (3.2-17) ...
Preparing to unpack .../63-libparted2_3.2-25_amd64.deb ...
Unpacking libparted2:amd64 (3.2-25) over (3.2-17) ...
Preparing to unpack .../64-libreadline5_5.2+dfsg-3+b13_amd64.deb ...
Unpacking libreadline5:amd64 (5.2+dfsg-3+b13) over (5.2+dfsg-3+b1) ...
Selecting previously unselected package libunwind8:amd64.
Preparing to unpack .../65-libunwind8_1.2.1-10~deb10u1_amd64.deb ...
Unpacking libunwind8:amd64 (1.2.1-10~deb10u1) ...
Selecting previously unselected package python-backports.functools-lru-cache.
Preparing to unpack .../66-python-backports.functools-lru-cache_1.5-3_all.deb ...
Unpacking python-backports.functools-lru-cache (1.5-3) ...
Selecting previously unselected package python-soupsieve.
Preparing to unpack .../67-python-soupsieve_1.8+dfsg-1_all.deb ...
Unpacking python-soupsieve (1.8+dfsg-1) ...
Preparing to unpack .../68-python-bs4_4.7.1-1_all.deb ...
Unpacking python-bs4 (4.7.1-1) over (4.5.3-1) ...
Preparing to unpack .../69-reiserfsprogs_1%3a3.6.27-3_amd64.deb ...
Unpacking reiserfsprogs (1:3.6.27-3) over (1:3.6.25-4+b1) ...
dpkg: warning: unable to delete old directory '/etc/initramfs-tools/hooks': Directory not empty
dpkg: warning: unable to delete old directory '/etc/initramfs-tools': Directory not empty
Preparing to unpack .../70-rename_1.10-1_all.deb ...
Unpacking rename (1.10-1) over (0.20-4) ...
Selecting previously unselected package ruby2.5.
Preparing to unpack .../71-ruby2.5_2.5.5-3+deb10u2_amd64.deb ...
Unpacking ruby2.5 (2.5.5-3+deb10u2) ...
Preparing to unpack .../72-ruby_1%3a2.5.1_amd64.deb ...
Unpacking ruby (1:2.5.1) over (1:2.3.3) ...
Preparing to unpack .../73-strace_4.26-0.2_amd64.deb ...
Unpacking strace (4.26-0.2) over (4.15-2) ...
Preparing to unpack .../74-xfsprogs_4.20.0-1_amd64.deb ...
Unpacking xfsprogs (4.20.0-1) over (4.9.0+nmu1) ...
Preparing to unpack .../75-znc-perl_1.7.2-3_amd64.deb ...
Unpacking znc-perl (1.7.2-3) over (1.6.5-1+deb9u2) ...
Preparing to unpack .../76-znc-tcl_1.7.2-3_amd64.deb ...
Unpacking znc-tcl (1.7.2-3) over (1.6.5-1+deb9u2) ...
Preparing to unpack .../77-znc-python_1.7.2-3_amd64.deb ...
Unpacking znc-python (1.7.2-3) over (1.6.5-1+deb9u2) ...
Preparing to unpack .../78-znc_1.7.2-3_amd64.deb ...
Unpacking znc (1.7.2-3) over (1.6.5-1+deb9u2) ...
Setting up perl-modules-5.28 (5.28.1-6+deb10u1) ...
Setting up pinentry-curses (1.1.0-2) ...
Setting up liblmdb0:amd64 (0.9.22-1) ...
Setting up libtext-iconv-perl (1.7-5+b7) ...
Setting up libtext-charwidth-perl (0.04-7.1+b1) ...
Setting up systemd-sysv (241-7~deb10u4) ...
Setting up libip6tc0:amd64 (1.8.2-4) ...
Setting up libpsl5:amd64 (0.20.2-2) ...
Setting up libreadline5:amd64 (5.2+dfsg-3+b13) ...
Setting up reiserfsprogs (1:3.6.27-3) ...
Removing obsolete conffile /etc/initramfs-tools/hooks/reiserfsprogs ...
Setting up libip4tc0:amd64 (1.8.2-4) ...
Setting up e2fslibs:amd64 (1.44.5-1+deb10u3) ...
Setting up e2fsprogs-l10n (1.44.5-1+deb10u3) ...
Setting up libglib2.0-0:amd64 (2.58.3-2+deb10u2) ...
No schema files found: doing nothing.
Setting up libprocps7:amd64 (2:3.3.15-2) ...
Setting up libfstrm0:amd64 (0.4.0-1) ...
Setting up rsyslog (8.1901.0-1) ...
Installing new version of config file /etc/init.d/rsyslog ...
Installing new version of config file /etc/logrotate.d/rsyslog ...
Installing new version of config file /etc/rsyslog.conf ...
Setting up binutils-common:amd64 (2.31.1-16) ...
Setting up less (487-0.1+b1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u2) ...
Setting up libnss-systemd:amd64 (241-7~deb10u4) ...
First installation detected...
Checking NSS setup...
Setting up libnftnl11:amd64 (1.1.2-2) ...
Setting up acpid (1:2.0.31-1) ...
Setting up libunwind8:amd64 (1.2.1-10~deb10u1) ...
Setting up libncurses5:amd64 (6.1+20181013-2+deb10u2) ...
Setting up libprotobuf-c1:amd64 (1.3.1-1+b1) ...
Setting up libicu63:amd64 (63.1-6+deb10u1) ...
Setting up libjansson4:amd64 (2.12-1) ...
Setting up vim-common (2:8.1.0875-5) ...
Installing new version of config file /etc/vim/vimrc ...
Setting up libiptc0:amd64 (1.8.2-4) ...
Setting up libncurses6:amd64 (6.1+20181013-2+deb10u2) ...
Setting up strace (4.26-0.2) ...
Setting up util-linux (2.33.1-0.1) ...
Setting up libpcre2-8-0:amd64 (10.32-5) ...
Setting up libxtables12:amd64 (1.8.2-4) ...
Setting up libisc-export1100:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up nano (3.2-3) ...
Installing new version of config file /etc/nanorc ...
Setting up libparted2:amd64 (3.2-25) ...
Setting up mount (2.33.1-0.1) ...
Setting up libuchardet0:amd64 (0.0.6-3) ...
Setting up procps (2:3.3.15-2) ...
Installing new version of config file /etc/init.d/procps ...
Installing new version of config file /etc/sysctl.conf ...
Setting up libbinutils:amd64 (2.31.1-16) ...
Setting up vim-runtime (2:8.1.0875-5) ...
Setting up openssl (1.1.1d-0+deb10u3) ...
Installing new version of config file /etc/ssl/openssl.cnf ...
Setting up libbsd0:amd64 (0.9.1-2) ...
Setting up libdns-export1104 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up ruby-xmlrpc (0.3.0-2) ...
Setting up libxml2:amd64 (2.9.4+dfsg1-7+b3) ...
Setting up info (6.5.0.dfsg.1-4+b1) ...
Setting up liblocale-gettext-perl (1.07-3+b4) ...
Setting up libreadline7:amd64 (7.0-5) ...
Setting up libgdbm6:amd64 (1.18.1-4) ...
Setting up libpopt0:amd64 (1.16-12) ...
Setting up gnupg-utils (2.2.12-1+deb10u1) ...
Setting up binutils-x86-64-linux-gnu (2.31.1-16) ...
Setting up logrotate (3.14.0-4) ...
Installing new version of config file /etc/cron.daily/logrotate ...
Installing new version of config file /etc/logrotate.conf ...
Created symlink /etc/systemd/system/timers.target.wants/logrotate.timer → /lib/systemd/system/logrotate.timer.
logrotate.service is a disabled or a static unit not running, not starting it.
Setting up libpython3.7-stdlib:amd64 (3.7.3-2+deb10u2) ...
Setting up wget (1.20.1-1.1) ...
Setting up libnftables0:amd64 (0.9.0-2) ...
Setting up libpython3.7:amd64 (3.7.3-2+deb10u2) ...
Setting up iptables (1.8.2-4) ...
update-alternatives: using /usr/sbin/iptables-legacy to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-legacy to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/iptables-nft to provide /usr/sbin/iptables (iptables) in auto mode
update-alternatives: using /usr/sbin/ip6tables-nft to provide /usr/sbin/ip6tables (ip6tables) in auto mode
update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode
update-alternatives: using /usr/sbin/ebtables-nft to provide /usr/sbin/ebtables (ebtables) in auto mode
Setting up iproute2 (4.20.0-2) ...
Installing new version of config file /etc/iproute2/ematch_map ...
Installing new version of config file /etc/iproute2/nl_protos ...
Installing new version of config file /etc/iproute2/rt_protos ...
Installing new version of config file /etc/iproute2/rt_tables.d/README ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up libedit2:amd64 (3.1-20181209-1) ...
Setting up isc-dhcp-client (4.4.1-2) ...
Setting up parted (3.2-25) ...
Setting up binutils (2.31.1-16) ...
Setting up libisc1100:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up vim-tiny (2:8.1.0875-5) ...
Installing new version of config file /etc/vim/vimrc.tiny ...
Setting up znc (1.7.2-3) ...
Setting up libpython2.7-stdlib:amd64 (2.7.16-2+deb10u1) ...
Setting up gdisk (1.0.3-1.1) ...
Setting up ca-certificates (20200601~deb10u1) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Setting up znc-tcl (1.7.2-3) ...
Setting up liblwres161:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up bsdmainutils (11.1.2+b1) ...
Setting up libgdbm-compat4:amd64 (1.18.1-4) ...
Setting up libperl5.28:amd64 (5.28.1-6+deb10u1) ...
Setting up groff-base (1.22.4-3) ...
Setting up gpgconf (2.2.12-1+deb10u1) ...
Setting up libisccc161:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up gpg (2.2.12-1+deb10u1) ...
Setting up znc-python (1.7.2-3) ...
Setting up libpython3-stdlib:amd64 (3.7.3-1) ...
Setting up libdns1104:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up python3.7 (3.7.3-2+deb10u2) ...
Setting up gpg-agent (2.2.12-1+deb10u1) ...
Setting up nftables (0.9.0-2) ...
Setting up python2.7 (2.7.16-2+deb10u1) ...
Setting up znc-perl (1.7.2-3) ...
Setting up libpython2-stdlib:amd64 (2.7.16-1) ...
Setting up openssh-client (1:7.9p1-10+deb10u2) ...
Installing new version of config file /etc/ssh/ssh_config ...
Setting up libruby2.5:amd64 (2.5.5-3+deb10u2) ...
Setting up gpgsm (2.2.12-1+deb10u1) ...
Setting up python3 (3.7.3-1) ...
running python rtupdate hooks for python3.7...
running python post-rtupdate hooks for python3.7...
Setting up man-db (2.8.5-2) ...
Installing new version of config file /etc/cron.daily/man-db ...
Installing new version of config file /etc/cron.weekly/man-db ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Updating database of manual pages ...
Created symlink /etc/systemd/system/timers.target.wants/man-db.timer → /lib/systemd/system/man-db.timer.
man-db.service is a disabled or a static unit, not starting it.
Setting up python2 (2.7.16-1) ...
Setting up dirmngr (2.2.12-1+deb10u1) ...
Setting up libpython-stdlib:amd64 (2.7.16-1) ...
Setting up perl (5.28.1-6+deb10u1) ...
Removing obsolete conffile /etc/perl/sitecustomize.pl ...
Setting up gnupg-agent (2.2.12-1+deb10u1) ...
Setting up xfsprogs (4.20.0-1) ...
Setting up gpg-wks-server (2.2.12-1+deb10u1) ...
Setting up libisccfg163:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up vim-nox (2:8.1.0875-5) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/vim.nox because link group vi is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/vim.nox because link group view is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/vim.nox because link group ex is broken
Setting up python (2.7.16-1) ...
Setting up openssh-sftp-server (1:7.9p1-10+deb10u2) ...
Setting up gpg-wks-client (2.2.12-1+deb10u1) ...
Setting up openssh-server (1:7.9p1-10+deb10u2) ...
Installing new version of config file /etc/init.d/ssh ...
Installing new version of config file /etc/ssh/moduli ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
rescue-ssh.target is a disabled or a static unit, not starting it.
Removing obsolete conffile /etc/init/ssh.conf ...
Removing obsolete conffile /etc/network/if-up.d/openssh-server ...
Setting up ruby2.5 (2.5.5-3+deb10u2) ...
Setting up libbind9-161:amd64 (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up rename (1.10-1) ...
Setting up ruby (1:2.5.1) ...
Setting up python-backports.functools-lru-cache (1.5-3) ...
Setting up gnupg (2.2.12-1+deb10u1) ...
Setting up bind9-host (1:9.11.5.P4+dfsg-5.1+deb10u1) ...
Setting up python-soupsieve (1.8+dfsg-1) ...
Setting up avahi-daemon (0.7-4+b1) ...
Installing new version of config file /etc/avahi/avahi-daemon.conf ...
Setting up python-bs4 (4.7.1-1) ...
Processing triggers for dbus (1.12.20-0+deb10u1) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for ca-certificates (20200601~deb10u1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

Puis le dist-upgrade :

# apt dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gnupg-agent libbind9-140 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0
  libck-connector0 libcryptsetup4 libdbus-glib-1-2 libdns-export162 libdns162 libevent-2.0-5 libicu57
  libisc-export160 libisc160 libisccc140 libisccfg140 liblogging-stdlog0 liblwres141 libmariadbclient18
  libperl5.24 libpolkit-gobject-1-0 libprocps6 libpython3.5 libpython3.5-minimal libpython3.5-stdlib libruby2.3
  libssl1.0.2 libtcl8.5 libunistring0 libxfont1 mysql-common rename ruby2.3 sgml-base tcl8.5 tcpd xml-core
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libcurl3
The following NEW packages will be installed:
  libcurl4
The following packages will be upgraded:
  boinc-client libboinc7
2 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/1214 kB of archives.
After this operation, 180 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "fr_FR.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...
(Reading database ... 27669 files and directories currently installed.)
Preparing to unpack .../boinc-client_7.14.2+dfsg-3_amd64.deb ...
Unpacking boinc-client (7.14.2+dfsg-3) over (7.6.33+dfsg-12) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Preparing to unpack .../libboinc7_7.14.2+dfsg-3_amd64.deb ...
Unpacking libboinc7:amd64 (7.14.2+dfsg-3) over (7.6.33+dfsg-12) ...
(Reading database ... 27665 files and directories currently installed.)
Removing libcurl3:amd64 (7.52.1-5+deb9u11) ...
Selecting previously unselected package libcurl4:amd64.
(Reading database ... 27656 files and directories currently installed.)
Preparing to unpack .../libcurl4_7.64.0-4+deb10u1_amd64.deb ...
Unpacking libcurl4:amd64 (7.64.0-4+deb10u1) ...
Setting up libboinc7:amd64 (7.14.2+dfsg-3) ...
Setting up libcurl4:amd64 (7.64.0-4+deb10u1) ...
Setting up boinc-client (7.14.2+dfsg-3) ...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...

Et voilà :slight_smile: :

# cat /etc/debian_version 
10.5

Je laisse le sujet ouvert encore un peu, si vous avez des suggestions, ou des recommandations sur les avertissements que je n’ai pas traité.

Voir ce problème de loacle en particulier pour perl
Je suggère aussi

sudo apt auroremove
sudo aptitude install git etckeeper

car je suppose qu’un utilisateur qui a installé vim-nox python2 python3 perl et une ribambelle de paquets perl, peut-être même ruby, qui rédige très bien ses messages, l’utilisation de git ne doit pas être insurmontable et avec etckeeper vous pourrez gérer finement votre configuration et donc documenter chaque modification que vous faites.

sudo vim /etc/...fichier_config
cd /etc
sudo git status
sudo git add ....
sudo git commit

Vous pourrez alors retrouver des mois plus tard, quel jour et à quelle heure vous avez modifié tel fichier (dans /etc ) et pourquoi on en est là (soignez vos messages de commit )

Cordialement,
Regards,
Mit freundlichen Grüßen,
مع تحياتي الخالصة


F. Petitjean
Ingénieur civil du Génie Maritime.

« Je préfère le vin d’ici à l’au-delà »
Pierre Dac

1 J'aime

Bonjour à toutes et tous,
Merci pour le retour @littlejohn75 !

Pour `locale , si j’ai compris il s’agit de variables d’environnement, mais où dois-je les positionner pour une configuration globale ? (et non pas shell par shell pour chaque utilisateur).

Pour

Je suppose qu’il s’agit d’autoremove (je fourche souvent avec mon clavier aussi), et donc oui, je l’ai fait, -autoremove et -autoclean.

Pour etckeeper et git (que je connais un peu), je vais aller voir la documentation d’ `etckeeper, et j’ouvrirais peut-être un sujet dédié sur la question, car je ne suis pas certain d’avoir tout à fait compris les suggestions :slight_smile:

Merci !

Bonjour

Il y a aussi une variable à ajouter dans son fichier ~/.bashrc
qui vous permettra de savoir à quelle date/heure chaque ligne de commande(s) listée par la commande history a été entrée :

La ligne à ajouter dans ~/.bashrc :

HISTTIMEFORMAT='%d/%m/%Y %T '  # Format d'affichage date/heure des lignes de commande(s) listées par la commande history

Extraits du retour de la commande history :
Avant :

  770  qemu-img create -f raw /home/michel/machVirt/debaeff.qcow2 16G
  771  rm /home/michel/machVirt/debaeff.qcow2
  772  df -htext4
  773  lsmod
  774  su -
  775  ls -l Téléchargements/ISOsInstall/

Après :


  770  12/08/2020 12:20:43 qemu-img create -f raw /home/michel/machVirt/debaeff.qcow2 16G
  771  12/08/2020 12:28:41 rm /home/michel/machVirt/debaeff.qcow2
  772  12/08/2020 12:28:52 df -htext4
  773  12/08/2020 12:41:15 lsmod
  774  12/08/2020 12:42:22 su -
  775  12/08/2020 16:13:58 ls -l Téléchargements/ISOsInstall/

Pour locale j’ai édité /etc/local.gen pour décommenter la ligne fr_FR.UTF-8 UTF-8, puis j’ai exécuté /usr/sbin/locale-gen. Cela semble mieux, mais je ne suis pas tout à fait sûr de moi. Si quelqu’un peut me redire.

Merci @MicP, je regarde pour ajouter cette option dans mon ~/.baschrc et je redis.

Dans la distribution debian, il y a un script fait pour ça
qui peut être lancé, avec les privilèges du compte super utilisateur root
par la ligne de commande suivante :

dpkg-reconfigure locales

Voir aussi :
# Utiliser et configurer Debian GNU/Linux pour le français
Chapitre 3 - Configurer les applications pour le français

Un document plus récent :
https://www.debian.org/doc/manuals/debian-reference/ch08.fr.html#_the_locale

1 J'aime

Bonjour,

Merci @MicP pour ces liens précis et instructifs !

Par contre, je n’ai pas accès à la commande dpkg-reconfigure locales, peut-être parce que j’arrive d’une vieille version Debian :

# dpkg-
dpkg-deb                 dpkg-maintscript-helper  dpkg-split               dpkg-trigger             
dpkg-divert              dpkg-query               dpkg-statoverride        

Mais on s’éloigne du sujet initial, il vaut peut-être mieux que j’ouvre un nouveau sujet et que je clos celui-ci ?

C’est peut-être parce que quand tu veux passer sous le compte root avec la commande su
tu n’utilises pas l’option login (qui peut être remplacée par un simple tiret).

Donc, fais plutôt :

su --login

ou bien

su -
1 J'aime

Pfff, j’aurais dû y penser aussi. Bien vu, j’avais oublié ce changement depuis Stretch. Du coup, ça a bien fonctionné :

# dpkg-
dpkg-deb                 dpkg-preconfigure        dpkg-split
dpkg-divert              dpkg-query               dpkg-statoverride
dpkg-maintscript-helper  dpkg-reconfigure         dpkg-trigger
# dpkg-reconfigure locales
Generating locales (this might take a while)...
  fr_FR.UTF-8... done
Generation complete.

Merci @MicP !

Bonjour à toutes et tous,

Je clos le sujet, merci beaucoup pour l’aide apportée.
Merci en particulier @antek, @gregoryroche0, @littlejohn75, @MicP :slight_smile: