maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   unable remove catblock pkg (https://talk.maemo.org/showthread.php?t=65939)

maemo.it 2010-11-20 20:36

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?
:)

nicolai 2010-11-20 20:57

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

maemo.it 2010-11-21 00:44

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?
:)

danley 2010-11-21 01:08

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.

bilalgondal 2010-12-02 10:44

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:

Originally Posted by nicolai (Post 878990)
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 2010-12-02 12:48

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 ;)

Captwheeto 2010-12-02 12:49

Re: unable remove catblock pkg
 
Put these in the terminal remember

matts76 2010-12-02 13:51

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

bilalgondal 2010-12-02 18:03

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:

Originally Posted by matts76 (Post 887528)
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


bilalgondal 2010-12-05 08:27

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:

Originally Posted by matts76 (Post 887528)
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



All times are GMT. The time now is 12:33.

vBulletin® Version 3.8.8