Okay this is ungraceful entrance to this mailing list but I hope that someone can help. I seem to have butchered my default Python install somewhat. The server is running Debian 'etch' and I wanted to make python2.5 the default install so I decided to link python2.5 to python in /usr/bin ? But I was a bit flustered and under pressure and made some changes which I can't remember the sequence of now. Before I go any further I'm not sure whether this can be fixed or it might be simpler (although I've never done it) to completely remove Python and start fresh?
The present state of /usr/bin: dev3:/usr/bin# ls -la python* -rwxr-xr-x 2 root root 1015264 2008-10-23 08:53 python -rwxr-xr-x 2 root root 1015264 2008-10-23 08:53 python2.4 -rwxr-xr-x 1 root root 1276 2008-10-23 08:53 python2.4-config Errors I get when I go to install 'libapache2-mod-python'. ########### Apt-get errors ####################### Selecting previously deselected package libapache2-mod-python. (Reading database ... 30406 files and directories currently installed.) Unpacking libapache2-mod-python (from .../libapache2-mod-python_3.2.10-4_i386.deb) ... Selecting previously deselected package libapache2-mod-python-doc. Unpacking libapache2-mod-python-doc (from .../libapache2-mod-python-doc_3.2.10-4_all.deb) ... Setting up python2.4-minimal (2.4.4-3+etch2) ... Linking and byte-compiling packages for runtime python2.4... Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1363, in main if action.check_args(global_options): File "/usr/bin/pycentral", line 971, in check_args for rt in get_installed_runtimes(): File "/usr/bin/pycentral", line 195, in get_installed_runtimes default_version = pyversions.default_version(version_only=True) File "/usr/share/pycentral-data/pyversions.py", line 120, in default_version _default_version = link = os.readlink('/usr/bin/python') OSError: [Errno 22] Invalid argument: '/usr/bin/python' dpkg: error processing python2.4-minimal (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of python2.4: python2.4 depends on python2.4-minimal (= 2.4.4-3+etch2); however: Package python2.4-minimal is not configured yet. dpkg: error processing python2.4 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python: python depends on python2.4 (>= 2.4.4); however: Package python2.4 is not configured yet. dpkg: error processing python (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-central: python-central depends on python (>= 2.3.5-7); however: Package python is not configured yet. dpkg: error processing python-central (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-apt: python-apt depends on python-central (>= 0.5); however: Package python-central is not configured yet. python-apt depends on python (<< 2.5); however: Package python is not configured yet. python-apt depends on python (>= 2.3); however: Package python is not configured yet. dpkg: error processing python-apt (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python2.4-dev: python2.4-dev depends on python2.4 (= 2.4.4-3+etch2); however: Package python2.4 is not configured yet. dpkg: error processing python2.4-dev (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-dev: python-dev depends on python (= 2.4.4-2); however: Package python is not configured yet. python-dev depends on python2.4-dev (>= 2.4.4); however: Package python2.4-dev is not configured yet. dpkg: error processing python-dev (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libapache2-mod-python: libapache2-mod-python depends on python-central (>= 0.5.8); however: Package python-central is not configured yet. libapache2-mod-python depends on python (<< 2.5); however: Package python is not configured yet. libapache2-mod-python depends on python (>= 2.4); however: ------------ removed some of the printed output -------------- Package python is not configured yet. libapache2-mod-python depends on python2.4 (>= 2.3.90); however: Package python2.4 is not configured yet. dpkg: error processing libapache2-mod-python (--configure): dependency problems - leaving unconfigured Setting up libapache2-mod-python-doc (3.2.10-4) ... Errors were encountered while processing: python2.4-minimal python2.4 python python-central python-apt python2.4-dev python-dev libapache2-mod-python E: Sub-process /usr/bin/dpkg returned an error code (1) ############## End of apt-get errors ############### Can anyone advise me how to approach this? Many thanks in advance. Sam -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org