While installing Apache2 I am getting the following output:
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-bin (= 2.4.7-1ubuntu4.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Out put of apt-cache policy apache2 apache2-bin
apache2:
Installed: (none)
Candidate: 2.4.7-1ubuntu4.4
Version table:
2.4.7-1ubuntu4.4 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
apache2-bin:
Installed: (none)
Candidate: 2.4.7-1ubuntu4.4
Version table:
2.4.7-1ubuntu4.4 0
500 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
How can I fix this?
I have tried the commands suggested by you. Output of apt-get upgrade -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic-lts-utopic linux-headers-generic-lts-utopic
linux-image-generic-lts-utopic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
No output for this command dpkg --get-selections | grep -i ^apache2
Output of code : apt-mark unhold apache2-bin
apache2-bin was already not hold.
Output of code: apt-cache depends apache2-bin
apache2-bin
Depends: <libapr1>
Depends: <libaprutil1>
|Depends: <libaprutil1-dbd-sqlite3>
|Depends: <libaprutil1-dbd-mysql>
|Depends: <libaprutil1-dbd-odbc>
|Depends: <libaprutil1-dbd-pgsql>
Depends: <libaprutil1-dbd-freetds>
Depends: <libaprutil1-ldap>
Depends: libc6
Depends: libldap-2.4-2
Depends: libpcre3
Depends: libssl1.0.0
Depends: libxml2
Depends: zlib1g
Depends: perl
Suggests: <www-browser>
chromium-browser
firefox
konqueror
Suggests: apache2-doc
|Suggests: apache2-suexec-pristine
Suggests: apache2-suexec-custom
Conflicts: apache2.2-bin
Conflicts: apache2.2-bin:i386
Conflicts: <apache2.2-common>
Conflicts: <apache2.2-common:i386>
Breaks: libapache2-mod-macro
Breaks: libapache2-mod-macro:i386
Breaks: libapache2-mod-proxy-html
Breaks: libapache2-mod-proxy-html:i386
Replaces: apache2-mpm-event
Replaces: apache2-mpm-event:i386
Replaces: apache2-mpm-itk
Replaces: apache2-mpm-itk:i386
Replaces: apache2-mpm-prefork
Replaces: apache2-mpm-prefork:i386
Replaces: apache2-mpm-worker
Replaces: apache2-mpm-worker:i386
Replaces: apache2.2-bin
Replaces: apache2.2-bin:i386
Replaces: <apache2.2-common>
Replaces: <apache2.2-common:i386>
Replaces: libapache2-mod-macro
Replaces: libapache2-mod-macro:i386
Replaces: libapache2-mod-proxy-html
Replaces: libapache2-mod-proxy-html:i386
Conflicts: apache2-bin:i386
But it is not resolved.
apt-cache policy apache2 apache2-bin
– muru Apr 19 '15 at 18:48sudo aptitude -f install apache2
? Reason for aptitude? Better explanation of conflicts. Reason for-f
? Tunes conflict resolution to prefer not to uninstall anything. – thomasrutter Apr 20 '15 at 06:31