3

I was just trying to install some package through apt-get, then I got a message saying dpkg is broken and I need to manually run suo dpkg --configure -a, so I did and this is what I've got enter image description here

It is just stuck there and won't return to command line.

I press ctrl+c and the program continues and outputs an error message saying :

error processing package mysql-server-5.7(—configure): subprocess installed post-installation script was interrupted

Can anyone explain to me what is wrong and is it critical?

UPDATE

1) I try to do dpkg --congifure -a --force as the error message suggests, but it says --force needs to take a value, so I am stuck again.

2)I try to ignore the problem and resume the installation of the package

sudo apt-get install libfreetype6 libfreetype6-dev

which is in part of a PhantomJS installation. But during the process, there is also some error message regarding mysql, as shown below

enter image description here

After a long pause(around 3 minutes), the process continues and outputs is as below:

enter image description here

I will just be using PhantomJS to scrape some webpages, will these have an impact on my project in the future?

shenkwen
  • 439
  • 1
  • 8
  • 18

1 Answers1

0

So, after many months with this problem, I finally solved it by doing this:

cd /var/lib/dpkg/info sudo mv mysql-server-5.7* ~/mysql-conf-bk-files sudo dpkg --remove --force-remove-reinstreq mysql-server-5.7

I used the source in the comments, but the link is not available anymore, so I used archive.org to retrieve the info.

lucaswxp
  • 121