[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No ssh service after upgrade from trixie Sid to forky Sid





On Fri, Sep 12, 2025 at 3:25 PM Thomas Schmitt <scdbackup@gmx.net> wrote:

it seems the upgrade is stuck with this conflict
-----------------------------------------------------------------------
dpkg: error processing archive /var/cache/apt/archives/gnome-themes-extra-data_3.28-4_all.deb (--unpack):
 trying to overwrite '/usr/share/themes/Adwaita/gtk-2.0/apps.rc', which is also in package gnome-themes-standard-data (3.22.3-1)
-----------------------------------------------------------------------

How would i get
  apt --fix-broken install
over this obstacle.

Can i remove the wish for gnome-themes-extra-data_3.28-4_all.deb ?


Long story:
=======================================================================

Max Nikulin wrote:
> I hope, you have checked for obvious issues like no free space on /tmp
> tmpfs.

$ df /tmp
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/sda1       31815696 16821324  13352696  56% /


> Just an idea to consider: "apt install --reinstall" either for libssl or for
> openssh-server.

Might be worth to try (if i can get it to run).

While looking for "error" in the upgrade messages, i find
-----------------------------------------------------------------------
...
Preparing to unpack .../openssh-server_1%3a10.0p1-7_amd64.deb ...
Adding 'diversion of /usr/sbin/sshd to /usr/sbin/sshd.session-split by openssh-client'
systemctl: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory
Unpacking openssh-server (1:10.0p1-7) over (1:9.3p2-1) ...
Selecting previously unselected package libssl3t64:amd64.
Preparing to unpack .../libssl3t64_3.5.1-1_amd64.deb ...
Unpacking libssl3t64:amd64 (3.5.1-1) ...
Selecting previously unselected package openssl-provider-legacy.
Preparing to unpack .../openssl-provider-legacy_3.5.1-1_amd64.deb ...
Unpacking openssl-provider-legacy (3.5.1-1) ...
...
-----------------------------------------------------------------------

Looking for libcrypto.so :
-----------------------------------------------------------------------
# find /usr -name 'libcrypto.so*'
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
/usr/lib/x86_64-linux-gnu/libcrypto.so
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2
/usr/lib/x86_64-linux-gnu/libcrypto.so.3
# ls -l /usr/lib/x86_64-linux-gnu/libcrypto.so.3
-rw-r--r-- 1 root root 6505024 Jul 12 18:49 /usr/lib/x86_64-linux-gnu/libcrypto.so.3
# ls -lc /usr/lib/x86_64-linux-gnu/libcrypto.so.3
-rw-r--r-- 1 root root 6505024 Sep 11 21:11 /usr/lib/x86_64-linux-gnu/libcrypto.so.3
# ls -lc /usr/lib/x86_64-linux-gnu/libcrypto.so
lrwxrwxrwx 1 root root 14 Sep 11 21:22 /usr/lib/x86_64-linux-gnu/libcrypto.so -> libcrypto.so.3
-----------------------------------------------------------------------

Strangely, there is no other mentioning of "libcrypto" in the messages.
But it is much younger than the old Sid and its inode was modified
during the upgrade attempt.

libcrypto (and libssl) are part of the OpenSSL package. However, you might have LibreSSL, which hijacks the same library names, and could be causing the problem.

If this is an OpenSSL problem, I would simply `apt-get install --reinstall openssl openssl-dev`. I don't know how to fix a LibreSSL problem.
 
So i run:
-----------------------------------------------------------------------
# apt install --reinstall openssh-server | tee -i .../C50911_reinstall_openssh_server_log

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.
Unsatisfied dependencies:
 gnome-themes-extra : Depends: gnome-themes-extra-data (>= 3.28-4) but it is not going to be installed
Error: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Error: The following information from --solver 3.0 may provide additional context:
   Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
-----------------------------------------------------------------------

Regrettably the proposed command does not succeed:
-----------------------------------------------------------------------
# apt --fix-broken install | tee -i .../C50911_fix_broken_install_log
...
Installing dependencies:
  gnome-themes-extra-data
Summary:
  Upgrading: 0, Installing: 1, Removing: 0, Not Upgrading: 0
  1977 not fully installed or removed.
  Download size: 0 B / 571 kB
  Space needed: 1,020 kB / 13.7 GB available

 Continue? [Y/n] y
...
Preparing to unpack .../gnome-themes-extra-data_3.28-4_all.deb ...
Unpacking gnome-themes-extra-data (3.28-4) ...
dpkg: error processing archive /var/cache/apt/archives/gnome-themes-extra-data_3.28-4_all.deb (--unpack):
 trying to overwrite '/usr/share/themes/Adwaita/gtk-2.0/apps.rc', which is also in package gnome-themes-standard-data (3.22.3-1)
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-themes-extra-data_3.28-4_all.deb
Error: Sub-process /usr/bin/dpkg returned an error code (1)
#
-----------------------------------------------------------------------

So how to get over this error ?


I wrote:
> > My usual way to upgrade was
> >   apt-get update
> >   apt-get dist-upgrade

mick.crane wrote:
> Without doing that RTFM I don't know what is the difference between
> "upgrade" and "dist-upgrade".

man apt-get says:

   dist-upgrade in addition to performing the function of upgrade, also
   intelligently handles changing dependencies with new versions of
   packages;

But the second attempt which upgraded to trixie was done with
  apt full-upgrade
as described in
  https://www.debian.org/releases/trixie/release-notes/upgrading.en.html
No significant difference in the outcome.

Jeff 

Reply to: