Hardware: Lenovo ThinkServer YunoHost version: 4.4.2.14 (stable). I have access to my server : Through SSH & through the webadmin Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : No
Error from Admin:
Running migration 0021_migrate_to_bullseye…
Starting migration to Bullseye
Patching the sources.lists…
Fetching available upgrades for system packages…
Applying patch to workaround conflict issue…
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists…
Building dependency tree…
Reading state information…
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.5 (>= 1:10.5.15-0+deb11u1) but it is not going to be installed
mariadb-server-10.4 : Depends: mariadb-client-10.4 (>= 1:10.4.13+maria~stretch) but it is not installable
nslcd-utils : Depends: python:any (>= 2.6.6-7~)
python-asn1crypto : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-enum34 : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-ipaddress : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
python-publicsuffix : Depends: python:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
Migration 0021_migrate_to_bullseye did not complete, aborting. Error: Failed to reinstall mariadb-common ?
apt install --fix-broken
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
cpp-8 dh-python fdisk iproute libasan5 libisl19 libkyotocabinet16v5 libmpdec2 libperl5.28 libprocps7 libpython2-dev libpython2-stdlib libpython2.7
libpython2.7-dev libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib libreadline5 perl-modules-5.28 python-pkg-resources python-setuptools
python-six python2 python2-dev python2-minimal python2.7-dev python3-asn1crypto python3-entrypoints python3.7-minimal
Use ‘apt autoremove’ to remove them.
The following additional packages will be installed:
libsnappy1v5 mariadb-client-10.5 mariadb-server mariadb-server-10.5 mariadb-server-core-10.5 nslcd-utils
Suggested packages:
mariadb-test
The following packages will be REMOVED:
mariadb-server-10.4 mariadb-server-core-10.4 python-asn1crypto python-enum34 python-ipaddress python-publicsuffix
The following NEW packages will be installed:
mariadb-client-10.5 mariadb-server-10.5 mariadb-server-core-10.5
The following packages will be upgraded:
libsnappy1v5 mariadb-server nslcd-utils
3 upgraded, 3 newly installed, 6 to remove and 525 not upgraded.
1 not fully installed or removed.
Need to get 0 B/12.6 MB of archives.
After this operation, 26.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs… Done
Preconfiguring packages …
(Reading database … 68693 files and directories currently installed.)
Preparing to unpack …/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb …
Unpacking mariadb-client-10.5 (1:10.5.15-0+deb11u1) …
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb (–unpack):
trying to overwrite ‘/usr/bin/mariadb-show’, which is also in package mariadb-server-10.4 1:10.4.13+maria~stretch
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg --configure -a
dpkg: dependency problems prevent configuration of mariadb-client:
mariadb-client depends on mariadb-client-10.5 (>= 1:10.5.15-0+deb11u1); however:
Package mariadb-client-10.5 is not installed.
dpkg: error processing package mariadb-client (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent processing triggers for mariadb-server-10.4:
mariadb-server-10.4 depends on mariadb-client-10.4 (>= 1:10.4.13+maria~stretch); however:
Package mariadb-client-10.4 is not installed.
dpkg: error processing package mariadb-server-10.4 (–configure):
dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
mariadb-client
mariadb-server-10.4
# apt remove python-asn1crypto python-enum34 python-ipaddress python-publicsuffix --dry-run
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.5 (>= 1:10.5.15-0+deb11u1) but it is not going to be installed
mariadb-server-10.4 : Depends: mariadb-client-10.4 (>= 1:10.4.13+maria~stretch) but it is not installable
nslcd-utils : Depends: python:any (>= 2.6.6-7~)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@shinevar:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
cpp-8 dh-python fdisk iproute libasan5 libisl19 libkyotocabinet16v5 libmpdec2 libperl5.28 libprocps7 libpython2-dev
libpython2-stdlib libpython2.7 libpython2.7-dev libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib
libreadline5 perl-modules-5.28 python-pkg-resources python-setuptools python-six python2 python2-dev python2-minimal
python2.7-dev python3-asn1crypto python3-entrypoints python3.7-minimal
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
libsnappy1v5 mariadb-client-10.5 mariadb-server mariadb-server-10.5 mariadb-server-core-10.5 nslcd-utils
Suggested packages:
mariadb-test
The following packages will be REMOVED:
mariadb-server-10.4 mariadb-server-core-10.4 python-asn1crypto python-enum34 python-ipaddress python-publicsuffix
The following NEW packages will be installed:
mariadb-client-10.5 mariadb-server-10.5 mariadb-server-core-10.5
The following packages will be upgraded:
libsnappy1v5 mariadb-server nslcd-utils
3 upgraded, 3 newly installed, 6 to remove and 525 not upgraded.
1 not fully installed or removed.
Need to get 0 B/12.6 MB of archives.
After this operation, 26.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 68693 files and directories currently installed.)
Preparing to unpack .../mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb ...
Unpacking mariadb-client-10.5 (1:10.5.15-0+deb11u1) ...
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb (--unpack):
trying to overwrite '/usr/bin/mariadb-show', which is also in package mariadb-server-10.4 1:10.4.13+maria~stretch
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Here is the result:
apt remove -o Dpkg::Options::=“–force-overwrite” python-asn1crypto python-enum34 python-ipaddress python-publicsuffix
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.5 (>= 1:10.5.15-0+deb11u1) but it is not going to be installed
mariadb-server-10.4 : Depends: mariadb-client-10.4 (>= 1:10.4.13+maria~stretch) but it is not installable
nslcd-utils : Depends: python:any (>= 2.6.6-7~)
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
Then:
apt --fix-broken install
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Correcting dependencies… Done
The following packages were automatically installed and are no longer required:
cpp-8 dh-python fdisk iproute libasan5 libisl19 libkyotocabinet16v5 libmpdec2 libperl5.28 libprocps7 libpython2-dev
libpython2-stdlib libpython2.7 libpython2.7-dev libpython3.7 libpython3.7-dev libpython3.7-minimal libpython3.7-stdlib
libreadline5 perl-modules-5.28 python-pkg-resources python-setuptools python-six python2 python2-dev python2-minimal
python2.7-dev python3-asn1crypto python3-entrypoints python3.7-minimal
Use ‘apt autoremove’ to remove them.
The following additional packages will be installed:
libsnappy1v5 mariadb-client-10.5 mariadb-server mariadb-server-10.5 mariadb-server-core-10.5 nslcd-utils
Suggested packages:
mariadb-test
The following packages will be REMOVED:
mariadb-server-10.4 mariadb-server-core-10.4 python-asn1crypto python-enum34 python-ipaddress python-publicsuffix
The following NEW packages will be installed:
mariadb-client-10.5 mariadb-server-10.5 mariadb-server-core-10.5
The following packages will be upgraded:
libsnappy1v5 mariadb-server nslcd-utils
3 upgraded, 3 newly installed, 6 to remove and 525 not upgraded.
1 not fully installed or removed.
Need to get 0 B/12.6 MB of archives.
After this operation, 26.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs… Done
Preconfiguring packages …
(Reading database … 68693 files and directories currently installed.)
Preparing to unpack …/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb …
Unpacking mariadb-client-10.5 (1:10.5.15-0+deb11u1) …
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb (–unpack):
trying to overwrite ‘/usr/bin/mariadb-show’, which is also in package mariadb-server-10.4 1:10.4.13+maria~stretch
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Need some command to deal with these “unmet dependencies.”
Still not able to migrate. When I try the earlier solutions I get this:
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-client-10.5_1%3a10.5.15-0+deb11u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
How do I stop getting a broken pipe?
Looking for help. May have to back up and install again if not solved. Thanks.
I googled some of the errors and figured that since my system was toast, it couldn’t hurt. Was almost ready to rebuild system when I saw commands to try. I did them and my system was fixed. Then the migration to 11.0.9 worked! Here is what I did for posterity sake: