These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for dpkg: dependency problems prevent configuration of apache2-mpm-prefork on the new forum.
Each time I perform an update it fails due to an Apache error, which I cannot seem to fix despite trying some things from prior posts in the Help! forum. Have I missed setting up something?
Installing package(s) with command apt-get -y install adduser .. Setting up apache2.2-common (2.2.8-12vm.ubuntu0.14) ... Configuration file `/etc/apache2/ports.conf' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** ports.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing apache2.2-common (--configure): EOF on stdin at conffile prompt dpkg: dependency problems prevent configuration of apache2-mpm-prefork: apache2-mpm-prefork depends on apache2.2-common (= 2.2.8-12vm.ubuntu0.14); however: Package apache2.2-common is not configured yet. dpkg: error processing apache2-mpm-prefork (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: apache2.2-common apache2-mpm-prefork Reading package lists... Building dependency tree... Reading state information... adduser is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up apache2.2-common (2.2.8-12vm.ubuntu0.14) ... Configuration file `/etc/apache2/ports.conf' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** ports.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing apache2.2-common (--configure): EOF on stdin at conffile prompt dpkg: dependency problems prevent configuration of apache2-mpm-prefork: apache2-mpm-prefork depends on apache2.2-common (= 2.2.8-12vm.ubuntu0.14); however: Package apache2.2-common is not configured yet. dpkg: error processing apache2-mpm-prefork (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: apache2.2-common apache2-mpm-prefork E: Sub-process /usr/bin/dpkg returned an error code (1) .. install failed!
What's in your /etc/apache2/ports.conf file?
It looks like something about that is causing the issue.
Depending on it's contents, we can try an update from the command line, and either overwrite that with the package's version of the ports.conf, or have the update leave your existing ports.conf in place.
-Eric
Okay, there's nothing unusual about that... though, the more I think about it, you should probably just keep your current ports.conf file. So to get all that working, what I'd recommend is running:
apt-get update && apt-get upgrade
Then, when it prompts you with that above prompt about the ports.conf file, hit "N" to have it keep your currently installed version.
-Eric
Thank you very much! I will now convert our second server over to Virtualmin this week.