Issues installing php extensions

Started attempting to follow this very useful entry here:

problem is that when you Ssh in and attempt run this:

apt-get install -y build-essential autoconf pkg-config

I’m met with some unmet dependencies.

So when I run as advised:

apt-get install -f

I get:

Preparing to unpack .../mysql-community-server_5.6.40-1debian8_amd64.deb ...
invoke-rc.d: policy-rc.d denied execution of stop.

Im running 2.3.1

Any ideas?

Opining on this further, is this simply because the database and/or web server are still running?

Unfortunately if you stop the VM from the Local controls it obviously terminates the SSH access, so that’s no solution …

@merefield,

It looks like MySQL may’ve failed to upgrade to 5.6. You can run mysql -v -proot to see what version of MySQL the site is running.

I’d try running the following commands (see https://askubuntu.com/a/142808):

  1. apt-get clean
  2. apt-get -f install
  3. dpkg --configure -a
  4. apt-get -f install

After that, try apt-get install -y build-essential autoconf pkg-config again.


Another thing you can try is creating a new Custom site and then run the apt-get commands in the new site.

Wow that did it … i wonder if creating the site on an earlier version of Local, then upgrading was the cause?

No issue with the fresh site!

Thanks Clay!

1 Like