Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Messed up Python installation

  1. #21
    Join Date
    Mar 2007
    Beans
    387

    Re: Messed up Python installation

    Try running

    Code:
    Sudo dpkg --configue python-debian

  2. #22
    Join Date
    Jan 2013
    Beans
    24

    Re: Messed up Python installation

    Quote Originally Posted by rsteinmetz70112 View Post
    Try running

    Code:
    Sudo dpkg --configue python-debian

    Code:
    20:08:06 ~$ sudo dpkg --configure python-debian
    Setting up python-debian (0.1.21+nmu2ubuntu2) ...
      File "/usr/bin/pycompile", line 69
        with file(join(name, fn), 'r') as lines:
                ^
    SyntaxError: invalid syntax
    dpkg: error processing package python-debian (--configure):
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     python-debian
    20:08:18 ~$ sudo dpkg --configure python-debian
    Setting up python-debian (0.1.21+nmu2ubuntu2) ...
      File "/usr/bin/pycompile", line 69
        with file(join(name, fn), 'r') as lines:
                ^
    SyntaxError: invalid syntax
    dpkg: error processing package python-debian (--configure):
     subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
     python-debian
    20:08:48 ~$

  3. #23
    Join Date
    Mar 2007
    Beans
    387

    Re: Messed up Python installation

    OK Does this show any thing?

    Code:
    sudo dpkg --configure
    sudo apt install -f
    I think something got corrupted but I can't see what. I'm a little pressurized that reinstalling python-debian failed.

  4. #24
    Join Date
    Jan 2013
    Beans
    24

    Re: Messed up Python installation

    Quote Originally Posted by rsteinmetz70112 View Post
    OK Does this show any thing?

    Code:
    sudo dpkg --configure
    sudo apt install -f
    I think something got corrupted but I can't see what. I'm a little pressurized that reinstalling python-debian failed.
    Code:
    20:39:21 ~$ sudo apt install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    5 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up python-debian (0.1.21+nmu2ubuntu2) ...
      File "/usr/bin/pycompile", line 69
        with file(join(name, fn), 'r') as lines:
                ^
    SyntaxError: invalid syntax
    dpkg: error processing package python-debian (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of update-notifier-common:
     update-notifier-common depends on python-debian; however:
      Package python-debian is not configured yet.
    
    
    dpkg: error processing package update-notifier-common (--configure):
     dependency problems - leaving unconfigured
    Setting up python-pip (1.5.4-1ubuntu4) ...
    No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                              No apport report written because MaxReports is reached already
                                                  File "/usr/bin/pycompile", line 69
        with file(join(name, fn), 'r') as lines:
                ^
    SyntaxError: invalid syntax
    dpkg: error processing package python-pip (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of update-notifier:
     update-notifier depends on update-notifier-common (= 0.154.1ubuntu6); however:
      Package update-notifier-common is not configured yet.
     update-notifier depends on python-debian; however:
      Package python-debian is not configured yet.
    
    
    dpkg: error processing package update-notifier (--configure):
     dependency problems - leaving unconfigured
    Setting up python-lockfile (1:0.8-2ubuntu2) ...
      File "/usr/bin/pycompile", line 69
        with file(join(name, fn), 'r') as lines:
                ^
    SyntaxError: invalid syntax
    dpkg: error processing package python-lockfile (--configure):
     subprocess installed post-installation script returned error exit status 1
    No apport report written because MaxReports is reached already
                                                                  Errors were encountered while processing:
     python-debian
     update-notifier-common
     python-pip
     update-notifier
     python-lockfile
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    20:39:44 ~$

  5. #25
    Join Date
    Jan 2013
    Beans
    24

    Re: Messed up Python installation

    Just in case it relates to bad links:

    Code:
    20:53:42 ~$ ls -lh /usr/bin/python*
    lrwxrwxrwx 1 root root   18 May 12 22:33 /usr/bin/python -> /usr/bin/python2.4
    lrwxrwxrwx 1 root root    9 Dec 21  2013 /usr/bin/python2 -> python2.7
    -rwxr-xr-x 1 root root 2.0M Jan 25  2014 /usr/bin/python2.4
    lrwxrwxrwx 1 root root   33 Nov 13 16:59 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config
    lrwxrwxrwx 1 root root   16 Dec 21  2013 /usr/bin/python2-config -> python2.7-config
    lrwxrwxrwx 1 root root    9 Mar 23  2014 /usr/bin/python3 -> python3.4
    -rwxr-xr-x 2 root root 3.6M Nov 13 03:36 /usr/bin/python3.4
    lrwxrwxrwx 1 root root   33 Nov 13 03:36 /usr/bin/python3.4-config -> x86_64-linux-gnu-python3.4-config
    -rwxr-xr-x 2 root root 3.6M Nov 13 03:36 /usr/bin/python3.4m
    lrwxrwxrwx 1 root root   34 Nov 13 03:36 /usr/bin/python3.4m-config -> x86_64-linux-gnu-python3.4m-config
    lrwxrwxrwx 1 root root   16 Mar 23  2014 /usr/bin/python3-config -> python3.4-config
    lrwxrwxrwx 1 root root   10 Mar 23  2014 /usr/bin/python3m -> python3.4m
    lrwxrwxrwx 1 root root   17 Mar 23  2014 /usr/bin/python3m-config -> python3.4m-config
    lrwxrwxrwx 1 root root   16 Dec 21  2013 /usr/bin/python-config -> python2.7-config
    lrwxrwxrwx 1 root root   58 Feb 20  2014 /usr/bin/pythontex -> ../share/texlive/texmf-dist/scripts/pythontex/pythontex.py
    -rwxr-xr-x 1 root root  306 Feb 20  2014 /usr/bin/pythontex3

  6. #26
    Join Date
    Mar 2007
    Beans
    387

    Re: Messed up Python installation

    /usr/bin/pycompile seems to be throwing off the error. pycompile is part of package python-minimal you might try reinstalling that

  7. #27
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Messed up Python installation

    Code:
    lrwxrwxrwx 1 root root   18 May 12 22:33 /usr/bin/python -> /usr/bin/python2.4
    What version of Ubuntu are you using?
    I do not think 2.4 as been the default for years, and it is normally the default install of 2.7. But many programs now use python3, but must specify that.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 3 of 3 FirstFirst 123

Tags for this Thread

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
  •