I'm trying to install the latest version of Apache 2.4. However:
$ sudo apt-get install apache2=2.4.*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selected version '2.4.10-1ubuntu1.1~ubuntu14.04.1' (Ubuntu:14.04/trusty-backports [i386]) for 'apache2'
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.10-1ubuntu1.1~ubuntu14.04.1) but 2.4.7-1ubuntu4.10 is to be installed
Depends: apache2-data (= 2.4.10-1ubuntu1.1~ubuntu14.04.1) but 2.4.7-1ubuntu4.10 is to be installed
E: Unable to correct problems, you have held broken packages.
There indeed packages for both 2.4.7
and for 2.4.10
in different repositories:
$ apt-cache policy apache2-data
apache2-data:
Installed: (none)
Candidate: 2.4.7-1ubuntu4.10
Version table:
2.4.10-1ubuntu1.1~ubuntu14.04.1 0
100 http://archive.ubuntu.com/ubuntu/ trusty-backports/main i386 Packages
2.4.7-1ubuntu4.10 0
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
2.4.7-1ubuntu4.5 0
500 http://security.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
2.4.7-1ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
However, I don't know how their dependencies get mixed up so that I get the error above.