a2enmod exits with an error if real files are stored in mods-enabled instead of symlinks

Bug #283187 reported by Karol on 2008-10-14
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Wishlist
Unassigned

Bug Description

Binary package hint: apache2

Command: sudo tasksel install lamp-server doesn't finish it's job. The "package apache2.2-common 2.2.9-7ubuntu3 failed to install/upgrade: subprocess post-installation script returned error exit status 1" error occurs.

ProblemType: Package
Architecture: i386
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
Package: apache2.2-common 2.2.9-7ubuntu3
SourcePackage: apache2
Title: package apache2.2-common 2.2.9-7ubuntu3 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.27-7-generic i686

Karol (mr-n) wrote :
Stefan Fritsch (sf-sfritsch) wrote :

Setting up apache2.2-common (2.2.9-7ubuntu3) ...
ERROR: Module alias not properly enabled: /etc/apache2/mods-enabled/alias.load is a real file, not touching it
dpkg: error processing apache2.2-common (--configure):
 subprocess post-installation script returned error exit status 1

This means you had /etc/apache2/mods-enabled/alias.load lying around from a previous install, you put it there yourself (the package itself only puts symlinks in *-enabled), and now a2enmod is confused. Probably a2enmod should not exit with an error in this case, I will think about it.

You can fix the problem by removing that file (and any other files in the same directory).

Mahyuddin Susanto (udienz) wrote :

don't remove, just:
$ sudo a2dismod alias
$ sudo apt-get update && sudo apt-get upgrade

Mathias Gug (mathiaz) on 2009-04-03
summary: - package apache2.2-common 2.2.9-7ubuntu3 failed to install/upgrade:
- subprocess post-installation script returned error exit status 1
+ a2enmod exits with an error if real files are stored in mods-enabled
+ instead of symlinks
Changed in apache2 (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers