Thursday, December 03, 2015

Apache2 Unable to correct problems, you have held broken packages

Cek versi Debiannya
root@risetpro:~# uname --all
Linux risetpro 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u6 x86_64 GNU/Linux


Coba install Apache2
root@risetpro:/etc/apt# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:


The following packages have unmet dependencies:
 apache2 : Depends: apache2-mpm-worker (= 2.2.22-13+deb7u6) but it is not going to be installed or
                    apache2-mpm-prefork (= 2.2.22-13+deb7u6) but it is not going to be installed or
                    apache2-mpm-event (= 2.2.22-13+deb7u6) but it is not going to be installed or
                    apache2-mpm-itk (= 2.2.22-13+deb7u6) but it is not going to be installed
           Depends: apache2.2-common (= 2.2.22-13+deb7u6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.



Untuk atasi error message ini, lakukan :
1. Edit repo
2. Jalankan update dan upgrade

Edit Repo Debian 7
# vi /etc/apt/sources.list

Lalu masukan repository local Indonesia, dalam hal ini kami menggunakan repository Kambing (Universitas Indonesia)

deb http://kambing.ui.ac.id/debian/ wheezy main contrib non-free
deb http://kambing.ui.ac.id/debian/ wheezy-updates main contrib non-free
deb http://kambing.ui.ac.id/debian-security/ wheezy/updates main contrib non-free


Jalankan Update dan Upgrade
# apt-get update
# apat-get upgrade  --> sekalian benerin keyring
# apt-get update --> error public key dijamin hilang

Install Apache2
root@risetpro:/etc/apt# apt-get install apache2

No comments:

Post a Comment