![]() |
unable remove catblock pkg
1 Attachment(s)
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? :) |
Re: unable remove catblock pkg
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 |
Re: unable remove catblock pkg
Nicolai....I love you!!! :)
Thank you very much, solved! Please can you tell me what means your solution bash->sh? :) |
Re: unable remove catblock pkg
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. |
Re: unable remove catblock pkg
hi...m newbie...i just install catblock..i want to remove kindly tell me how to edit installation script manually.Thanks in adv
Quote:
|
Re: unable remove catblock pkg
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 ;) |
Re: unable remove catblock pkg
Put these in the terminal remember
|
Re: unable remove catblock pkg
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:D 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:o |
Re: unable remove catblock pkg
i installed filebox but i dint find this catblock...how to find this file i searched alot...please help...
Quote:
|
Re: unable remove catblock pkg
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
Quote:
|
| All times are GMT. The time now is 12:33. |
vBulletin® Version 3.8.8