Latest series of updates...install failed. You have held broken packages

6 posts / 0 new
Last post
#1 Sun, 10/14/2018 - 02:14
adamjedgar

Latest series of updates...install failed. You have held broken packages

I am confused by this...

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:
php7.1-cli : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
php7.1-opcache : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
php7.2-cgi : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
php7.2-cli : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
php7.2-curl : Depends: libcurl4 (>= 7.44.0) but it is not installable
php7.2-fpm : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
php7.2-opcache : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
php7.2-zip : Depends: libc6 (>= 2.27) but 2.24-11+deb9u3 is to be installed
E: Unable to correct problems, you have held broken packages.


i dont understanding how a functioning system has this issue exactly. I havent seen any errors in the logs regarding the above packages with unmet dependencies.

my virtualmin details...

Operating system Debian Linux 9
Webmin version 1.892
Usermin version 1.741
Virtualmin version 6.03
Theme version Authentic Theme 19.20-beta2
Time on system Sunday, October 14, 2018 6:20 PM
Kernel and CPU Linux 4.9.0-8-amd64 on x86_64
Processor information Intel(R) Xeon(R) CPU @ 2.20GHz, 1 cores
System uptime 11 days, 2 hours, 28 minutes
Running processes 120
CPU load averages 0.05 (1 min) 0.03 (5 mins) 0.03 (15 mins)
Real memory 715.97 MB used / 1.62 GB total
Virtual memory 331.59 MB used / 647.86 MB total
Local disk space 8.14 GB used / 6.49 GB free / 14.64 GB total
Package updates 40  package updates are available


Package Updates List (I have "Only Updates" Selected)

google-cloud-sdk all Utilities for the Google Cloud Platform New version 220.0.0-0 Cloud-sdk-stretch
  google-compute-engine all Google Compute Engine guest environment. New version 2.8.6-1 Google-compute-engine-stretch-stable
  php-cgi all server-side, HTML-embedded scripting language (CGI binary) (default) New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-cli all command-line interpreter for the PHP scripting language (default) New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-common all Common files for PHP packages New version 63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-curl all CURL module for PHP [default] New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-dev all Files for PHP module development (default) New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-fpm all server-side, HTML-embedded scripting language (FPM-CGI binary) (default) New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-gd all GD module for PHP [default] New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-mbstring all MBSTRING module for PHP [default] New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-soap all SOAP module for PHP [default] New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-xml all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default] New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php-zip all Zip module for PHP [default] New version 7.2+63+ubuntu18.10.1+deb.sury.org+1 Stretch
  php7.1-cli amd64 command-line interpreter for the PHP scripting language New version 7.1.23-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.1-common amd64 documentation, examples and common module for PHP New version 7.1.23-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.1-gmp amd64 GMP module for PHP New version 7.1.23-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.1-json amd64 JSON module for PHP New version 7.1.23-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.1-mcrypt amd64 libmcrypt module for PHP New version 7.1.23-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.1-mysql amd64 MySQL module for PHP New version 7.1.23-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.1-opcache amd64 Zend OpCache module for PHP New version 7.1.23-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.1-readline amd64 readline module for PHP New version 7.1.23-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-cgi amd64 server-side, HTML-embedded scripting language (CGI binary) New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-cli amd64 command-line interpreter for the PHP scripting language New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-common amd64 documentation, examples and common module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-curl amd64 CURL module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-dev amd64 Files for PHP7.2 module development New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-fpm amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-gd amd64 GD module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-gmp amd64 GMP module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-json amd64 JSON module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-mbstring amd64 MBSTRING module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-mysql amd64 MySQL module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-opcache amd64 Zend OpCache module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-readline amd64 readline module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-soap amd64 SOAP module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-xml amd64 DOM, SimpleXML, WDDX, XML, and XSL module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  php7.2-zip amd64 Zip module for PHP New version 7.2.11-1+ubuntu18.10.1+deb.sury.org+1 Cosmic
  python-google-compute-engine all Google Compute Engine python library for Python 2.x. New version 2.8.6-1 Google-compute-engine-stretch-stable
  webmin all web-based administration interface for Unix systems New version 1.893 Virtualmin-universal
  webmin-virtual-server all Webmin module for 'Virtualmin Virtual Servers' New version 6.04.gpl Virtualmin-universal

If i try to remove the broken packages, it then generates new errors...

The following packages have unmet dependencies:
php-cgi : Depends: php7.2-cgi but it is not going to be installed
php-cli : Depends: php7.2-cli but it is not going to be installed
php-curl : Depends: php7.2-curl but it is not going to be installed
php-fpm : Depends: php7.2-fpm but it is not going to be installed
php-zip : Depends: php7.2-zip but it is not going to be installed
php7.2-dev : Depends: php7.2-cli (>= 7.2.11-1+ubuntu18.10.1+deb.sury.org+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

What am i to do exactly?

Sun, 10/14/2018 - 03:40
Joe
Joe's picture

That's not Virtualmin related. But, looks like mismatched repositories. Did you enable some additional or unstable repos? Some of those PHP packages require a newer libc6 package than is provided by your OS repos.

--

Check out the forum guidelines!

Sun, 10/14/2018 - 16:00
adamjedgar

Ok...i did enable for example, the ondre repository for something recently...it was related to manually installing ioncube and i think perhaps also mcrypt. I was testing boxbilling and blesta billing at one point but gave up on them.
What repositories should i use?
What is the best way to reset the repositories back to defaults?

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

Mon, 10/15/2018 - 05:33 (Reply to #3)
Joe
Joe's picture

The only recommendation I can make with certainty is: Use the OS-standard repositories, if at all possible. The ondrej repositories are better than most, and it's what we use/recommend when PHP7 is missing in the OS repos (but only then...we don't use any third party repositories if there is any PHP7 version available in the OS repos).

In this case, are you sure the repo you enabled was for the exact distribution and version you have? libc6 is a pretty core package; you can't reasonably replace it without extremely far-reaching effects (though there may be additional packages that install other versions of libc6 into other locations). I'd be surprised if the ondrej packages for your OS/version actually require a different libc. But, if they do, you'd need to read up on that repo and what's required to make it work. It is not in my area of expertise.

Reverting would be just disabling those extra repositories (configured in /etc/apt). Do the opposite of what you did to enable them. ;-)

--

Check out the forum guidelines!

Wed, 10/17/2018 - 04:28
adamjedgar

i didnt enable them via /etc/apt

I am not understanding this...i run debian stretch on google cloud. what repositories should i have enabled...how do i reset them back to the defaults exactly?

I dont understand where some of the above is coming from...here is what is in my /etc/apt/sources.list file

deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main
deb http://security.debian.org/ stretch/updates main
deb-src http://security.debian.org/ stretch/updates main
deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-stretch main
deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main

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

Wed, 10/17/2018 - 04:51
adamjedgar

UPDATE...

i think i may have resolved this. When i went into /etc/apt/ i noticed that some of the folders there had references to ubuntu respoitories. I deleted those, then went back to webmin/software package updates/ and refreshed available updates.

After stuffing around a bit eventually i got virtualmin to see only the updates for debian stretch.

Once that part was sorted the updates for debian (there were 67 of them) processed no problems.

Now all i have to figure out is how and why this happened in the first place. Clearly it has something to do with software i have on the server, but i dont know what?

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

Topic locked