problem with dpkg

Asked by Ajmal K

root@ajmal-desktop:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages will be REMOVED:
  pips-snx110
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 3,965kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 135048 files and directories currently installed.)
Removing pips-snx110 ...
dpkg: error processing pips-snx110 (--remove):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 pips-snx110
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ajmal-desktop:~#

returning error code 1 ? what can i do ?? i cannot install or remove any packages ? !!!! :( :'( plz help me,, i am new @ Linux...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dpkg Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

I hope you hvent't logged in as root and have used sudo in some way

sudo mv /var/lib/dpkg/info/pips-snx110.prerm ~/; sudo dpkg --remove --force-remove-reinstreq pips-snx110

should fix it.

Revision history for this message
Ajmal K (k.ajmals) said :
#2

Thanks actionparsnip, that solved my question.

Revision history for this message
Ajmal K (k.ajmals) said :
#3

thank you sir,,,, my problems were solved...

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #117036]: problem with dpkg
> Date: Thu, 8 Jul 2010 16:52:49 +0000
>
> Your question #117036 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/117036
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> I hope you hvent't logged in as root and have used sudo in some way
>
> sudo mv /var/lib/dpkg/info/pips-snx110.prerm ~/; sudo dpkg --remove
> --force-remove-reinstreq pips-snx110
>
> should fix it.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/117036/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/117036
>
> You received this question notification because you are a direct
> subscriber of the question.

_________________________________________________________________
The latest in fashion and style in MSN Lifestyle
http://lifestyle.in.msn.com/

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

This is one of the massive weaknesses in package based systems. One package breaks and the whole house of cards comes crashing down.

Glad you got the gold.