How can i get rid of “apache2 : Depends: perl but it is not going to be installed” in ubuntu 14.04 desktop?

This is the error message i have at console when running

$sudo 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: perl but it is not going to be installed
    Depends: apache2-bin (= 2.4.7-1ubuntu4) but it is not going to be installed
    Depends: apache2-data (= 2.4.7-1ubuntu4) but 2.4.7-1ubuntu4.13 is to be installed
    E: Unable to correct problems, you have held broken packages.

Output of update

    $sudo apt-get update
Hit http://ppa.launchpad.net trusty InRelease
Ign http://in.archive.ubuntu.com trusty InRelease
Hit http://in.archive.ubuntu.com trusty Release.gpg
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://in.archive.ubuntu.com trusty Release
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://in.archive.ubuntu.com trusty/main amd64 Packages
Hit http://in.archive.ubuntu.com trusty/main i386 Packages
Hit http://in.archive.ubuntu.com trusty/main Translation-en
Ign http://in.archive.ubuntu.com trusty/main Translation-en_IN
Reading package lists... Done

I have done recently

sudo rm -rf /var/lib/apt/lists/*
sudo rm /etc/apt/sources.list

Later i gone to

sudo -i software-properties-gtk

and checked the canonical checkbox then,

sudo apt-get update this command i executed.

can any one help me to install apache in my ubuntu!

-1
задан 21 September 2016 в 08:19
1 ответ

Обычно это происходит, когда вы смешиваете различные репозитории в apt. Иногда зависимости от разных репостов не совпадают, и в итоге вы получаете то же самое. Когда вы добавляете репозиторий ppa, хорошо убедиться, что вы добавляете правильное репо, совместимое с вашей версией ubuntu. Смешивание репозиториев для различных версий ubuntu или даже различных дистрибутивов, таких как debian/mint, может сработать, но всегда есть шанс, что что-нибудь сломается.

Проверьте этот ответ, спросив ubuntu. https://askubuntu.com/questions/140246/how-do-deo-resolve-unmet-ependentencies-after-adding-a-ppa

1
ответ дан 5 December 2019 в 19:46

Теги

Похожие вопросы