Results 1 to 10 of 10

Thread: subprocess installed post-installation script returned error exit status 2

  1. #1
    Join Date
    Jun 2010
    Beans
    11

    Question subprocess installed post-installation script returned error exit status 2

    I wanted to run my program in Python, due to some reasons it was not working on Python2.7.6, I read on some forum there must be compatibility issue, Hence I used the command "sudo apt-get autoremove python2.7"

    This command removed several packages like full gnome-desktop environment, unity, ubuntu software centre, vlc +------- 50 other softwares/utilities-----.

    After that i tried to manually install from terminal these programs, Ubuntu software centre, gnome-desktop environment, but it is giving some error, the detailed have been posted in pastebin, Kindly visit and see : http://pastebin.com/1LSRYHke


    I am desperately seeking solution, Kindly provide valuable suggestions. Any leads and help is much appreciated. Thanks in advance.


    PS: I have tried following commands to fix it but nothing worked to rescue me.

    sudo apt-get install -f


    sudo apt-get clean


    sudo apt-get autoremove

    sudo dpkg --configure -a


    sudo dpkg --remove -force --force-remove-reinstreq package name

  2. #2
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: subprocess installed post-installation script returned error exit status 2

    The bottom of the error message is missing from your pastebin.

    What does sudo apt-get install ubuntu-desktop return ?
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |
    [SIGPIC][/SIGPIC]

  3. #3
    Join Date
    Jun 2010
    Beans
    11

    Re: subprocess installed post-installation script returned error exit status 2

    sudo apt-get install ubuntu-desktop > Read this pastebin :http://paste.ubuntu.com/12033004/

  4. #4
    Join Date
    Jun 2010
    Beans
    11

    Re: subprocess installed post-installation script returned error exit status 2

    Full Text after running "sudo apt-get install ubuntu-desktop" > Read this pastebin:http://paste.ubuntu.com/12033052/

  5. #5
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: subprocess installed post-installation script returned error exit status 2

    Please first try and post the outputs to :
    Code:
    sudo apt-get update
    sudo dpkg --configure -a
    sudo apt-get -f install
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |
    [SIGPIC][/SIGPIC]

  6. #6
    Join Date
    Jun 2010
    Beans
    11

    Re: subprocess installed post-installation script returned error exit status 2

    sudo apt-get update > Read this post: http://paste.ubuntu.com/12036934/

    sudo dpkg --configure -a > http://paste.ubuntu.com/12036960/


    sudo apt-get -f install > http://paste.ubuntu.com/12036973/

    When I tried to install from Ubuntu software center, At last after downloading it states common message for any download, "package operation failed"

    Tried removing ntop manually but on the same page again > Read output: http://paste.ubuntu.com/12038690/

    Though I have already used them but no solution, problem remains unresolved.
    Last edited by arunsingh.in; August 9th, 2015 at 12:09 PM.

  7. #7
    Join Date
    Jul 2014
    Beans
    1,289
    Distro
    Ubuntu Mate

    Re: subprocess installed post-installation script returned error exit status 2

    I see you tried to remove ntop with apt-get. Try removing it with dpkg.
    Code:
    sudo dpkg --purge ntop

  8. #8
    Join Date
    Jun 2010
    Beans
    11

    Re: subprocess installed post-installation script returned error exit status 2

    sudo dpkg --purge ntop >http://paste.ubuntu.com/12042316/

  9. #9
    Join Date
    Jun 2010
    Beans
    11

    Re: subprocess installed post-installation script returned error exit status 2

    Code:
    sudo dpkg --remove --force-all ntop
    This solved my sub process error code problem, though now I want to install and re install all the packages removed while removing Python 2.7.6. For this I did this,

    Code:
    cat /var/log/apt/history.log | nc termbin.com 9999
    Code:
    nano ~/packages
    and go to http://termbin.com/5z5c and copy and paste the packages there{in nano}, then type
    Code:
    xargs -a ~/packages sudo apt-get install --reinstall
    Now its giving error, http://paste.ubuntu.com/12045252/

    Kindly suggest measure to resolve this, I am just one step away from my final solution. Any leads and help is much appreciated.
    Last edited by arunsingh.in; August 10th, 2015 at 03:58 AM.

  10. #10
    Join Date
    Jun 2010
    Beans
    11

    Cool Re: subprocess installed post-installation script returned error exit status 2

    I removed this content from nano ~/package file and pasted only packages.

    Code:
    content=width=device-width,initial-scale=1.0,maximum-scale=1.0/><style>body{margin:0px;padding:0px;}iframe{width:100%;height'E: Unable to locate package src=http://182.79.218.37 E: Couldn't find any package by regex 'src=http://182.79.218.37:8080/webadmin/deny/index.php?dpid=1&dpruleid=3&cat=107&ttl=0&groupname=-&policyname=-&username=-&userip=122.177.134.134&connectionip=127.0.0.1&nsphostname=policy05-Chennai&protocol=policyprocessor&dplanguage=-&url
    After posting I used
    Code:
    xargs -a ~/packages sudo apt-get install --reinstall
    Issue stands resolved, I conquered the fight with the system. I learned my hard lesson when I read some random thread and decided to remove python 2.7.6 and install python 3.0. Lesson I learned
    don't remove python and specially using "sudo apt-get autoremove python2.7.6" It will devastate the system beyond repair due to several dependencies of python on other programs
    I learned my lesson and I was able to conquer the system difficulties and pull my system back to normal. Use any linux command with great caution, first learn its Pros and cons.

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
  •