Hi, On Sun, 19 Aug 2012, Riccardo Magliocchetti wrote: > upgrading django to 1.4.1 does not work here:
Something weird is going on then. I have not seen this problem. > Preparing to replace python-django 1.4-1 (using > .../python-django_1.4.1-1_all.deb) ... > Unpacking replacement python-django ... > dpkg: error processing /var/cache/apt/archives/python-django_1.4.1-1_all.deb > (--unpack): > unable to open '/usr/share/pyshared/django/middleware/csrf.py.dpkg-new': No > such file or directory Please show me the output of thoses commands: $ find /usr/share/pyshared/django -type l | xargs ls -al $ find /usr/lib/python2.6/dist-packages/ -type l | (while read file; do test -d $file && echo "$file -> $(readlink $file)" ; done) $ find /usr/lib/python2.7/dist-packages/ -type l | (while read file; do test -d $file && echo "$file -> $(readlink $file)" ; done) See http://raphaelhertzog.com/2011/07/18/deciphering-one-of-dpkg-weirdest-errors-unable-to-open-pathtofoo-dpkg-new/ for some explanations of what might cause the problem. The other directories which might contain csrf.py are: $ dpkg -L python-django|grep csrf /usr/share/pyshared/django/middleware/csrf.py /usr/share/pyshared/django/views/csrf.py /usr/share/pyshared/django/views/decorators/csrf.py /usr/share/pyshared/django/contrib/flatpages/tests/csrf.py /usr/lib/python2.7/dist-packages/django/middleware/csrf.py /usr/lib/python2.7/dist-packages/django/views/csrf.py /usr/lib/python2.7/dist-packages/django/views/decorators/csrf.py /usr/lib/python2.7/dist-packages/django/contrib/flatpages/tests/csrf.py /usr/lib/python2.6/dist-packages/django/middleware/csrf.py /usr/lib/python2.6/dist-packages/django/views/csrf.py /usr/lib/python2.6/dist-packages/django/views/decorators/csrf.py /usr/lib/python2.6/dist-packages/django/contrib/flatpages/tests/csrf.py Does one of those directories point back to /usr/share/pyshared/django/middleware by mistake ? (Note that it might be an ancestor directory involved too) Did you setup some symlinks to replace one of those directories ? Does it fail again if you retry the upgrade? Cheers, -- Raphaël Hertzog ◈ Debian Developer Get the Debian Administrator's Handbook: → http://debian-handbook.info/get/ -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

