Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525

    [SOLVED] half installed package night mare


    I have tried to set up an IPv6 tunnel, which I've done before, and it worked. I tried now on my home server (not really an important device), and the installation of tspc went horribly wrong.

    I ended up having an incomplete install of tspc, which I then tried to remove again, but every time I try to remove it, it tries to stop the process, which it can't, quits and tries to finish the installation, which it can't.

    Now I want to remove the package, and try another, but I can't figure out a way, using either google or the man pages.

    Please help.

    By the way, error code was 303 for TSPC and 1 for dpkg.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    First try
    Code:
    sudo apt-get install -f
    If that fails, try
    Code:
    sudo apt-get update
    sudo apt-get autoclean
    sudo apt-get clean
    sudo dpkg --remove -force --force-remove-reinstreq tspc

  3. #3
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    for the first option I received
    Code:
    apt-get 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.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up tspc (2.1.1-6ubuntu2) ...
    Setting up IPv6 tunnel: Status error 303 in tunnel negociation: 303 Unsupported tunnel mode
    
    
    Error is 303: 303 is not defined as a client error, might be a TSP error?
    TSP session done
    invoke-rc.d: initscript tspc, action "start" failed.
    dpkg: error processing tspc (--configure):
     subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
     tspc
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    and for the last bit

    Code:
     dpkg --remove -force --force-remove-reinstreq tspc
    dpkg: conflicting actions -f (--field) and -r (--remove)
    
    Type dpkg --help for help about installing and deinstalling packages[*];
    Use `dselect' or `aptitude' for user-friendly package management;
    Type dpkg -Dhelp for a list of dpkg debug flag values;
    Type dpkg --force-help for a list of forcing options;
    Type dpkg-deb --help for help about manipulating *.deb files;
    Type dpkg --license for copyright license and lack of warranty (GNU GPL)[*].
    
    Options marked[*] produce a lot of output - pipe it through `less' or `more' !
    by the way, they are done using root.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Sorry, try it like this.
    Code:
    sudo dpkg --remove --force-remove-reinstreq tspc

  6. #5
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    Quote Originally Posted by reed9 View Post
    Sorry, try it like this.
    Code:
    sudo dpkg --remove --force-remove-reinstreq tspc
    This (quite annoyingly) put out the following:
    Code:
    (Reading database ... 
    54951 files and directories currently installed.)
    Removing tspc ...
    Shutting down IPv6 tunnel: invoke-rc.d: initscript tspc, action "stop" failed.
    dpkg: error processing tspc (--remove):
     subprocess pre-removal script returned error exit status 1
    Setting up IPv6 tunnel: Status error 303 in tunnel negociation: 303 Unsupported tunnel mode
    
    
    Error is 303: 303 is not defined as a client error, might be a TSP error?
    TSP session done
    invoke-rc.d: initscript tspc, action "start" failed.
    dpkg: error while cleaning up:
     subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
     tspc

  7. #6
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    Bounce,
    Sorry the problem still hasn't been solved.

  8. #7
    Don't know if this reply will help Bemk but here it is
    you are right, 'apt-get remove' does not do the job throughly, the solution to your problem, IMHO, can be solved this way, which is what i do in order to remove everything pertaining to the package in question:

    apt-get install deborphan debfoster

    #apt-get remove --purge package
    #apt-get clean

    the later will clean the /var

    #debfoster

    will show files and libraries still left after the apt-get remove --purge, if you don't recognize a library, keep it, later on, deborphan will give you a list of 'orphaned' libraries that are hanging with no use, and are safe to nuke.

    if you make a mistake with debfoster, type 'u' and will ask you again if you want to keep it. When you are thru with it, invoke deborphan.

    #deborphan

    will give a list of libraries that are hanging just taking space, to get rid of them:

    #deborphan | xargs apt-get -y remove purge

    when thru with that:

    #apt-get clean

    recently after a dist-ugrade to sid, it installed emacs21, i removed it, and debfoster found some files like emacsen, etc.

    now, i don't know if dpkg --purge is any better, i should try that sometime.
    I refuse to let fear and fear of others rule my life. It puts my humanity at risk.
    Accepting Death is the only way to stay alive.

  9. #8
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    Quote Originally Posted by rokytnji View Post
    Don't know if this reply will help Bemk but here it is
    Sorry Roky, but it already tried to reinstall at
    Code:
    apt-get remove --purge tspc
    This is starting to get really annoying.

    Here is the exact output:
    Code:
     apt-get remove --purge tspc
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      tspc*
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 213kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 56225 files and directories currently installed.)
    Removing tspc ...
    Shutting down IPv6 tunnel: invoke-rc.d: initscript tspc, action "stop" failed.
    dpkg: error processing tspc (--purge):
     subprocess pre-removal script returned error exit status 1
    Setting up IPv6 tunnel: Status error 501 in tunnel negociation: 501 Invalid IPv4 address
    
    
    Error is 501: 501 is not defined as a client error, might be a TSP error?
    TSP session done
    invoke-rc.d: initscript tspc, action "start" failed.
    dpkg: error while cleaning up:
     subprocess post-installation script returned error exit status 1
    Errors were encountered while processing:
     tspc
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  10. #9
    Sorry Bemk. That was my best shot for now.

    Error is 501: 501 is not defined as a client error, might be a TSP error?
    TSP seems to not want to leave like a bad case of Syphilis or Aids. I don't know if apt-get has a better kill package option than purge. Reed 9 also gave some good commands. You are right. This is annoying. I hope better minds than mine will kick into this thread.
    I refuse to let fear and fear of others rule my life. It puts my humanity at risk.
    Accepting Death is the only way to stay alive.

  11. #10
    Linux Enthusiast Bemk's Avatar
    Join Date
    Sep 2008
    Location
    Oosterhout-NB, Netherlands
    Posts
    525
    Quote Originally Posted by rokytnji View Post
    Sorry Bemk. That was my best shot for now.



    TSP seems to not want to leave like a bad case of Syphilis or Aids. I don't know if apt-get has a better kill package option than purge. Reed 9 also gave some good commands. You are right. This is annoying. I hope better minds than mine will kick into this thread.
    Thanks for your help anyway roky, and reed 9 also had good replies, but unfortunately they weren't good enough. In other words, I still need some help (not feeling like reinstalling that machine).

Posting Permissions

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