Results 1 to 10 of 10

Thread: Software center won't open.

  1. #1
    Join Date
    Jun 2012
    Beans
    7

    Software center won't open.

    I have tried to run it with the commend:

    Code:
    sudo software-center --enable-lp
    However, I get the following error:

    Code:
    File "/usr/bin/software-center", line 152
        print time.time()
                 ^
    SyntaxError: invalid syntax
    This occurred after I installed Python 3 and made it the "default" python on the system. Any help would be great. Thanks.

  2. #2
    Join Date
    Jun 2011
    Beans
    507
    Distro
    Ubuntu Development Release

    Re: Software center won't open.

    might be the old python runs this syntax as valid but new does not try making old python the defualt and test it
    be a open source developer , php , c++ more information from ubuntu one ; do not give full screen applications full control
    http://linkbun.ch/1sdv

  3. #3
    Join Date
    Sep 2011
    Location
    India
    Beans
    123
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Software center won't open.

    Hi,

    Have you tried to re-install it using apt-get.

    sudo apt-get install --reinstall software-center

  4. #4
    Join Date
    Jun 2012
    Beans
    7

    Re: Software center won't open.

    After trying to reinstall it I get the following error:

    Code:
    E: Unable to locate package software-cent

  5. #5
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu

  6. #6
    Join Date
    Mar 2010
    Location
    Dublin, Ireland
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Software center won't open.

    According to this document:

    https://wiki.ubuntu.com/Python/Found...PythonVersions

    Software Center is on Python 2.7. Currently Python 3 is not the default Python on Ubuntu 12.04 and may not be until 12.10 or 14.04.
    Matt
    blog.mattrudge.net for extra helpings of geeky Ubuntu goodness
    Get the Ubuntu Weekly Newsletter

  7. #7
    Join Date
    Jun 2012
    Beans
    7

    Re: Software center won't open.

    Quote Originally Posted by lechien73 View Post
    According to this document:

    https://wiki.ubuntu.com/Python/Found...PythonVersions

    Software Center is on Python 2.7. Currently Python 3 is not the default Python on Ubuntu 12.04 and may not be until 12.10 or 14.04.
    Oh that probably explains why it isn't working. How can I set Python 2.7 back to my default? Thanks.

  8. #8
    Join Date
    Mar 2010
    Location
    Dublin, Ireland
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Software center won't open.

    The previous version of python is probably still there, we just need to change a couple of things.

    Please could you post the output of:

    Code:
    ls -l $(which python)
    Thanks
    Matt
    blog.mattrudge.net for extra helpings of geeky Ubuntu goodness
    Get the Ubuntu Weekly Newsletter

  9. #9
    Join Date
    Jun 2012
    Beans
    7

    Re: Software center won't open.

    Quote Originally Posted by lechien73 View Post
    The previous version of python is probably still there, we just need to change a couple of things.

    Please could you post the output of:

    Code:
    ls -l $(which python)
    Thanks

    Yea, the output is:

    Code:
    lrwxrwxrwx 1 root root 7 May 29 23:54 /usr/bin/python -> python3

  10. #10
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: Software center won't open.

    ok use this to set your python to 2.7
    http://stackoverflow.com/questions/5...-2-7-on-ubuntu
    Dont miss anything even it is small. one small pin is enough to bring down a man.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •