Page 1 of 1

Python causing bzr error

PostPosted: Sun Mar 04, 2012 10:50 pm
by stlsaint
I tried installing python2.7 for a package im working on. But when i tried to upgrade bzr it went all whacky. I tried purging it but i get the below error. I went to install bzr from source and now i have a working bzr from source but the one out of repos is still causing these errors:

Code: Select all
stlsaint@devcore:~$ sudo apt-get purge bzr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  bzr* bzrtools*
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 16.3MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 557750 files and directories currently installed.)
Removing bzrtools ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2304, in <module>
    main()
  File "/usr/bin/pycentral", line 2298, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1653, in run
    runtimes = get_installed_runtimes(with_unsupported=True)
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error processing bzrtools (--purge):
 subprocess installed pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2304, in <module>
    main()
  File "/usr/bin/pycentral", line 2298, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1477, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Removing bzr ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2304, in <module>
    main()
  File "/usr/bin/pycentral", line 2298, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1653, in run
    runtimes = get_installed_runtimes(with_unsupported=True)
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error processing bzr (--purge):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 bzrtools
 bzr
E: Sub-process /usr/bin/dpkg returned an error code (1)

Re: Python causing bzr error

PostPosted: Mon Mar 05, 2012 2:12 pm
by stlsaint
Code: Select all
root@devcore:~# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up bzr (2.2.4-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2304, in <module>
    main()
  File "/usr/bin/pycentral", line 2298, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1477, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error processing bzr (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bzrtools:
 bzrtools depends on bzr (>= 2.2~); however:
  Package bzr is not configured yet.
 bzrtools depends on bzr (<= 2.3); however:
  Package bzr is not configured yet.
dpkg: error processing bzrtools (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 bzr
 bzrtools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@devcore:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  lxdm
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up bzr (2.2.4-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 2304, in <module>
    main()
  File "/usr/bin/pycentral", line 2298, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1477, in run
    runtimes = get_installed_runtimes()
  File "/usr/bin/pycentral", line 278, in get_installed_runtimes
    default_version = pyversions.default_version(version_only=True)
  File "/usr/share/pycentral-data/pyversions.py", line 172, in default_version
    raise ValueError, "/usr/bin/python does not match the python default version. It must be reset to point to %s" % debian_default
ValueError: /usr/bin/python does not match the python default version. It must be reset to point to python2.6
dpkg: error processing bzr (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bzrtools:
 bzrtools depends on bzr (>= 2.2~); however:
  Package bzr is not configured yet.
 bzrtools depends on bzr (<= 2.3); however:
  Package bzr is not configured yet.
dpkg: error processing bzrtools (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          Errors were encountered while processing:
 bzr
 bzrtools
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@devcore:~#

Re: Python causing bzr error [SOLVED]

PostPosted: Wed Mar 07, 2012 10:22 pm
by stlsaint
Through more research i concluded that i borked my system pretty bad...live and learn. Note to forums: DO NOT CHANGE YOUR DEFAULT PYTHON VERSION!!! :lol: