cubicweb #1875310 cubicweb upgrade fails on natty [deprecated]

I get

 Setting up cubicweb-common (3.13.2-1) ...
 Compiling /usr/lib/python2.4/site-packages/cubicweb/entity.py ...
 File "/usr/lib/python2.4/site-packages/cubicweb/entity.py", line 299
   rschema = eschema.subjrels[attr] if role == 'subject' else eschema.objrels[attr]
                                     ^
 SyntaxError: invalid syntax

 Compiling /usr/lib/python2.4/site-packages/cubicweb/rqlrewrite.py ...
 File "/usr/lib/python2.4/site-packages/cubicweb/rqlrewrite.py", line 297
   with tempattr(self, '_insert_scope', new):
               ^
 SyntaxError: invalid syntax

 Compiling /usr/lib/python2.4/site-packages/cubicweb/rset.py ...
 File "/usr/lib/python2.4/site-packages/cubicweb/rset.py", line 397
   _row.append(self.get_entity(i, j) if col is not None else col)
                                      ^
 SyntaxError: invalid syntax

 Compiling /usr/lib/python2.4/site-packages/cubicweb/utils.py ...
 File "/usr/lib/python2.4/site-packages/cubicweb/utils.py", line 351
   for cssfile, media in (self.group_urls(self.cssfiles) if self.datadir_url else self.cssfiles):
                                                          ^
 SyntaxError: invalid syntax

 pycentral: pycentral pkginstall: error byte-compiling files (56)
 pycentral pkginstall: error byte-compiling files (56)
 dpkg: error processing cubicweb-common (--configure):
subprocess installed post-installation script returned error exit status 1
 dpkg: dependency problems prevent configuration of cubicweb-ctl:
cubicweb-ctl depends on cubicweb-common (= 3.13.2-1); however:
 Package cubicweb-common is not configured yet.
 dpkg: error processing cubicweb-ctl (--configure):
dependency problems - leaving unconfigured
 dpkg: dependency problems prevent configuration of cubicweb-server:
cubicweb-server depends on cubicweb-common (= 3.13.2-1); however:
 Package cubicweb-common is not configured yet.
cubicweb-server depends on cubicweb-ctl (= 3.13.2-1); however:
 Package cubicweb-ctl is not configured yet.
 dpkg: error processing cubicweb-server (--configure):
dependency problems - leaving unconfigured
 dpkg: dependency problems prevent configuration of cubicweb-web:
cubicweb-web depends on cubicweb-common (= 3.13.2-1); however:
 Package cubicweb-common is not configured yet.
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 48)</p>
Literal block ends without a blank line; unexpected unindent.
dpkg: error processing cubicweb-web (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 52)</p>
Block quote ends without a blank line; unexpected unindent.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 54)</p>
Block quote ends without a blank line; unexpected unindent.

No apport report written because MaxReports is reached already

cubicweb-twisted depends on cubicweb-web (= 3.13.2-1); however:
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 57)</p>
Block quote ends without a blank line; unexpected unindent.

Package cubicweb-web is not configured yet.

cubicweb-twisted depends on cubicweb-ctl (= 3.13.2-1); however:
Package cubicweb-ctl is not configured yet. dpkg: error processing cubicweb-twisted (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cubicweb:
cubicweb depends on cubicweb-server (= 3.13.2-1); however:
Package cubicweb-server is not configured yet.
cubicweb depends on cubicweb-twisted (= 3.13.2-1); however:
Package cubicweb-twisted is not configured yet. dpkg: error processing cubicweb (--configure):
ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 68)</p>
Definition list ends without a blank line; unexpected unindent.

dependency problems - leaving unconfigured

prioritynormal
typebug
done in<not specified>
load0.000
load left0.000
closed by<not specified>