Outdated packages cannot be removed

I had a weird problem that got kind of half solved with help in this post:

claydoh and gus77 were able to help solving most of it.
gus77 wrote a script that would find out packages that have no origin. I ran it, found out a few problems and was able to fix them. Now the only thing that remains is libruby2.7 and libssl1.1 that cannot be uninstalled because neon-settings-2 depends on ruby, which is not going to be installed.
Of course ruby is installed, and libruby3.0 is there, so the problem has to be somewhere else. Same for libssl, libssl3.0 is installed.
How can I fix this? I tried apt-get -f remove libruby2.7, but it doesn’t work either.

Without seeing the actual messaging you get in the terminal, it will be hard to say what is actually happening, or what path to take.

I am guessing these packages are leftovers from the 20-04-22.04 upgrade?
Is it even necessary or worth the effort to remove these?

It might be, but they should still be removable, shouldn’t they? Why aren’t they? If they are leftovers, then some dependency is broken, because newer versions are available, but the dependencies still are linked to the old ones…

Without seeing the complaints apt gives, we can’t say. Maybe the upgrade has another 20.04 leftover that depends on these packages?

sudo apt-get -f remove libruby2.7
[sudo] Passwort für martin:
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 1 as a solution to ruby-xmlrpc:amd64 3
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (1) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 1 as a solution to ruby-xmlrpc:amd64 3
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (2) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 1 as a solution to ruby-xmlrpc:amd64 3
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (3) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 3 as a solution to ruby-xmlrpc:amd64 3
Removing ruby-xmlrpc:amd64 rather than change ruby-webrick:amd64
Investigating (3) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 3 as a solution to libruby3.0:amd64 3
Removing libruby3.0:amd64 rather than change ruby-xmlrpc:amd64
Investigating (4) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 3 as a solution to ruby3.0:amd64 5
Added libruby3.0:amd64 to the remove list
Fixing ruby3.0:amd64 via keep of libruby3.0:amd64
Investigating (4) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 3 as a solution to libruby3.0:amd64 5
Added ruby-xmlrpc:amd64 to the remove list
Fixing libruby3.0:amd64 via keep of ruby-xmlrpc:amd64
Investigating (5) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 3 as a solution to ruby-xmlrpc:amd64 5
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (6) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 5 as a solution to ruby-xmlrpc:amd64 5
Removing ruby-xmlrpc:amd64 rather than change ruby-webrick:amd64
Investigating (6) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 5 as a solution to libruby3.0:amd64 5
Removing libruby3.0:amd64 rather than change ruby-xmlrpc:amd64
Investigating (7) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 5 as a solution to ruby3.0:amd64 5
Removing ruby3.0:amd64 rather than change libruby3.0:amd64
Investigating (8) ruby:amd64 < 1:3.0~exp1 @ii K Ib >
Broken ruby:amd64 Hängt ab von on ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R >
Considering ruby3.0:amd64 5 as a solution to ruby:amd64 110
Added ruby3.0:amd64 to the remove list
Fixing ruby:amd64 via keep of ruby3.0:amd64
Investigating (8) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 5 as a solution to ruby3.0:amd64 110
Added libruby3.0:amd64 to the remove list
Fixing ruby3.0:amd64 via keep of libruby3.0:amd64
Investigating (8) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 5 as a solution to libruby3.0:amd64 110
Added ruby-xmlrpc:amd64 to the remove list
Fixing libruby3.0:amd64 via keep of ruby-xmlrpc:amd64
Investigating (9) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 5 as a solution to ruby-xmlrpc:amd64 110
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (10) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 110 as a solution to ruby-xmlrpc:amd64 110
Removing ruby-xmlrpc:amd64 rather than change ruby-webrick:amd64
Investigating (10) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 110 as a solution to libruby3.0:amd64 110
Removing libruby3.0:amd64 rather than change ruby-xmlrpc:amd64
Investigating (11) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 110 as a solution to ruby3.0:amd64 110
Removing ruby3.0:amd64 rather than change libruby3.0:amd64
Investigating (12) ruby:amd64 < 1:3.0~exp1 @ii K Ib >
Broken ruby:amd64 Hängt ab von on ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R >
Considering ruby3.0:amd64 110 as a solution to ruby:amd64 110
Removing ruby:amd64 rather than change ruby3.0:amd64
Investigating (12) ruby-rubygems:amd64 < 3.3.5-2 @ii K Ib >
Broken ruby-rubygems:amd64 Hängt ab von on ruby:any:any < none @un H >
Considering ruby:amd64 110 as a solution to ruby-rubygems:amd64 5
Removing ruby-rubygems:amd64 rather than change ruby:any:any
Investigating (12) rake:amd64 < 13.0.6-2 @ii K Ib >
Broken rake:amd64 Hängt ab von on ruby:any:any < none @un H >
Considering ruby:amd64 110 as a solution to rake:amd64 3
Removing rake:amd64 rather than change ruby:any:any
Investigating (13) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 110 as a solution to neon-settings-2:amd64 5305
Added ruby:amd64 to the remove list
Fixing neon-settings-2:amd64 via keep of ruby:amd64
Investigating (13) ruby:amd64 < 1:3.0~exp1 @ii K Ib >
Broken ruby:amd64 Hängt ab von on ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R >
Considering ruby3.0:amd64 110 as a solution to ruby:amd64 5305
Added ruby3.0:amd64 to the remove list
Broken ruby:amd64 Hängt ab von on ruby-rubygems:amd64 < 3.3.5-2 @ii R >
Considering ruby-rubygems:amd64 110 as a solution to ruby:amd64 5305
Added ruby-rubygems:amd64 to the remove list
Fixing ruby:amd64 via keep of ruby3.0:amd64
Fixing ruby:amd64 via keep of ruby-rubygems:amd64
Investigating (13) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 110 as a solution to ruby3.0:amd64 5305
Added libruby3.0:amd64 to the remove list
Fixing ruby3.0:amd64 via keep of libruby3.0:amd64
Investigating (13) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on rake:amd64 < 13.0.6-2 @ii R > (>= 10.4.2)
Considering rake:amd64 110 as a solution to libruby3.0:amd64 5305
Added rake:amd64 to the remove list
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 110 as a solution to libruby3.0:amd64 5305
Added ruby-xmlrpc:amd64 to the remove list
Fixing libruby3.0:amd64 via keep of rake:amd64
Fixing libruby3.0:amd64 via keep of ruby-xmlrpc:amd64
Investigating (14) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 110 as a solution to ruby-xmlrpc:amd64 5305
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (15) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 5305 as a solution to ruby-xmlrpc:amd64 5305
Removing ruby-xmlrpc:amd64 rather than change ruby-webrick:amd64
Investigating (15) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 5305 as a solution to libruby3.0:amd64 5305
Removing libruby3.0:amd64 rather than change ruby-xmlrpc:amd64
Investigating (16) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 5305 as a solution to ruby3.0:amd64 5305
Removing ruby3.0:amd64 rather than change libruby3.0:amd64
Investigating (17) ruby:amd64 < 1:3.0~exp1 @ii K Ib >
Broken ruby:amd64 Hängt ab von on ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R >
Considering ruby3.0:amd64 5305 as a solution to ruby:amd64 5305
Removing ruby:amd64 rather than change ruby3.0:amd64
Investigating (17) ruby-rubygems:amd64 < 3.3.5-2 @ii K Ib >
Broken ruby-rubygems:amd64 Hängt ab von on ruby:any:any < none @un H >
Considering ruby:amd64 5305 as a solution to ruby-rubygems:amd64 5305
Removing ruby-rubygems:amd64 rather than change ruby:any:any
Investigating (17) rake:amd64 < 13.0.6-2 @ii K Ib >
Broken rake:amd64 Hängt ab von on ruby:any:any < none @un H >
Considering ruby:amd64 5305 as a solution to rake:amd64 5305
Removing rake:amd64 rather than change ruby:any:any
Investigating (18) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 5305 as a solution to neon-settings-2:amd64 5305
Removing neon-settings-2:amd64 rather than change ruby:amd64
Investigating (19) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 5305 as a solution to neon-settings-2:amd64 5305
Removing neon-settings-2:amd64 rather than change ruby:amd64
Done
And then it says it’s impossible to resolve (in German, that’s why I haven’t included it… :wink:

And this one’s libssl1.1:
sudo apt-get -f remove libssl1.1
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libruby2.7:amd64 < 2.7.0-5ubuntu1.7 @ii K Ib >
Broken libruby2.7:amd64 Hängt ab von on libssl1.1:amd64 < 1.1.1f-1ubuntu2.16 @ii pR > (>= 1.1.1)
Considering libssl1.1:amd64 10000 as a solution to libruby2.7:amd64 -1
Removing libruby2.7:amd64 rather than change libssl1.1:amd64
Investigating (1) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 1 as a solution to ruby-xmlrpc:amd64 6
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (2) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 1 as a solution to ruby-xmlrpc:amd64 6
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (3) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 6 as a solution to ruby-xmlrpc:amd64 6
Removing ruby-xmlrpc:amd64 rather than change ruby-webrick:amd64
Investigating (3) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 6 as a solution to libruby3.0:amd64 6
Removing libruby3.0:amd64 rather than change ruby-xmlrpc:amd64
Investigating (3) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 6 as a solution to ruby3.0:amd64 5
Removing ruby3.0:amd64 rather than change libruby3.0:amd64
Investigating (4) ruby:amd64 < 1:3.0~exp1 @ii K Ib >
Broken ruby:amd64 Hängt ab von on ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R >
Considering ruby3.0:amd64 6 as a solution to ruby:amd64 110
Added ruby3.0:amd64 to the remove list
Fixing ruby:amd64 via keep of ruby3.0:amd64
Investigating (4) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 6 as a solution to ruby3.0:amd64 110
Added libruby3.0:amd64 to the remove list
Fixing ruby3.0:amd64 via keep of libruby3.0:amd64
Investigating (5) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 6 as a solution to libruby3.0:amd64 110
Added ruby-xmlrpc:amd64 to the remove list
Fixing libruby3.0:amd64 via keep of ruby-xmlrpc:amd64
Investigating (6) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 6 as a solution to ruby-xmlrpc:amd64 110
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (7) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 110 as a solution to ruby-xmlrpc:amd64 110
Removing ruby-xmlrpc:amd64 rather than change ruby-webrick:amd64
Investigating (7) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 110 as a solution to libruby3.0:amd64 110
Removing libruby3.0:amd64 rather than change ruby-xmlrpc:amd64
Investigating (7) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 110 as a solution to ruby3.0:amd64 110
Removing ruby3.0:amd64 rather than change libruby3.0:amd64
Investigating (8) ruby:amd64 < 1:3.0~exp1 @ii K Ib >
Broken ruby:amd64 Hängt ab von on ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R >
Considering ruby3.0:amd64 110 as a solution to ruby:amd64 110
Removing ruby:amd64 rather than change ruby3.0:amd64
Investigating (8) rake:amd64 < 13.0.6-2 @ii K Ib >
Broken rake:amd64 Hängt ab von on ruby:any:any < none @un H >
Considering ruby:amd64 110 as a solution to rake:amd64 6
Removing rake:amd64 rather than change ruby:any:any
Investigating (8) ruby-rubygems:amd64 < 3.3.5-2 @ii K Ib >
Broken ruby-rubygems:amd64 Hängt ab von on ruby:any:any < none @un H >
Considering ruby:amd64 110 as a solution to ruby-rubygems:amd64 5
Removing ruby-rubygems:amd64 rather than change ruby:any:any
Investigating (9) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 110 as a solution to neon-settings-2:amd64 5305
Added ruby:amd64 to the remove list
Fixing neon-settings-2:amd64 via keep of ruby:amd64
Investigating (9) ruby:amd64 < 1:3.0~exp1 @ii K Ib >
Broken ruby:amd64 Hängt ab von on ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R >
Considering ruby3.0:amd64 110 as a solution to ruby:amd64 5305
Added ruby3.0:amd64 to the remove list
Broken ruby:amd64 Hängt ab von on ruby-rubygems:amd64 < 3.3.5-2 @ii R >
Considering ruby-rubygems:amd64 110 as a solution to ruby:amd64 5305
Added ruby-rubygems:amd64 to the remove list
Fixing ruby:amd64 via keep of ruby3.0:amd64
Fixing ruby:amd64 via keep of ruby-rubygems:amd64
Investigating (9) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 110 as a solution to ruby3.0:amd64 5305
Added libruby3.0:amd64 to the remove list
Fixing ruby3.0:amd64 via keep of libruby3.0:amd64
Investigating (10) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on rake:amd64 < 13.0.6-2 @ii R > (>= 10.4.2)
Considering rake:amd64 110 as a solution to libruby3.0:amd64 5305
Added rake:amd64 to the remove list
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 110 as a solution to libruby3.0:amd64 5305
Added ruby-xmlrpc:amd64 to the remove list
Fixing libruby3.0:amd64 via keep of rake:amd64
Fixing libruby3.0:amd64 via keep of ruby-xmlrpc:amd64
Investigating (11) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 110 as a solution to ruby-xmlrpc:amd64 5305
Added ruby-webrick:amd64 to the remove list
Fixing ruby-xmlrpc:amd64 via keep of ruby-webrick:amd64
Investigating (12) ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii K Ib >
Broken ruby-xmlrpc:amd64 Hängt ab von on ruby-webrick:amd64 < none | 1.7.0-3 @un uH >
Considering ruby-webrick:amd64 5305 as a solution to ruby-xmlrpc:amd64 5305
Removing ruby-xmlrpc:amd64 rather than change ruby-webrick:amd64
Investigating (12) libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken libruby3.0:amd64 Hängt ab von on ruby-xmlrpc:amd64 < 0.3.2-1ubuntu0.1 @ii R > (>= 0.3.0~)
Considering ruby-xmlrpc:amd64 5305 as a solution to libruby3.0:amd64 5305
Removing libruby3.0:amd64 rather than change ruby-xmlrpc:amd64
Investigating (12) ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii K Ib >
Broken ruby3.0:amd64 Hängt ab von on libruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R > (>= 3.0.0~preview1)
Considering libruby3.0:amd64 5305 as a solution to ruby3.0:amd64 5305
Removing ruby3.0:amd64 rather than change libruby3.0:amd64
Investigating (13) ruby:amd64 < 1:3.0~exp1 @ii K Ib >
Broken ruby:amd64 Hängt ab von on ruby3.0:amd64 < 3.0.2-7ubuntu2.4 @ii R >
Considering ruby3.0:amd64 5305 as a solution to ruby:amd64 5305
Removing ruby:amd64 rather than change ruby3.0:amd64
Investigating (13) rake:amd64 < 13.0.6-2 @ii K Ib >
Broken rake:amd64 Hängt ab von on ruby:any:any < none @un H >
Considering ruby:amd64 5305 as a solution to rake:amd64 5305
Removing rake:amd64 rather than change ruby:any:any
Investigating (13) ruby-rubygems:amd64 < 3.3.5-2 @ii K Ib >
Broken ruby-rubygems:amd64 Hängt ab von on ruby:any:any < none @un H >
Considering ruby:amd64 5305 as a solution to ruby-rubygems:amd64 5305
Removing ruby-rubygems:amd64 rather than change ruby:any:any
Investigating (14) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 5305 as a solution to neon-settings-2:amd64 5305
Removing neon-settings-2:amd64 rather than change ruby:amd64
Investigating (15) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 5305 as a solution to neon-settings-2:amd64 5305
Removing neon-settings-2:amd64 rather than change ruby:amd64
Investigating (16) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 5305 as a solution to neon-settings-2:amd64 5305
Removing neon-settings-2:amd64 rather than change ruby:amd64
Investigating (17) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 5305 as a solution to neon-settings-2:amd64 5305
Removing neon-settings-2:amd64 rather than change ruby:amd64
Investigating (18) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 5305 as a solution to neon-settings-2:amd64 5305
Removing neon-settings-2:amd64 rather than change ruby:amd64
Investigating (19) neon-settings-2:amd64 < 0.4+p22.04+vrelease+git20231004.1900 @ii K Ib >
Broken neon-settings-2:amd64 Hängt ab von on ruby:amd64 < 1:3.0~exp1 @ii R >
Considering ruby:amd64 5305 as a solution to neon-settings-2:amd64 5305
Removing neon-settings-2:amd64 rather than change ruby:amd64
Done
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
neon-settings-2 : Hängt ab von: ruby soll aber nicht installiert werden
E: Fehler: Unterbrechungen durch pkgProblemResolver::Resolve hervorgerufen; dies könnte durch zurückgehaltene Pakete verursacht worden sein.

Try without using -f (“–fix-missing”)

But neon-settings-2 requires libruby3.0
But you have the old libruby2,7 for some reason, and the old libssl1.1 also depends on the old libruby2.7.

What happens when you try to install libruby3.0, the correct version for ubuntu 22.04?

I don’t know how deep this will go, to be honest. Or what will fix it. I am surprised this didn’t rear its head last summer (2022).

The funny thing is, libruby3.0 already is installed, as is libssl3…
I also tried reinstalling libruby3.0, but no effect.
Also, ruby and other packages correctly depend on libruby3.0, and neon-settings2 depends on ruby, so there shouldn’t be any problem in removing libruby2.7 and libssl1.1…

I wonder whether I should try apt-get remove --force-yes libruby2.7…

But you may have other tidbits that depend on these things as well.

apt-cache rdepends --installed  libruby2.7
apt-cache rdepends --installed  libssl1.1

Worth doing a little digging before ripping things out

Well, no reverse depends on libruby 2.7, and only libruby2.7 as a reverse dependent on libssl1.1

I went ahead and tried --force-yes on libruby2.7, but it still wouldn’t let me (because --force-yes is outdated I think).

At this point I might just let it be, at least until the next version of Neon.

The reason why I’m wondering is that weird behavior of refusing to get removed. Could that be a sign of a package that has been tampered with? Like a virus or something?

I had the same issue, this is what worked for me, since pkcon neither apt would let me remove it:
First I made sure that nothing depends on libruby2.7 with apt-cache rdepends --installed libruby2.7
Then I ran sudo dpkg --remove --force-depends libruby2.7.
This removed libruby2.7 but it left me with one broken package.
I fixed it by running sudo apt --fix-broken install
It installed the missing ruby-webrick.
Then I was also able to finally remove libssl1.1 since spotify-client package which was the only reverse dependency can now use libssl3 as they are listed as alternatives. Hopefully, this helps you to resolve the issue.

Thanks a lot, that did the trick!