dist-upgrade failed: apache2 postinst failed on absolute symlinks in mods-enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
I tried to upgrade from 12.04 LTS to 14.04 LTS using "do-release-
disable obsolete module dav_fs
Module dav_fs disabled.
disable obsolete module dav
ERROR: The following modules depend on dav and need to be disabled first: dav_svn
dpkg: error processing package apache2 (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports has already been reached
…
Please report this bug in a browser at
http://
and attach the files in /var/log/
installArchives() failed
I think this is caused by the fact that I have absolute symlinks in /etc/apache2/
root@sigurd:
lrwxrwxrwx 1 root 36 Nov 12 2012 /etc/apache2/
lrwxrwxrwx 1 root 30 Nov 12 2012 /etc/apache2/
lrwxrwxrwx 1 root 40 Nov 12 2012 /etc/apache2/
The code that detects obsolete modules in apache2.postinst looks like it will (accidentally) not work with absolute symlinks:
refresh_modules()
{
if we_are_
for link in /etc/apache2/
etc.
Concatenating the symlink contents with the directory name only works for relative symlinks. A simpler approach would be simply to check the link for existence, which will treat broken links as non-existent:
if [ ! -e "${link}" ]; then
affects: | ubuntu-release-upgrader (Ubuntu) → apache2 (Ubuntu) |
Changed in apache2 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
(Standard support has ended for 14.04.)