When executing the command sudo apt-get install apache2
the following error is returned:
Os pacotes a seguir têm dependências não satisfeitas:
apache2 : Depende: apache2-bin (= 2.4.7-1ubuntu4.9) mas não vai ser instalado
E: Não foi possível corrigir problemas, você tem pacotes mantidos (hold) estragados.
How to solve the problem?
I have tried the following commands to repair broken packages and nothing has resulted:
sudo apt-get clean && sudo apt-get update
dpkg --configure -a
sudo apt-get install -f
The version of Ubuntu is 14.04 LTS.
Follow the /etc/apt/sources.list file:
deb http://pt.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://pt.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://pt.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://pt.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://pt.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://pt.archive.ubuntu.com/ubuntu/ trusty universe
deb http://pt.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://pt.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://pt.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://pt.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://pt.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://pt.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main