این دستور رو دادم
sudo apt-get remove apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql phpmyadmin
و حالا دستور sudo apt-get install apache2 یا این sudo apt-get install apache2 apache2-common apache2-mpm-prefork apache2-utils ssl-cert رو میدم میگه:
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.27-9-generic gcj-4.3-base libcommons-collections3-java
libclucene0ldbl libstlport4.6ldbl libwildmidi0 libqca2 lp-solve libxpp3-java
amarok-engine-xine libdc1394-22 libgcj9-0 libgcj-bc libxine1-x
kdebase-runtime-data-common libbackport-util-concurrent-java
libsoundtouch1c2 linux-headers-2.6.27-7 linux-headers-2.6.27-9
openoffice.org-java-common libxom-java libgfortran3 liblog4j1.2-java-gcj
libqt4-test libjaxme-java libxine1-misc-plugins libregexp-java libxcb-xv0
phonon libjaxp1.3-java-gcj linux-headers-2.6.27-7-generic libopenspc0
liblog4j1.2-java amarok-common libfftw3-3 python-qt4-common libjdom1-java
kde-icons-oxygen libxine1-bin libexiv2-4 liblucene2-java
libsuitesparse-3.1.0 librasqal0 libxerces2-java-gcj ruby1.8
libqt4-xmlpatterns libqt4-help python-qt4 ruby libcommons-logging-java
uno-libs3 libqt4-webkit libcommons-codec-java kdelibs5-data libgcj-common
python-qt4-dbus python-sip4 libjaxp1.3-java libxcb-shape0 freepats
libxpp2-java libjline-java libgcj9-jar libxerces2-java libsaxonb-java
libtunepimp5 libifp4 libcommons-beanutils-java libstreamanalyzer0 libphonon4
libzip1 libblas3gf libdb-je-java ure libcdaudio1 phonon-backend-xine
liblapack3gf libcommons-digester-java libdb4.5-java-gcj libdb4.5-java
libjtidy-java libstreams0 libraptor1 exiv2 libservlet2.3-java libruby1.8
libdom4j-java libxcb-shm0 kdebase-runtime-data raptor-utils libnjb5 libofa0
libmms0 libneon27-gnutls libxine1-console libjaxen-java libxine1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.