LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in Synaptic package manager in UBUNTU 10.04 (https://www.linuxquestions.org/questions/linux-newbie-8/problem-in-synaptic-package-manager-in-ubuntu-10-04-a-814552/)

BlueSkull 06-16-2010 01:08 PM

problem in Synaptic package manager in UBUNTU 10.04
 
Hi..
Whenever I start Synaptic package manager it shows some changes to apply and when I click apply it shows error E: /var/cache/apt/archives/mysql-server-5.1_5.1.41-3ubuntu12.3_i386.deb: subprocess new pre-removal script returned error exit status 1.
And then whole application exit.
please help.

rokytnji 06-16-2010 02:47 PM

Just read the error. It tells you what you need to do.

subprocess pre-removal script returned error

This means a script is getting in your way, this pre/post install scripts are stored in /var/lib/dpkg/info. You can find the scripts related to a specific package with :

ls /var/lib/dpkg/info | grep "package"

where "package" is the name of the program you want to remove (without brackets).

In your case it is
Quote:

/var/cache/apt/archives/mysql-server-5.1_5.1.41-3ubuntu12.3_i386.deb
which is the culprit.

So google how to remove something using apt-get commands and learn how to remove

mysql-server-5.1

BlueSkull 06-17-2010 11:11 AM

According to article http://www.debian-administration.org/articles/251 I should not edit .ist or .md5sums scripts.But I found these two files only.
Code:

aduait@aduait-laptop:~$ ls /var/lib/dpkg/info/mysql-client-5.1.*
/var/lib/dpkg/info/mysql-client-5.1.list  /var/lib/dpkg/info/mysql-client-5.1.md5sums


rokytnji 06-17-2010 11:42 AM

Quote:

To fix this you have two choices:

Edit the script to make the failure non-terminal.
Examine the script and determine why it fails.
In general most of the scripts associated with Debian packages will begin with
Code:

#!/bin/sh -e
Or:

Code:

#!/bin/sh

set -e

Either of these two scripts will abort with an error if something fails. A simple fix is to remove the "-e", or the "set -e" line from the script before repeating your upgrade/install/removal attempt.

I did not want to post a removal command in my last post as I did not want to post erroneous info. That was why I pointed you to what the error message said and what it means. I try to help a user find their way and use Linux. I won;t hold their hand and have them say I broke their install. You can add a Comment (#) in front of set -e and try sysnaptic again.

HMMM
http://www.linuxforums.org/forum/ubu...u-10-04-a.html


All times are GMT -5. The time now is 11:52 AM.