Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    unable remove catblock pkg

    Reply
    Page 1 of 4 | 1   2     3   | Next | Last
    maemo.it | # 1 | 2010-11-20, 20:36 | Report

    hi community, I'm unable to remove catblock pkg (please see screenshot here attached).
    I did many commands without solution:
    apt-get remove/purge/-f...
    dpkg -purge/--force-remove-essential/...
    dpkg tells me: o such file or directory but this app is present and working (I can launch it from terminal using catblock command).
    some idea please?

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Images
     

     
    nicolai | # 2 | 2010-11-20, 20:57 | Report

    The installation script assumes bash is installed :-)
    You have to edit the installation script manually.

    change the first line:
    #!/bin/bash
    to
    #!/bin/sh
    in both files
    /var/lib/dpkg/info/catblock.prerm
    and
    /var/lib/dpkg/info/catblock.postinst


    nicolai

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 7 Users Say Thank You to nicolai For This Useful Post:
    F2thaK, fatcobrah, maemo.it, matts76, mkderb, osama

     
    maemo.it | # 3 | 2010-11-21, 00:44 | Report

    Nicolai....I love you!!!
    Thank you very much, solved!
    Please can you tell me what means your solution bash->sh?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    danley | # 4 | 2010-11-21, 01:08 | Report

    This first line "#!/bin/bash" is also called the shebang and tells the OS which program to use to interpret the script. after "#!" follows the path to the program

    /bin/sh is the standard sh(ell) in linux, bash stands for the more advandced bourne again shell. both are shells and there are lots of other shells (ash, zsh, csh....) but they have to be installed to be used (of course...)

    so he changed the program that interprets your install scripts from bash (that was not installed) to the standard shell.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to danley For This Useful Post:
    maemo.it, nicolai, osama

     
    bilalgondal | # 5 | 2010-12-02, 10:44 | Report

    hi...m newbie...i just install catblock..i want to remove kindly tell me how to edit installation script manually.Thanks in adv

    Originally Posted by nicolai View Post
    The installation script assumes bash is installed :-)
    You have to edit the installation script manually.

    change the first line:
    #!/bin/bash
    to
    #!/bin/sh
    in both files
    /var/lib/dpkg/info/catblock.prerm
    and
    /var/lib/dpkg/info/catblock.postinst


    nicolai

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Captwheeto | # 6 | 2010-12-02, 12:48 | Report

    sudo sed -i 's/bash/sh/g' /var/lib/dpkg/info/catblock.prerm
    sudo sed -i 's/bash/sh/g' /var/lib/dpkg/info/catblock.postinst

    That should do it. I hope

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Captwheeto | # 7 | 2010-12-02, 12:49 | Report

    Put these in the terminal remember

    Edit | Forward | Quote | Quick Reply | Thanks

     
    matts76 | # 8 | 2010-12-02, 13:51 | Report

    You can also edit the files manualy using filebox, navigate to file "/var/lib/dpkg/info/catblock.prerm" press and hold then select edit, then once you have changed the file from #!/bin/bash to #!/bin/sh choose save from the top drop down menu, then repeat the same steps for "/var/lib/dpkg/info/catblock.postinst"
    Once you have done that you can just remove it in the normal way

    For me its so much easier to use a file manager (and filebox is exelent) as i get far too easily lost with all the commands in xterm

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by matts76; 2010-12-02 at 14:00.

     
    bilalgondal | # 9 | 2010-12-02, 18:03 | Report

    i installed filebox but i dint find this catblock...how to find this file i searched alot...please help...
    Originally Posted by matts76 View Post
    You can also edit the files manualy using filebox, navigate to file "/var/lib/dpkg/info/catblock.prerm" press and hold then select edit, then once you have changed the file from #!/bin/bash to #!/bin/sh choose save from the top drop down menu, then repeat the same steps for "/var/lib/dpkg/info/catblock.postinst"
    Once you have done that you can just remove it in the normal way

    For me its so much easier to use a file manager (and filebox is exelent) as i get far too easily lost with all the commands in xterm

    Edit | Forward | Quote | Quick Reply | Thanks

     
    bilalgondal | # 10 | 2010-12-05, 08:27 | Report

    finally i have got the folder.when i finished editing at the time of saving it said file is read only..any solution..help..THANKS
    Originally Posted by matts76 View Post
    You can also edit the files manualy using filebox, navigate to file "/var/lib/dpkg/info/catblock.prerm" press and hold then select edit, then once you have changed the file from #!/bin/bash to #!/bin/sh choose save from the top drop down menu, then repeat the same steps for "/var/lib/dpkg/info/catblock.postinst"
    Once you have done that you can just remove it in the normal way

    For me its so much easier to use a file manager (and filebox is exelent) as i get far too easily lost with all the commands in xterm

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 4 | 1   2     3   | Next | Last
vBulletin® Version 3.8.8
Normal Logout