error when trying to install sudo apt-get upgrade

0

I am trying to install LAMP on ubuntu to install Laravel with the following commands. I'm just in the second one and when I finish the second command and try to install the LAMP I have this error and it does not allow me to install the server. Does anyone have any ideas?

root@me:~# sudo apt-get install lamp-server^
sudo: unable to resolve host me
  

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install lamp-server^

sudo apt-get install php5-mcrypt

sudo php5enmod mcrypt

this is the tutorial I saw

    
asked by simon 19.07.2018 в 10:04
source

1 answer

1

It seems that there are broken packages, you should try what it suggests:

sudo dpkg --configure -a

or try the following to solve broken packet problems:

sudo apt-get -f install

If Lamp can not be installed yet, try doing the simulated installation to see which dependencies may be unfulfilled or which other packages require for its correct installation with the following command (without sudo).

apt-get -s install lamp-server^
    
answered by 19.07.2018 / 10:29
source