Reinstalar o apache2

0

Parece que um simples apt-get install apache2 não instala completamente o Apache2, pois ainda posso vê-lo em um dos processos ao executar top . Como alguém pode reinstalar o Apache2 em seu servidor Ubuntu?

Este é o comando:

root@unl01:~# which apache2

/usr/sbin/apache2
root@unl01:~# whereis apache2
apache2: /usr/sbin/apache2 /etc/apache2 /usr/lib/apache2 /usr/share/apache2 /usr/share/man/man8/apache2.8.gz
root@unl01:~# apt-get remove apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done

Depois disso, quando eu instalar o Apache2 novamente, a instalação falhará:

root@unl01:~# apt-get install apache2

Reading package lists... Error!
E: Couldn't create temporary file to work with /var/lib/apt/lists/us.archive.ubu                   ntu.com_ubuntu_dists_trusty_Release - mkstemp (2: No such file or directory)
E: The package lists or status file could not be parsed or opened.
    
por Emad Al-Neffati 09.01.2017 / 12:03

1 resposta

1

Tente isso no terminal:

sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir -p /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update

Fonte

    
por Liso 09.01.2017 / 12:16