There seems to be a lot of people hitting this:

* https://forums.debian.net/viewtopic.php?f=17&t=152419
* 
https://www.reddit.com/r/debian/comments/qcwpfr/sudo_is_completely_broken_after_i_accidentally/

Thus I am posting this to clarify things:

Release notes of Debian 11 (bullseye)
https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#upgrade-to-debian-oldrelease

> 4.2.1. Upgrade to Debian 10 (buster)
> Direct upgrades from Debian releases older than 10 (buster) are not 
> supported. Display your Debian version with:
>   $ cat /etc/debian_version
> Please follow the instructions in the Release Notes for Debian 10 to upgrade 
> to Debian 10 first.

This means that people running Debian 9 (stretch) can't upgrade to
Debian 11 (bullseye). If they attempt to do so, they will run into
this libcrypt.1 issue.

Also people running Debian 10 (buster) can't upgrade to upcoming
Debian 12 (bookworm). . If they attempt to do so, they will also run
into this libcrypt.1 issue.


These are the steps I use in my CI scripts to automate upgrade from
Stretch to Sid or Buster to Sid:

.test-enable-sid-repos: &test-enable-sid-repos
  # Replace any old repos with just Sid
  - echo 'deb http://deb.debian.org/debian sid main' > /etc/apt/sources.list
  # Upgrade minimal stack first
  - apt-get update
  # Next step will fail on https://bugs.debian.org/993755
  #   /usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot
  #     open shared object file: No such file or directory
  #   dpkg: error processing package libc6:amd64 (--configure):
  - apt-get install -y apt || true
  # Apply workaround
  - cd $(mktemp -d)
  - apt -y download libcrypt1
  - dpkg-deb -x libcrypt1_*.deb .
  - cp -ra lib/* /lib/
  - find /lib/*/libcrypt.* -ls
  - apt -y --fix-broken install
  # Complete upgrade of minimal stack
  - apt-get install -y apt


Live example at
https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/22



$ cp -av lib/x86_64-linux-gnu/* /lib/x86_64-linux-gnu/
$ apt -y --fix-broken install

Reply via email to