Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

Python causing bzr error

The Ultimate Guide for the rest of us


Python causing bzr error

Postby stlsaint » Sun Mar 04, 2012 10:50 pm

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)
intel centr duo
nvidia 8400 graphics
4GB ram, 500gb hdd
Ultimate Edition on Freenode @ IRC #UltimateEdition
User avatar
stlsaint
Moderator
 
Posts: 131
Joined: Sat Jul 18, 2009 11:43 pm
Location: Dayton, OH
Age: 37
Operating System: Ultimate Edition 3.2 64 BIT



Re: Python causing bzr error

Postby stlsaint » Mon Mar 05, 2012 2:12 pm

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:~#
intel centr duo
nvidia 8400 graphics
4GB ram, 500gb hdd
Ultimate Edition on Freenode @ IRC #UltimateEdition
User avatar
stlsaint
Moderator
 
Posts: 131
Joined: Sat Jul 18, 2009 11:43 pm
Location: Dayton, OH
Age: 37
Operating System: Ultimate Edition 3.2 64 BIT



Re: Python causing bzr error [SOLVED]

Postby stlsaint » Wed Mar 07, 2012 10:22 pm

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:
intel centr duo
nvidia 8400 graphics
4GB ram, 500gb hdd
Ultimate Edition on Freenode @ IRC #UltimateEdition
User avatar
stlsaint
Moderator
 
Posts: 131
Joined: Sat Jul 18, 2009 11:43 pm
Location: Dayton, OH
Age: 37
Operating System: Ultimate Edition 3.2 64 BIT


Return to Newbie's Corner

Who is online

Users browsing this forum: No registered users and 9 guests