Update failed...

14 posts / 0 new
Last post
#1 Sat, 01/13/2018 - 19:06
adamjedgar

Update failed...

Building complete list of updates ..
Now updating base-files dbus google-cloud-sdk google-compute-engine google-compute-engine-oslogin iproute2 libdbus-1-3 libicu57 liblog-log4perl-perl libpython2.7 libpython2.7-minimal libpython2.7-stdlib libsqlite3-0 libxml2 linux-image-amd64 openssh-client openssh-server openssh-sftp-server php-cgi php-cli php-common php-curl php-fpm php-gd php-mbstring php-mcrypt php-xml php-zip php5.6-cli php5.6-common php5.6-fpm php5.6-json php5.6-opcache php5.6-readline php7.1-cgi php7.1-cli php7.1-common php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-mbstring php7.1-mcrypt php7.1-opcache php7.1-readline php7.1-xml php7.1-zip python-google-compute-engine python2.7 python2.7-minimal spamc ..

Installing package(s) with command apt-get -y install base-files dbus google-cloud-sdk google-compute-engine google-compute-engine-oslogin iproute2 libdbus-1-3 libicu57 liblog-log4perl-perl libpython2.7 libpython2.7-minimal libpython2.7-stdlib libsqlite3-0 libxml2 linux-image-amd64 openssh-client openssh-server openssh-sftp-server php-cgi php-cli php-common php-curl php-fpm php-gd php-mbstring php-mcrypt php-xml php-zip php5.6-cli php5.6-common php5.6-fpm php5.6-json php5.6-opcache php5.6-readline php7.1-cgi php7.1-cli php7.1-common php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-mbstring php7.1-mcrypt php7.1-opcache php7.1-readline php7.1-xml php7.1-zip python-google-compute-engine python2.7 python2.7-minimal spamc

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?

Sat, 01/13/2018 - 23:10
Joe
Joe's picture

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).

--

Check out the forum guidelines!

Sun, 01/14/2018 - 18:17
Nsis_licensing

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).

Summit NSIS Licensing

Sun, 01/14/2018 - 18:56
cruiskeen

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 --

  1. Stop using mcrypt or
  2. Stop using PHP 7.2 or
  3. You could TRY building it out of PECL on your system being aware of the fact that nobody will support whatever happens.
  4. 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.

Sun, 01/14/2018 - 19:04
Joe
Joe's picture

Oh, I didn't know it'd been deprecated. I'll remove it from our dependencies in the metapackage.

--

Check out the forum guidelines!

Mon, 01/15/2018 - 03:36
jicao

Hello,

I got the same trouble.

In my setup I'm using multiple php version so I would like to keep mcrypt for my php 5.6 => 7.1 vhost and not for 7.2.

Is it possible ? How ?

Thanks

Mon, 01/15/2018 - 18:07 (Reply to #6)
Joe
Joe's picture

Have you tried the suggested solution? This has been answered already (uninstall php-mcrypt).

--

Check out the forum guidelines!

Mon, 01/15/2018 - 18:38
Nsis_licensing

go to /etc/apt/sources.list.d

you probably have a .list file there. Mine was ondrej-ubuntu-php-xenial.list look in it and see if you have something like

deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main

and comment it out.

BOOM problem solved

Summit NSIS Licensing

Mon, 01/15/2018 - 18:42
Nsis_licensing

you could just delete the .list file too, but better safe and just comment it out in case something blows up

Summit NSIS Licensing

Tue, 01/16/2018 - 02:50
jicao

Hello,

Thanks for your answers :)

Since I still need it I just hold it so it's not stoping my updates and my customer can still use it

~# apt-mark hold php-mcrypt

Thanks

Wed, 01/17/2018 - 17:41
adamjedgar

doesnt whmcs use php-mcrypt?

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Thu, 01/18/2018 - 12:01
Diabolico
Diabolico's picture

I think WHMCS still doesnt support PHP 7.1 and 7.2 so no problem for now. Maybe you should read this article: https://blog.whmcs.com/133381/whmcs-and-php-71-status-update.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Thu, 04/12/2018 - 11:29
Nishanth J

Issue Solved while installing php7.2-mcrypt

Check this link https://stackoverflow.com/q/48275494/7713811 to get the right solution for installing it in PHP

Mon, 07/22/2019 - 14:59
Dynamicsfolio3

Thanks for sharing this information. Check this link https://dynamics.folio3.com/dynamics-ax-shopify-connector/ to get the softwares.

Topic locked