Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to remove websectech lib

16 views
Skip to first unread message

Igor

unread,
May 23, 2013, 4:17:51 AM5/23/13
to
Hi.
I want to remove this using software center but i can not complete the
task. This is error message that i get :
(Reading database ... 540510 files and directories currently installed.)
Removing websectech ...
rm: cannot remove `eToken_asseco.conf': No such file or directory
dpkg: error processing websectech (--remove):
subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
cp: cannot stat `eToken_asseco.conf': No such file or directory
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit
status 1
Errors were encountered while processing:
websectech
Error in function:

Can someone help me ?

Regards !

Richard Kettlewell

unread,
May 23, 2013, 5:02:24 AM5/23/13
to
What distribution are you using, and where did you get the websectech
package from in the first place? It does not appear to be part of
either Debian or Ubuntu, as far as I can tell.

--
http://www.greenend.org.uk/rjk/

Igor

unread,
May 23, 2013, 5:16:55 AM5/23/13
to
--------------------------------
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"

Websectech is lib for smart card or USB reader and it is used for online
banking purposes with combination of safenet lib.

btw. i try to force remove it but the problem is the same.
If i can not remove it i can not reinstall it, or ?


Igor

unread,
May 23, 2013, 5:19:20 AM5/23/13
to
You can download one copy from :
http://my.glux.org/zaba/websectech-1-5.i386.rpm

Jasen Betts

unread,
May 23, 2013, 7:03:04 AM5/23/13
to
On 2013-05-23, Igor <ig...@com.net> wrote:
> Hi.
> I want to remove this using software center but i can not complete the
> task. This is error message that i get :
> (Reading database ... 540510 files and directories currently installed.)
> Removing websectech ...
> rm: cannot remove `eToken_asseco.conf': No such file or directory
> dpkg: error processing websectech (--remove):
> subprocess installed pre-removal script returned error exit status 1
> No apport report written because MaxReports is reached already

reinstall the package and then uninstall it.

--
⚂⚃ 100% natural

--- news://freenews.netfront.net/ - complaints: ne...@netfront.net ---

Igor

unread,
May 23, 2013, 8:22:48 AM5/23/13
to
On 05/23/2013 01:03 PM, Jasen Betts wrote:
> On 2013-05-23, Igor <ig...@com.net> wrote:
>> Hi.
>> I want to remove this using software center but i can not complete the
>> task. This is error message that i get :
>> (Reading database ... 540510 files and directories currently installed.)
>> Removing websectech ...
>> rm: cannot remove `eToken_asseco.conf': No such file or directory
>> dpkg: error processing websectech (--remove):
>> subprocess installed pre-removal script returned error exit status 1
>> No apport report written because MaxReports is reached already
>
> reinstall the package and then uninstall it.
>
--------------------------
I converterd the rpm file into deb and installed it over software center
but the error is almost the same..


(Reading database ... 538569 files and directories currently installed.)
Preparing to replace websectech 1-5 (using
.../ZBA/websectech_1-6_i386.deb) ...
rm: cannot remove `eToken_asseco.conf': No such file or directory
dpkg: warning: subprocess old pre-removal script returned error exit
status 1
dpkg - trying script from the new package instead ...
dpkg: error processing /home/mybox/ZBA/websectech_1-6_i386.deb (--install):
there is no script in the new version of the package - giving up
cp: cannot stat `eToken_asseco.conf': No such file or directory
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit
status 1
Errors were encountered while processing:
------------------------

J G Miller

unread,
May 23, 2013, 8:20:03 AM5/23/13
to
On Thursday, May 23rd, 2013, at 10:17:51h +0200, Igor observed:

> I want to remove this using software center but i can not complete the
> task. This is error message that i get :
> (Reading database ... 540510 files and directories currently installed.)
> Removing websectech ...
> rm: cannot remove `eToken_asseco.conf': No such file or directory
> dpkg: error processing websectech (--remove):
> subprocess installed pre-removal script returned error exit status 1

When your run the packaging software to remove the package, it runs a
deinstallation script provided by the package. This script is trying
to delete a file which does not exist (poorly written script). Because
the script exits with an error status, the packaging software gives up.

So in such cases the hack to get around the non-existent file is to
temporarily create it in whatever is the appropriate directory, eg

touch eToken_asseco.conf

If there are even more errors complaining about non-existent files
(possibly because somebody manually deleted them in ignorance in
trying to remove the software) then the simplest thing is to
re-install the package so that all the files are there, and
then run the packaging software removal command.

Igor

unread,
May 23, 2013, 8:29:55 AM5/23/13
to
--------------
i agree with you and i will try to do that but i dont know where this
file was ( or should be ) created in first place..

Locate shows 0 results so i guess that there is no copy of this file on
my computer.

J G Miller

unread,
May 23, 2013, 11:32:03 AM5/23/13
to
On Thursday, May 23rd, 2013, at 14:29:55h +0200, Igor confessed:

> but i dont know where this file was ( or should be )
> created in first place..

So in that case look at the removal script and comment out the line where
it is trying to remove the file (see below for details).

> Locate shows 0 results so i guess that there is no copy of this file on
> my computer.

Which is why the removal script fails because there is no file to
delete.

Now you finally revealed in another posting that

"I converterd the rpm file into deb"

Now when it was converted into a deb package and installed, it should have
created some dpkg management files in /var/lib/dpkg/info with the name
something like maybe websectech*

So look for something like

/var/lib/dpkg/info/websectech.postrm

and if that exists edit that file and comment out where it is
trying to remove the non-existent file.

If nothing like that exists, just unpack the rpm file into a
temporary directory using

rpm2cpio websectech-whateverversion.rpm | cpio -idmv --no-absolute-filenames

and look there for any mention of the non-existent file and where
it should be located so that you can do a touch hack operation.

John Hasler

unread,
May 23, 2013, 11:52:45 AM5/23/13
to
J G Miller writes:
> ...and if that exists edit that file and comment out where it is
> trying to remove the non-existent file.

Just create the file that it is trying to remove. It can be empty.
--
John Hasler
jha...@newsguy.com
Dancing Horse Hill
Elmwood, WI USA

Igor

unread,
May 23, 2013, 12:17:30 PM5/23/13
to
---------------
Damn guys you really know your job :-)
I followed your instructions and de-installed websec without problem.
When websec was installed i could not make any package update or install
because it always shows error from previous posts.
Unbelievable :-) I finally updated my VM :-)
Thank you !
--------------------
I will post one question regarding gimp but this is another topic :-)

J G Miller

unread,
May 23, 2013, 12:55:22 PM5/23/13
to
On Thursday, May 23rd, 2013, at 18:17:30h +0200, Igor reported:

> I followed your instructions and de-installed websec without problem.

Glad to hear that you finally got your problem resolved.

> When websec was installed i could not make any package update or install
> because it always shows error from previous posts.

Indeed that is the case and sometimes this can lead to a Catch 22
type scenario.

I forgot to mention, and you should make a note of this for the future,
that if dpkg runs into problems, or if something appears not to be quite
right and you need further information on what is happening (usually to
find out if it is some preisntall or post remove script) then, as the
manual page says (but buried near the bottom), add the debug flag
with a suitable value.

-Doctal, --debug=octal
Switch debugging on. octal is formed by bitwise-orring desired
values together from the list below (note that these values may
change in future releases). -Dh or --debug=help display these
debugging values.

Number Description
1 Generally helpful progress information
2 Invocation and status of maintainer scripts
10 Output for each file processed
100 Lots of output for each file processed
20 Output for each configuration file
200 Lots of output for each configuration file
40 Dependencies and conflicts
400 Lots of dependencies/conflicts output
10000 Trigger activation and processing
20000 Lots of output regarding triggers
40000 Silly amounts of output regarding triggers
1000 Lots of drivel about e.g. the dpkg/info dir
2000 Insane amounts of drivel

Igor

unread,
May 24, 2013, 2:49:54 AM5/24/13
to
OK. Thank you!
0 new messages