$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 7 not fully installed or removed. Need to get 0B of archives. After unpacking 0B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up python2.4-minimal (2.4.4-3) ... 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 126, 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); 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 python2.4-dev: python2.4-dev depends on python2.4 (= 2.4.4-3); 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 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 python-gtk2-dev: python-gtk2-dev depends on python-dev; however: Package python-dev is not configured yet. dpkg: error processing python-gtk2-dev (--configure): dependency problems - leaving unconfigured Setting up python-imaging (1.1.5-11) ... Traceback (most recent call last): File "/usr/bin/pycentral", line 1373, in ? main() File "/usr/bin/pycentral", line 1367, in main rv = action.run(global_options) File "/usr/bin/pycentral", line 865, in run runtimes = 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 126, in default_version _default_version = link = os.readlink('/usr/bin/python') OSError: [Errno 22] Invalid argument: '/usr/bin/python' dpkg: error processing python-imaging (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of vim-full: vim-full depends on python2.4 (>= 2.3.90); however: Package python2.4 is not configured yet. dpkg: error processing vim-full (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python2.4-minimal python2.4 python2.4-dev python-dev python-gtk2-dev python-imaging vim-full E: Sub-process /usr/bin/dpkg returned an error code (1)