2009/4/9 Brett Parker <iDunno(a)sommitrealweird.co.uk>:
> On 08 Apr 23:00, Jenny Hopkins wrote:
>> Hullo there,
>>
>> Does anyone use trac on debian?
>>
>> I've just upgraded a server from etch to lenny. It had a backport
>> version of trac 0.11.1-2~bpo40+1.
>>
>> The lenny version is 0.11.1-2
>>
>> However, the backports package refuses to uninstall to make way for
>> the new version. Installation errors show:
>>
>> Preparing to replace trac 0.11.1-2~bpo40+1 (using
>> .../trac_0.11.1-2.1_all.deb) ...
>> Traceback (most recent call last):
>> File "/usr/bin/pycentral", line 1891, in <module>
>> main()
>> File "/usr/bin/pycentral", line 1885, in main
>> rv = action.run(global_options)
>> File "/usr/bin/pycentral", line 1403, in run
>> pkg = DebPackage('package', self.args[0], oldstyle=False)
>> File "/usr/bin/pycentral", line 303, in __init__
>> self.read_pyfiles()
>> File "/usr/bin/pycentral", line 424, in read_pyfiles
>> 'shared files found in old (%s) and new locations (%s)' %
>> (old_shared_base, shared_base2)
>> __main__.PyCentralError: shared files found in old
>> (/usr/share/pycentral/trac/site-packages/) and new locations
>> (/usr/share/pyshared/)
>> dpkg: warning - old pre-removal script returned error exit status 1
>>
>>
>> I tried moving /usr/share/pycentral/trac to one side but the same error occurs.
>>
>> Google is not my friend :-(
>>
>> Can anyone advise? I'm not much good with pythony things.
>
> apt-get remove trac
> apt-get install trac
>
> Done, because the lenny version is "newer" than the bpo version:
>
> brettp@miranda:~$ if ( dpkg --compare-versions 0.11.1-2~bpo40+1 lt 0.11.1-2 ); then echo yes; fi
> yes
> brettp@miranda:~$ if ( dpkg --compare-versions 0.11.1-2 gt 0.11.1-2~bpo40+1 ); then echo yes; fi
> yes
> brettp@miranda:~$
>
> So, a simple removal and then install should be all it takes.
>
The problem is that it *won't* remove, - it gives the same errors:
Removing trac ...
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1891, in <module>
main()
File "/usr/bin/pycentral", line 1885, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 1403, in run
pkg = DebPackage('package', self.args[0], oldstyle=False)
File "/usr/bin/pycentral", line 303, in __init__
self.read_pyfiles()
File "/usr/bin/pycentral", line 424, in read_pyfiles
'shared files found in old (%s) and new locations (%s)' %
(old_shared_base, shared_base2)
__main__.PyCentralError: shared files found in old
(/usr/share/pycentral/trac/site-packages/) and new locations
(/usr/share/pyshared/)
dpkg: error processing trac (--remove):
subprocess pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1891, in <module>
main()
File "/usr/bin/pycentral", line 1885, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 1242, in run
pkg = DebPackage('package', self.args[0], oldstyle=False)
File "/usr/bin/pycentral", line 303, in __init__
self.read_pyfiles()
File "/usr/bin/pycentral", line 424, in read_pyfiles
'shared files found in old (%s) and new locations (%s)' %
(old_shared_base, shared_base2)
__main__.PyCentralError: shared files found in old
(/usr/share/pycentral/trac/site-packages/) and new locations
(/usr/share/pyshared/)
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
trac
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks,
Jenny