Le lundi 12 juin 2023 à 14:02 -0400, Jeffrey Walton a écrit : > On Mon, Jun 12, 2023 at 5:48 AM Bastien Durel > <bastien+debian-u...@geekwu.org> wrote: > > > > Hello, > > > > During bookworm upgrade, I ran into some usrmerge failures, which > > led > > to an hard-to-fix situation > > > > Paramétrage de usrmerge (35) ... > > > > FATAL ERROR: > > Both /lib/x86_64-linux-gnu/libidn.so.11 and /usr/lib/x86_64-linux- > > gnu/libidn.so.11 exist. > > > > You can try correcting the errors reported and running again > > /usr/lib/usrmerge/convert-usrmerge until it will complete without > > errors. > > Do not install or update other Debian packages until the program > > has been run successfully. > > > > E: usrmerge failed. > > > > root@corrin:/root # /usr/lib/usrmerge/convert-usrmerge > > /usr/bin/perl: /lib/x86_64-linux-gnu/libm.so.6: version > > `GLIBC_2.29' not found (required by /usr/bin/perl) > > /usr/bin/perl: /lib/x86_64-linux-gnu/libc.so.6: version > > `GLIBC_2.28' not found (required by /usr/bin/perl) > > /usr/bin/perl: /lib/x86_64-linux-gnu/libc.so.6: version > > `GLIBC_2.33' not found (required by /usr/bin/perl) > > /usr/bin/perl: /lib/x86_64-linux-gnu/libc.so.6: version > > `GLIBC_2.34' not found (required by /usr/bin/perl) > > /usr/bin/perl: /lib/x86_64-linux-gnu/libc.so.6: version > > `GLIBC_2.25' not found (required by /lib/x86_64-linux- > > gnu/libcrypt.so.1) > > /usr/bin/perl: /lib/x86_64-linux-gnu/libc.so.6: version > > `GLIBC_2.36' not found (required by /lib/x86_64-linux- > > gnu/libcrypt.so.1) > > root@corrin:/root # rm /usr/lib/x86_64-linux-gnu/libidn.so.11 > > Erreur de segmentation (core dumped) > > root@corrin:/root # ls -l /usr/lib/x86_64-linux-gnu/libidn.so.11 > > ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found > > (required by ls) > > ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found > > (required by /lib/x86_64-linux-gnu/libselinux.so.1) > > ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.30' not found > > (required by /lib/x86_64-linux-gnu/libselinux.so.1) > > ls: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found > > (required by /lib/x86_64-linux-gnu/libselinux.so.1) > > > > As no system tool was usable in this situation (dpkg crashed too), > > I > > powered-off the machine and restored it from backup. I then > > installed > > usrmerge on bullseye, fixed the problems, then done the bookworm > > upgrade without any other problems. > > > > As usrmerge is mandatory on bookworm ; and usrmerge failure during > > upgrade leads to (could lead to ?) big problems ; shouldn't its > > installation be advised in 4.1 or 4.2 chapters of the upgrade guide > > ? > > > > I know 5.1.14 says merged-/usr is now required ; but it does not > > warn > > about failures, and I don't think I'm the only one who don't read > > the > > next chapter before starting upgrade ;) > > I wonder if you have a bunch of stale symlinks... > > Does symlinks report any dangling links for the problem shared > libraries? > > sudo symlinks -r / | grep dangling > > If the list of dangling looks safe to clean-up, then you can run > > sudo symlinks -r -d / > > Jeff >
Hello. I have a bunch of them, here a those in /usr : dangling: /usr/bin/rust-llvm-dwp -> llvm-dwp-14 dangling: /usr/bin/clhsdb -> /etc/alternatives/clhsdb dangling: /usr/bin/rust-lld -> lld-14 dangling: /usr/bin/rust-clang -> clang-14 dangling: /usr/bin/x-terminal-emulator -> /etc/alternatives/x-terminal-emulator dangling: /usr/bin/hsdb -> /etc/alternatives/hsdb dangling: /usr/share/phpmyadmin/docs/html -> ../../doc/phpmyadmin/html dangling: /usr/share/man/man1/policyeditor.1.gz -> /etc/alternatives/policyeditor.1.gz dangling: /usr/share/man/man1/itweb-settings.1.gz -> /etc/alternatives/itweb-settings.1.gz dangling: /usr/share/man/man1/x-terminal-emulator.1.gz -> /etc/alternatives/x-terminal-emulator.1.gz dangling: /usr/share/man/man3/SSL.3ssl.gz -> ssl.3ssl.gz dangling: /usr/share/man/man3/cerfcf.3.gz -> cerf.3.gz dangling: /usr/share/man/man3/cerfcl.3.gz -> cerf.3.gz dangling: /usr/share/man/man3/cerfl.3.gz -> cerf.3.gz dangling: /usr/share/man/man3/cerff.3.gz -> cerf.3.gz dangling: /usr/share/pyshared/paste/evalexception/media/MochiKit.packed.js -> ../../../../javascript/mochikit/MochiKit.js dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php-util-buffer.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php-util-buffer.el dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php-mode.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php-mode.el dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php-mode-autoloads.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php-mode-autoloads.el dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php-project.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php-project.el dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php.el dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php-mode-debug.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php-mode-debug.el dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php-align.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php-align.el dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php-face.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php-face.el dangling: /usr/share/emacs/site-lisp/elpa/php-mode-1.23.0/php-mode-pkg.el -> /usr/share/emacs/site-lisp/elpa-src/php-mode-1.23.0//php-mode-pkg.el dangling: /usr/share/doc/coturn/examples/etc/cacert.pem -> ../ca/CA/cacert.pem dangling: /usr/share/doc/coturn/examples/etc/turn_server_cert.pem -> ../ca/turn_server_cert.pem dangling: /usr/share/doc/coturn/examples/etc/turn_server_pkey.pem -> ../ca/turn_server_pkey.pem dangling: /usr/share/doc/coturn/examples/etc/turn_client_cert.pem -> ../ca/turn_client_cert.pem dangling: /usr/share/doc/coturn/examples/etc/turn_client_pkey.pem -> ../ca/turn_client_pkey.pem dangling: /usr/share/doc/python-jinja2/html -> ../python-jinja2-doc/html dangling: /usr/share/doc/python-jinja2/rst -> ../python-jinja2-doc/html/_sources dangling: /usr/share/doc/python3-paste/docs/deploy -> ../../python3-pastedeploy/docs dangling: /usr/share/doc/python-webob/news.txt.gz -> changelog.gz dangling: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/libatk-wrapper.so -> ../../../../../x86_64-linux-gnu/jni/libatk-wrapper.so dangling: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar -> ../../../../../../share/java/java-atk-wrapper.jar dangling: /usr/lib/jvm/java-11-openjdk-amd64/lib/libatk-wrapper.so -> ../../../x86_64-linux-gnu/jni/libatk-wrapper.so dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/psfontj2d.properties -> /etc/java-8-openjdk/psfontj2d.properties dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/images/cursors/cursors.properties -> /etc/java-8-openjdk/images/cursors/cursors.properties dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/swing.properties -> /etc/java-8-openjdk/swing.properties dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/jvm.cfg -> /etc/java-8-openjdk/jvm-amd64.cfg dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sound.properties -> /etc/java-8-openjdk/sound.properties dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/nss.cfg -> /etc/java-8-openjdk/security/nss.cfg dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/jmxremote.password -> /etc/java-8-openjdk/management/jmxremote.password dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/jmxremote.access -> /etc/java-8-openjdk/management/jmxremote.access dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/management/snmp.acl -> /etc/java-8-openjdk/management/snmp.acl dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/flavormap.properties -> /etc/java-8-openjdk/flavormap.properties dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/psfont.properties.ja -> /etc/java-8-openjdk/psfont.properties.ja dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/content-types.properties -> /etc/java-8-openjdk/content-types.properties dangling: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/logging.properties -> /etc/java-8-openjdk/logging.properties dangling: /usr/lib/jvm/java-17-openjdk-amd64/lib/libatk-wrapper.so -> ../../../x86_64-linux-gnu/jni/libatk-wrapper.so dangling: /usr/lib/pymodules/python2.7/GnuPGInterface.py -> /usr/share/pyshared/GnuPGInterface.py dangling: /usr/lib/pymodules/python2.7/GnuPGInterface-0.3.2.egg-info -> /usr/share/pyshared/GnuPGInterface-0.3.2.egg-info dangling: /usr/lib/debug/usr/lib/jvm/java-1.8.0-openjdk-amd64 -> java-8-openjdk-amd64 dangling: /usr/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld/ld64 -> ../../../../../bin/rust-lld dangling: /usr/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld/ld -> ../../../../../bin/rust-lld dangling: /usr/lib/ruby/2.7.0/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf -> ../../../../../../../../share/fonts/truetype/lato/Lato-LightItalic.ttf dangling: /usr/lib/ruby/2.7.0/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf -> ../../../../../../../../share/fonts/truetype/lato/Lato-Italic.ttf dangling: /usr/lib/ruby/2.7.0/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf -> ../../../../../../../../share/fonts/truetype/lato/Lato-Light.ttf dangling: /usr/lib/ruby/2.7.0/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf -> ../../../../../../../../share/fonts/truetype/lato/Lato-Regular.ttf dangling: /usr/lib/ruby/3.1.0/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf -> ../../../../../../../../share/fonts/truetype/lato/Lato-LightItalic.ttf dangling: /usr/lib/ruby/3.1.0/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf -> ../../../../../../../../share/fonts/truetype/lato/Lato-Italic.ttf dangling: /usr/lib/ruby/3.1.0/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf -> ../../../../../../../../share/fonts/truetype/lato/Lato-Light.ttf dangling: /usr/lib/ruby/3.1.0/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf -> ../../../../../../../../share/fonts/truetype/lato/Lato-Regular.ttf dangling: /usr/lib/x86_64-linux-gnu/node_modules -> nodejs dangling: /usr/lib/x86_64-linux-gnu/firebird/3.0/plugins.conf -> /etc/firebird/3.0/plugins.conf dangling: /usr/lib/x86_64-linux-gnu/firebird/3.0/intl/fbintl.conf -> /etc/firebird/3.0/fbintl.conf This machine is old, there are files from 2009 in my home directory or in /etc ; it had seen multiple upgrades that may left some symlinks The very first error I got was /usr/sbin/poweroff & , /sbin/poweroff both linked to molly-guard Regards, -- Bastien