Здравствуйте, не получается сделать upgrade c 18.04.6 LTS на 20 LTS
Выполняю по пунктам:
1. sudo apt update
2. sudo apt upgrade (Все пакеты из списка обновляются без проблем)
3. sudo reboot
4. sudo apt --purge autoremove
5. sudo do-release-upgrade -m server
6. Процедура с подтверждением и заменой репозитория bionic к focal проходит без проблем.
Do you want to start the upgrade?
9 installed packages are no longer supported by Canonical. You can
still get support from the community.
16 packages are going to be removed. 141 new packages are going to be
installed. 607 packages are going to be upgraded.
You have to download a total of 524 M. This download will take about
1 hour 6 minutes with a 1Mbit DSL connection and about 20 hours with
a 56k modem.
Fetching and installing the upgrade can take several hours. Once the
download has finished, the process cannot be canceled.
Continue [yN] Details [d]y
Upgrading
Fetched 0 B in 0s (0 B/s)
MarkInstall libc6:amd64 < 2.27-3ubuntu1.6 -> 2.31-0ubuntu9.9 @ii umU Ib > FU=1
Installing libgcc-s1 as Depends of libc6
MarkInstall libgcc-s1:amd64 < none -> 10.3.0-1ubuntu1~20.04 [member=21573]uN[/member] uN Ib > FU=0
Installing gcc-10-base as Depends of libgcc-s1
MarkInstall gcc-10-base:amd64 < none -> 10.3.0-1ubuntu1~20.04 [member=21573]uN[/member] uN > FU=0
Installing libcrypt1 as Depends of libc6
MarkInstall libcrypt1:amd64 < none -> 1:4.4.10-10ubuntu4 [member=21573]uN[/member] uN > FU=0
MarkInstall locales:amd64 < 2.27-3ubuntu1.6 -> 2.31-0ubuntu9.9 @ii umU Ib > FU=0
Installing libc-bin as Depends of locales
MarkInstall libc-bin:amd64 < 2.27-3ubuntu1.6 -> 2.31-0ubuntu9.9 @ii umU > FU=0
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Upgrading
Fetched 0 B in 0s (0 B/s)
Preconfiguring packages ...
Preconfiguring packages ...
Preconfiguring packages ...
Preconfiguring packages ...
Selecting previously unselected package gcc-10-base:amd64.
(Reading database ... 139823 files and directories currently installed.)
Preparing to unpack .../gcc-10-base_10.3.0-1ubuntu1~20.04_amd64.deb ...
Unpacking gcc-10-base:amd64 (10.3.0-1ubuntu1~20.04) ...
Progress: [ 5%]
Setting up gcc-10-base:amd64 (10.3.0-1ubuntu1~20.04) ...
Progress: [ 11%]
Selecting previously unselected package libgcc-s1:amd64.
(Reading database ... 139828 files and directories currently installed.)
Preparing to unpack .../libgcc-s1_10.3.0-1ubuntu1~20.04_amd64.deb ...
Progress: [ 16%]
Unpacking libgcc-s1:amd64 (10.3.0-1ubuntu1~20.04) ...
Replacing files in old package libgcc1:amd64 (1:8.4.0-1ubuntu1~18.04) ...
Progress: [ 22%]
Setting up libgcc-s1:amd64 (10.3.0-1ubuntu1~20.04) ...
Progress: [ 27%]
(Reading database ... 139830 files and directories currently installed.)
Preparing to unpack .../locales_2.31-0ubuntu9.9_all.deb ...
Unpacking locales (2.31-0ubuntu9.9) over (2.27-3ubuntu1.6) ...
Progress: [ 33%]
Preparing to unpack .../libc6_2.31-0ubuntu9.9_amd64.deb ...
Progress: [ 38%]
Checking for services that may need to be restarted...
Checking init scripts...
Checking for services that may need to be restarted...
Checking init scripts...
Stopping some services possibly affected by the upgrade (will be restarted later):
cron: stopping...done.
Проблемы начинаются при распаковке libc6 c 2.27-3ubuntu1.6 на 2.31-0ubuntu9.9Unpacking libc6:amd64 (2.31-0ubuntu9.9) over (2.27-3ubuntu1.6) ...
Progress: [ 44%]
/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
dpkg: error while cleaning up:
rm command for cleanup subprocess returned error exit status 127
/usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
dpkg: error processing archive /var/cache/apt/archives/libcrypt1_1%3a4.4.10-10ubuntu4_amd64.deb (--unpack):
rm command for cleanup subprocess returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/libcrypt1_1%3a4.4.10-10ubuntu4_amd64.deb
Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1)
Could not install the upgrades
The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).
Please report this bug in a browser at
http://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+filebug
and attach the files in /var/log/dist-upgrade/ to the bug report.
E:Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: dependency problems prevent configuration of libc6:amd64:
libc6:amd64 depends on libcrypt1 (>= 1:4.4.10-10ubuntu4); however:
Package libcrypt1 is not installed.
dpkg: error processing package libc6:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of locales:
locales depends on libc-bin (>> 2.31); however:
Version of libc-bin on system is 2.27-3ubuntu1.6.
dpkg: error processing package locales (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent processing triggers for man-db:
man-db depends on libc6 (>= 2.17); however:
Package libc6:amd64 is not configured yet.
dpkg: error processing package man-db (--configure):
dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for libc-bin:
libc-bin depends on libc6 (>> 2.27); however:
Package libc6:amd64 is not configured yet.
libc-bin depends on libc6 (<< 2.28); however:
Version of libc6:amd64 on system is 2.31-0ubuntu9.9.
dpkg: error processing package libc-bin (--configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
libc6:amd64
locales
man-db
libc-bin
Upgrade incomplete
The upgrade has partially completed but there were errors during the
upgrade process.
To continue please press [ENTER]
Нашел решение какого то бага, пробовал downgrade всех пакетов с версией "2.27-3ubuntu1.6" на "2.27-3ubuntu1", но это не помогло, т.к. при выполнении "do-release-upgrade" требуется обновить в ОС все имеющиеся пакеты и ОС снова обновляет их с "2.27-3ubuntu1" на "2.27-3ubuntu1.6"
dpkg -l | grep 2.27-3ubuntu1
ii libc-bin 2.27-3ubuntu1 amd64 GNU C Library: Binaries
ii libc-dev-bin 2.27-3ubuntu1 amd64 GNU C Library: Development binaries
ii libc6:amd64 2.27-3ubuntu1 amd64 GNU C Library: Shared libraries
ii locales 2.27-3ubuntu1 all GNU C Library: National Language (locale) data [support]
ii multiarch-support 2.27-3ubuntu1 amd64 Transitional package to ensure multiarch compatibility
Также был какой то баг в 18.04 при выполнении (apt-get -f install) и отсутствующим файлом библиотеки libcrypt, но я проверил все норм:
# locate libcrypt.so.1
/lib/x86_64-linux-gnu/libcrypt.so.1
# dpkg -S /lib/x86_64-linux-gnu/libcrypt.so.1
libc6:amd64: /lib/x86_64-linux-gnu/libcrypt.so.1
# ls -la /lib/x86_64-linux-gnu/libcrypt.so.1
lrwxrwxrwx 1 root root 16 May 3 2022 /lib/x86_64-linux-gnu/libcrypt.so.1 -> libcrypt-2.27.so
# realpath /lib/x86_64-linux-gnu/libcrypt.so.1
/lib/x86_64-linux-gnu/libcrypt-2.27.so
# md5sum /lib/x86_64-linux-gnu/libcrypt-2.27.so
18c7371a346dbfbb2398e79710851e35 /lib/x86_64-linux-gnu/libcrypt-2.27.so
# md5sum /lib/x86_64-linux-gnu/libcrypt.so.1
18c7371a346dbfbb2398e79710851e35 /lib/x86_64-linux-gnu/libcrypt.so.1
Как решить проблему при распаковке libc6:amd64,locales,man-db,libc-bin?Буду рад любой рекомендации.