I'm not familiar with proftpd so take what I say about it with a grain of salt and back everything up of value.
I never do in-place upgrades because the risk factor is too high. The OS is tested to do the upgrade but not the scenario of every package that's available....and it would be exceptionally rare for anyone running a server without additional packages. Therefore I have always considered doing an in-place upgrade too risky to my services going dark. However, in a virtual environment, I have the luxury of running two servers at the same time (old vs new) but that may not be the case with home users with only one machine running a bare-metal install. In a bare-metal install scenario, there will be much more downtime, especially if there are issues with applications / data / configuration (regardless if doing in-place upgrade or fresh re-install).
If you can, I would backup the data, re-format and install a fresh 22.04. Then install the software, configure it and restore the data.
But if that is not possible, then I'd suppose the next step would be to clean the proftpd software. Most everything in what you posted is just a cascade of dependency problems (one thing needs the other thing installed before the next can be installed). The crux of the cascade dependency seems to be proftpd-core.
On my 20.04.5 LTS server, I did not find a proftpd-core package. There is proftpd-basic 1.3.6c-2
On my 22.04.1 LTS server, I found proftpd-basic 1.3.7c+dfsg-1build1 but it depends on proftpd-core, proftpd-mod-wrap, proftpd-mod-crypto (which we saw in the cascade effect of errors)
I would not be surprised if there were changes in the configuration files (or other required libraries) of the old to new version so step #1 would be to remove all traces of the old package if possible.
You can try the below commands but I don't know how effective they will be at cleaning an installation from a different OS version since the current OS only knows about the new packages.
Code:
sudo apt remove proftpd-mod-crypto
sudo apt remove proftpd-mod-wrap
sudo apt remove proftpd-core
sudo apt remove proftpd-basic
sudo apt autoremove
sudo apt purge proftpd-mod-crypto
sudo apt purge proftpd-mod-wrap
sudo apt purge proftpd-core
sudo apt purge proftpd-basic
The next step I would do would be to manually find leftover remnants such as configuration files that are not part of the new install.
I am not familiar with that package so have a look around for files that were left behind and move or delete them.
The next step would be to try and install the application. If everything was purged, it should install just fine...but there are a LOT of dependencies and differences of the old version on 20.04 and new version on 22.04 which might make this extremely difficult to clear.
Code:
sudo apt install proftpd-basic
LHammonds
Bookmarks