Active Topics

 


Reply
Thread Tools
Posts: 235 | Thanked: 89 times | Joined on Oct 2009 @ italy
#1
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?
Attached Images
 
__________________
If you found my post useful please thank me, I appreciate!
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#2
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
 

The Following 7 Users Say Thank You to nicolai For This Useful Post:
Posts: 235 | Thanked: 89 times | Joined on Oct 2009 @ italy
#3
Nicolai....I love you!!!
Thank you very much, solved!
Please can you tell me what means your solution bash->sh?
__________________
If you found my post useful please thank me, I appreciate!
 
Posts: 5 | Thanked: 7 times | Joined on Apr 2010 @ Stuttgart, Germany
#4
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.
 

The Following 3 Users Say Thank You to danley For This Useful Post:
Posts: 12 | Thanked: 0 times | Joined on Dec 2010
#5
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
 
Captwheeto's Avatar
Posts: 302 | Thanked: 193 times | Joined on Oct 2008 @ England
#6
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
 
Captwheeto's Avatar
Posts: 302 | Thanked: 193 times | Joined on Oct 2008 @ England
#7
Put these in the terminal remember
 
matts76's Avatar
Posts: 324 | Thanked: 201 times | Joined on Apr 2010 @ UK
#8
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
__________________
My N900@1Ghz Rocks
I wanted a phone, but i ended up with an all encompasing obsession


Last edited by matts76; 2010-12-02 at 14:00.
 
Posts: 12 | Thanked: 0 times | Joined on Dec 2010
#9
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
 
Posts: 12 | Thanked: 0 times | Joined on Dec 2010
#10
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:03.