Reading package lists…
Building dependency tree…
Reading state information…
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-mcrypt : Depends: php7.2-mcrypt but it is not installable
E: Unable to correct problems, you have held broken packages.
What to do now? I just imagined that the php 7.2 upgrade would automatically sort this itself?
What distro and version? Which repo are the updates coming from? I would think the system default repositories would get their packages right…but, if you’ve got third party repos configured, they might not have all of the same packages as the OS repos. You could uninstall php-mcrypt, if it’s not provided by whoever is maintaining your PHP packages and you don’t use it (but it’s pretty commonly used by web apps).
I have the same issue. It is caused because
" php-mcrypt : Depends: php7.2-mcrypt but it is not installable"
there is no php7.2-mcrypt (its been deprecated).
Yah, mcrypt has been deprecated for a while because nobody is maintaining it. It just doesnt exist at all in any 7.2 repos I know of. So you’ll need to –
Stop using mcrypt or
Stop using PHP 7.2 or
You could TRY building it out of PECL on your system being aware of the fact that nobody will support whatever happens.
Get together with other people to try to get the extension maintained.
If you really have code that requires mcrypt you are probably best off using 7.1 until you can get the code fixed to use something else.