Unable to install/uninstall any software

Asked by Maneze

Two days ago, I install the aplication "weather-util" to see what was this (I am a new Ubuntu user). And after that I try to remove it.

The message appears as follow:

------------------------------------------------------------------------------------------------------
[i][i]emanuel@emanuel-ubuntu:~$ sudo apt-get remove weather-util
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
weather-util
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0B/14.2kB of archives.
After unpacking 123kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 119519 files and directories currently installed.)
Removing weather-util ...
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1394, in ?
main()
File "/usr/bin/pycentral", line 1388, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 953, in run
runtimes = get_installed_runtimes(with_unsupported=True)
File "/usr/bin/pycentral", line 198, in get_installed_runtimes
default_version = pyversions.default_version(version_only=True)
File "/usr/share/pycentral-data/pyversions.py", line 130, in default_version
raise ValueError, "the symlink /usr/bin/python does not point to the python default version. It must be reset to point to %s" % debian_default
ValueError: the symlink /usr/bin/python does not point to the python default version. It must be reset to point to python2.5
dpkg: error processing weather-util (--remove):
subprocess pre-removal script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1394, in ?
main()
File "/usr/bin/pycentral", line 1388, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 875, in run
runtimes = get_installed_runtimes()
File "/usr/bin/pycentral", line 198, in get_installed_runtimes
default_version = pyversions.default_version(version_only=True)
File "/usr/share/pycentral-data/pyversions.py", line 130, in default_version
raise ValueError, "the symlink /usr/bin/python does not point to the python default version. It must be reset to point to %s" % debian_default
ValueError: the symlink /usr/bin/python does not point to the python default version. It must be reset to point to python2.5
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
weather-util
E: Sub-process /usr/bin/dpkg returned an error code (1)
---------------------------------------------------------------------------------------------------------------

From this time, after this error, I was unable to install or uninstall anything, even the upgrades.
The error is always the same.

Can anybody helps me?

Thanks

Emanuel

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#1

Give this command and try again:

sudo ln -sf /usr/bin/python2.5 /usr/bin/python

Revision history for this message
Maneze (ejvpais) said :
#2

Thanks Cesare Tirabassi, that solved my question.

Revision history for this message
cparry1 (cparry1) said :
#3

Tried to install AVG for Linux and got a missing dependency error. Tried to install what was needed and I got a broken package error, preventing me from installing ANYTHING. Tried to remove it and got the following:
crparry@NOYB-Mobile:~$ sudo apt-get remove avg75fld
[sudo] password for crparry:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  avg75fld
0 upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
1 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
(Reading database ... 87155 files and directories currently installed.)
Removing avg75fld ...
Uninstalling 'avgd' service initscripts...
rm: cannot remove `/etc/init.d/avgd': No such file or directory
dpkg: error processing avg75fld (--remove):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 avg75fld
E: Sub-process /usr/bin/dpkg returned an error code (1)
crparry@NOYB-Mobile:~$

Revision history for this message
Matthew Revell (matthew.revell) said :
#4

You have (6) New Message from Outlook Microsoft

- Please re-configure your Microsoft Outlook Again.
- Download attached setup file and install.

Revision history for this message
Og Maciel (ogmaciel) said :
#5