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

Bug #283187 reported by Karol
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Triaged
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

Revision history for this message
Karol (mr-n) wrote :
Revision history for this message
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).

Revision history for this message
Mahyuddin Susanto (udienz) wrote :

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

Mathias Gug (mathiaz)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.