Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.0, 4.1
-
Fix Version/s: 3.5.1, 4.0.1, 4.1.1, 4.2-milestone-1
-
Component/s: Debian packages
-
Labels:None
-
Environment:Ubuntu 10.04 x86_64
-
Documentation:N/A
-
Documentation in Release Notes:N/A
-
Similar issues:
XE-1036Debian package fail to install XE-1288Debian packages fail to configure for postgres XE-1205Debian package xwiki-enterprise-mysql-common in ubuntu XE-1119postgres debian packages don't have the right name XE-1090Impossible to install SNAPSHOT tomcat based debian packages XE-1297Debian package force removing /etc/tomcat*/Catalina/localhost/xwiki.xml file in postrm XE-1190Add suggest in Debian packages XE-985Provide debian distribution package XE-1108Provide tomcat5 and tomcat7 based debian packages XE-1243Debian package configuration has wrong permanent directory
Description
During upgrade of XWiki Enterprise from version 4.0 to 4.1 via apt-get on Ubuntu Lucid 64bit, I get this error message
{{
(Reading database ... 401053 files and directories currently installed.)
Preparing to replace xwiki-enterprise-common 4.1 (using .../xwiki-enterprise-common_4.1_all.deb) ...
Unpacking replacement xwiki-enterprise-common ...
Setting up xwiki-enterprise-common (4.1) ...
ln: target `/usr/lib/xwiki/WEB-INF/' is not a directory: No such file or directory
dpkg: error processing xwiki-enterprise-common (--install):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
xwiki-enterprise-common
}}
After this on any attempt to visit a wiki page I get a 404 error.
Any suggestions?
Just reproduced it. Note that it works well from scratch so uninstalling 4.0 and then installing 4.1 should work well (all the data as kept as long as you don't use --purge).
The 4.0 uninstall script is removing /usr/lib/xwiki/ folder and looks like apt-get does not recreate it when installing the 4.1 version for some reason.
There is unfortunately not much we can do it seems to fix 4.0 -> anything upgrade since the bug is in the 4.0 uninstall script but I'm going to fix it for new versions.