package apache2 2.4.25-3ubuntu2.2 failed to install/upgrade: subproces post-installation script geïnstalleerd gaf een foutwaarde 1 terug

Bug #1710012 reported by Alain Claessens on 2017-08-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Undecided
Unassigned

Bug Description

error occurs when trying te reinstall lamp

ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: apache2 2.4.25-3ubuntu2.2
ProcVersionSignature: Ubuntu 4.10.0-30.34-generic 4.10.17
Uname: Linux 4.10.0-30-generic x86_64
Apache2ConfdDirListing: False
Apache2Modules:
 Error: command ['/usr/sbin/apachectl', '-D DUMP_MODULES'] failed with exit code 1: apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
 Action '-D DUMP_MODULES' failed.
 The Apache error log may have more information.
ApportVersion: 2.20.4-0ubuntu4.5
AptOrdering:
 mysql-server:amd64: Purge
 NULL: ConfigurePending
 NULL: PurgePending
 NULL: ConfigurePending
Architecture: amd64
Date: Thu Aug 10 22:54:28 2017
ErrorMessage: subproces post-installation script geïnstalleerd gaf een foutwaarde 1 terug
InstallationDate: Installed on 2016-11-26 (256 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
RelatedPackageVersions:
 dpkg 1.18.10ubuntu2
 apt 1.4
SourcePackage: apache2
Title: package apache2 2.4.25-3ubuntu2.2 failed to install/upgrade: subproces post-installation script geïnstalleerd gaf een foutwaarde 1 terug
UpgradeStatus: Upgraded to zesty on 2017-04-20 (111 days ago)
error.log: Error: [Errno 2] Bestand of map bestaat niet: '/var/log/apache2/error.log'
modified.conffile..etc.apache2.apache2.conf: [deleted]
modified.conffile..etc.apache2.conf-available.charset.conf: [deleted]
modified.conffile..etc.apache2.conf-available.localized-error-pages.conf: [deleted]
modified.conffile..etc.apache2.conf-available.other-vhosts-access-log.conf: [deleted]
modified.conffile..etc.apache2.conf-available.security.conf: [deleted]
modified.conffile..etc.apache2.conf-available.serve-cgi-bin.conf: [deleted]
modified.conffile..etc.apache2.envvars: [deleted]
modified.conffile..etc.apache2.magic: [deleted]
modified.conffile..etc.apache2.mods-available.access_compat.load: [deleted]
modified.conffile..etc.apache2.mods-available.actions.conf: [deleted]
modified.conffile..etc.apache2.mods-available.actions.load: [deleted]
modified.conffile..etc.apache2.mods-available.alias.conf: [deleted]
modified.conffile..etc.apache2.mods-available.alias.load: [deleted]
modified.conffile..etc.apache2.mods-available.allowmethods.load: [deleted]
modified.conffile..etc.apache2.mods-available.asis.load: [deleted]
modified.conffile..etc.apache2.mods-available.auth_basic.load: [deleted]
modified.conffile..etc.apache2.mods-available.auth_digest.load: [deleted]
modified.conffile..etc.apache2.mods-available.auth_form.load: [deleted]
modified.conffile..etc.apache2.mods-available.authn_anon.load: [deleted]
modified.conffile..etc.apache2.mods-available.authn_core.load: [deleted]
modified.conffile..etc.apache2.mods-available.authn_dbd.load: [deleted]
modified.conffile..etc.apache2.mods-available.authn_dbm.load: [deleted]
modified.conffile..etc.apache2.mods-available.authn_file.load: [deleted]
modified.conffile..etc.apache2.mods-available.authn_socache.load: [deleted]
modified.conffile..etc.apache2.mods-available.authnz_fcgi.load: [deleted]
modified.conffile..etc.apache2.mods-available.authnz_ldap.load: [deleted]
modified.conffile..etc.apache2.mods-available.authz_core.load: [deleted]
modified.conffile..etc.apache2.mods-available.authz_dbd.load: [deleted]
modified.conffile..etc.apache2.mods-available.authz_dbm.load: [deleted]
modified.conffile..etc.apache2.mods-available.authz_groupfile.load: [deleted]
modified.conffile..etc.apache2.mods-available.authz_host.load: [deleted]
modified.conffile..etc.apache2.mods-available.authz_owner.load: [deleted]
modified.conffile..etc.apache2.mods-available.authz_user.load: [deleted]
modified.conffile..etc.apache2.mods-available.autoindex.conf: [deleted]
modified.conffile..etc.apache2.mods-available.autoindex.load: [deleted]
modified.conffile..etc.apache2.mods-available.buffer.load: [deleted]
modified.conffile..etc.apache2.mods-available.cache.load: [deleted]
modified.conffile..etc.apache2.mods-available.cache_disk.conf: [deleted]
modified.conffile..etc.apache2.mods-available.cache_disk.load: [deleted]
modified.conffile..etc.apache2.mods-available.cache_socache.load: [deleted]
modified.conffile..etc.apache2.mods-available.cern_meta.load: [deleted]
modified.conffile..etc.apache2.mods-available.cgi.load: [deleted]
modified.conffile..etc.apache2.mods-available.cgid.conf: [deleted]
modified.conffile..etc.apache2.mods-available.cgid.load: [deleted]
modified.conffile..etc.apache2.mods-available.charset_lite.load: [deleted]
modified.conffile..etc.apache2.mods-available.data.load: [deleted]
modified.conffile..etc.apache2.mods-available.dav.load: [deleted]
modified.conffile..etc.apache2.mods-available.dav_fs.conf: [deleted]
modified.conffile..etc.apache2.mods-available.dav_fs.load: [deleted]
modified.conffile..etc.apache2.mods-available.dav_lock.load: [deleted]
modified.conffile..etc.apache2.mods-available.dbd.load: [deleted]
modified.conffile..etc.apache2.mods-available.deflate.conf: [deleted]
modified.conffile..etc.apache2.mods-available.deflate.load: [deleted]
modified.conffile..etc.apache2.mods-available.dialup.load: [deleted]
modified.conffile..etc.apache2.mods-available.dir.conf: [deleted]
modified.conffile..etc.apache2.mods-available.dir.load: [deleted]
modified.conffile..etc.apache2.mods-available.dump_io.load: [deleted]
modified.conffile..etc.apache2.mods-available.echo.load: [deleted]
modified.conffile..etc.apache2.mods-available.env.load: [deleted]
modified.conffile..etc.apache2.mods-available.expires.load: [deleted]
modified.conffile..etc.apache2.mods-available.ext_filter.load: [deleted]
modified.conffile..etc.apache2.mods-available.file_cache.load: [deleted]
modified.conffile..etc.apache2.mods-available.filter.load: [deleted]
modified.conffile..etc.apache2.mods-available.headers.load: [deleted]
modified.conffile..etc.apache2.mods-available.heartbeat.load: [deleted]
modified.conffile..etc.apache2.mods-available.heartmonitor.load: [deleted]
modified.conffile..etc.apache2.mods-available.ident.load: [deleted]
modified.conffile..etc.apache2.mods-available.imagemap.load: [deleted]
modified.conffile..etc.apache2.mods-available.include.load: [deleted]
modified.conffile..etc.apache2.mods-available.info.conf: [deleted]
modified.conffile..etc.apache2.mods-available.info.load: [deleted]
modified.conffile..etc.apache2.mods-available.lbmethod_bybusyness.load: [deleted]
modified.conffile..etc.apache2.mods-available.lbmethod_byrequests.load: [deleted]
modified.conffile..etc.apache2.mods-available.lbmethod_bytraffic.load: [deleted]
modified.conffile..etc.apache2.mods-available.lbmethod_heartbeat.load: [deleted]
modified.conffile..etc.apache2.mods-available.ldap.conf: [deleted]
modified.conffile..etc.apache2.mods-available.ldap.load: [deleted]
modified.conffile..etc.apache2.mods-available.log_debug.load: [deleted]
modified.conffile..etc.apache2.mods-available.log_forensic.load: [deleted]
modified.conffile..etc.apache2.mods-available.lua.load: [deleted]
modified.conffile..etc.apache2.mods-available.macro.load: [deleted]
modified.conffile..etc.apache2.mods-available.mime.conf: [deleted]
modified.conffile..etc.apache2.mods-available.mime.load: [deleted]
modified.conffile..etc.apache2.mods-available.mime_magic.conf: [deleted]
modified.conffile..etc.apache2.mods-available.mime_magic.load: [deleted]
modified.conffile..etc.apache2.mods-available.mpm_event.conf: [deleted]
modified.conffile..etc.apache2.mods-available.mpm_event.load: [deleted]
modified.conffile..etc.apache2.mods-available.mpm_prefork.conf: [deleted]
modified.conffile..etc.apache2.mods-available.mpm_prefork.load: [deleted]
modified.conffile..etc.apache2.mods-available.mpm_worker.conf: [deleted]
modified.conffile..etc.apache2.mods-available.mpm_worker.load: [deleted]
modified.conffile..etc.apache2.mods-available.negotiation.conf: [deleted]
modified.conffile..etc.apache2.mods-available.negotiation.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy.conf: [deleted]
modified.conffile..etc.apache2.mods-available.proxy.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_ajp.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_balancer.conf: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_balancer.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_connect.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_express.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_fcgi.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_fdpass.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_ftp.conf: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_ftp.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_hcheck.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_html.conf: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_html.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_http.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_scgi.load: [deleted]
modified.conffile..etc.apache2.mods-available.proxy_wstunnel.load: [deleted]
modified.conffile..etc.apache2.mods-available.ratelimit.load: [deleted]
modified.conffile..etc.apache2.mods-available.reflector.load: [deleted]
modified.conffile..etc.apache2.mods-available.remoteip.load: [deleted]
modified.conffile..etc.apache2.mods-available.reqtimeout.conf: [deleted]
modified.conffile..etc.apache2.mods-available.reqtimeout.load: [deleted]
modified.conffile..etc.apache2.mods-available.request.load: [deleted]
modified.conffile..etc.apache2.mods-available.rewrite.load: [deleted]
modified.conffile..etc.apache2.mods-available.sed.load: [deleted]
modified.conffile..etc.apache2.mods-available.session.load: [deleted]
modified.conffile..etc.apache2.mods-available.session_cookie.load: [deleted]
modified.conffile..etc.apache2.mods-available.session_crypto.load: [deleted]
modified.conffile..etc.apache2.mods-available.session_dbd.load: [deleted]
modified.conffile..etc.apache2.mods-available.setenvif.conf: [deleted]
modified.conffile..etc.apache2.mods-available.setenvif.load: [deleted]
modified.conffile..etc.apache2.mods-available.slotmem_plain.load: [deleted]
modified.conffile..etc.apache2.mods-available.slotmem_shm.load: [deleted]
modified.conffile..etc.apache2.mods-available.socache_dbm.load: [deleted]
modified.conffile..etc.apache2.mods-available.socache_memcache.load: [deleted]
modified.conffile..etc.apache2.mods-available.socache_shmcb.load: [deleted]
modified.conffile..etc.apache2.mods-available.speling.load: [deleted]
modified.conffile..etc.apache2.mods-available.ssl.conf: [deleted]
modified.conffile..etc.apache2.mods-available.ssl.load: [deleted]
modified.conffile..etc.apache2.mods-available.status.conf: [deleted]
modified.conffile..etc.apache2.mods-available.status.load: [deleted]
modified.conffile..etc.apache2.mods-available.substitute.load: [deleted]
modified.conffile..etc.apache2.mods-available.suexec.load: [deleted]
modified.conffile..etc.apache2.mods-available.unique_id.load: [deleted]
modified.conffile..etc.apache2.mods-available.userdir.conf: [deleted]
modified.conffile..etc.apache2.mods-available.userdir.load: [deleted]
modified.conffile..etc.apache2.mods-available.usertrack.load: [deleted]
modified.conffile..etc.apache2.mods-available.vhost_alias.load: [deleted]
modified.conffile..etc.apache2.mods-available.xml2enc.load: [deleted]
modified.conffile..etc.apache2.ports.conf: [deleted]
modified.conffile..etc.apache2.sites-available.000-default.conf: [deleted]
modified.conffile..etc.apache2.sites-available.default-ssl.conf: [deleted]

ChristianEhrhardt (paelzer) wrote :

Hi Alain,

From the log:
modified.conffile..etc.apache2.apache2.conf: [deleted]

TL;DR IMHO:
- apache was removed but not purged (the system leaves configurations to be the same on a reinstall)
- then the configs were manually removed
- the system can't differentiate that from any other configuation, like adding a parm
- therefore it will "hold" that config state
- on a re-install or upgrade it needs to start the service
- that fails due to the delted config files

You should tell your system that you want apache2 gone completely including config:
$ apt purge apache2

Afterwards a reinstall should work.

ChristianEhrhardt (paelzer) wrote :

Thank you for your report.

This looks like a local configuration problem, rather than a bug in Ubuntu.

You can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Since we use this bug tracker to track bugs in Ubuntu, rather than configuration problems, I'm marking this bug as Invalid. This helps us to focus on fixing bugs in Ubuntu.

If you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

Changed in apache2 (Ubuntu):
status: New → Incomplete

Hi,

Thanks for the response. Eventually got everything installed and working.
This was the last piece of my puzzle:
https://askubuntu.com/questions/760724/16-04-upgrade-broke-mysql-server/793545#793545

Best regards,

Alain

2017-08-11 13:10 GMT+02:00 ChristianEhrhardt <email address hidden>:

> Thank you for your report.
>
> This looks like a local configuration problem, rather than a bug in
> Ubuntu.
>
> You can find pointers to get help for this sort of problem here:
> http://www.ubuntu.com/support/community
>
> Since we use this bug tracker to track bugs in Ubuntu, rather than
> configuration problems, I'm marking this bug as Invalid. This helps us
> to focus on fixing bugs in Ubuntu.
>
> If you believe that this is really a bug, then you may find it helpful
> to read "How to report bugs effectively"
> http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful
> if you would then provide a more complete description of the problem,
> explain why you believe this is a bug in Ubuntu rather than a problem
> specific to your system, and then change the bug status back to New.
>
> ** Changed in: apache2 (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1710012
>
> Title:
> package apache2 2.4.25-3ubuntu2.2 failed to install/upgrade: subproces
> post-installation script geïnstalleerd gaf een foutwaarde 1 terug
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/
> 1710012/+subscriptions
>

ChristianEhrhardt (paelzer) wrote :

Great, thanks for the positive feedback!

Changed in apache2 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers