LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-16-2010, 01:08 PM   #1
BlueSkull
Member
 
Registered: Sep 2009
Posts: 73

Rep: Reputation: 17
Question 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.
 
Old 06-16-2010, 02:47 PM   #2
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 13 , Various Puppys (MacPup,Slack0),MX-14
Posts: 2,573
Blog Entries: 16

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
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
 
1 members found this post helpful.
Old 06-17-2010, 11:11 AM   #3
BlueSkull
Member
 
Registered: Sep 2009
Posts: 73

Original Poster
Rep: Reputation: 17
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

Last edited by BlueSkull; 06-17-2010 at 11:13 AM.
 
Old 06-17-2010, 11:42 AM   #4
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 13 , Various Puppys (MacPup,Slack0),MX-14
Posts: 2,573
Blog Entries: 16

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
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

Last edited by rokytnji; 06-17-2010 at 11:53 AM. Reason: I wonder why I bother
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem with synaptic package manager jpphelan Linux - Newbie 14 12-15-2009 11:08 PM
Problem in Synaptic Package Manager in ubuntu 9.10 BlueSkull Linux - Software 3 11-07-2009 11:52 AM
Ubuntu 8.04 Synaptic Package Manager BACTRATE Ubuntu 6 04-26-2008 10:05 AM
Problem with Synaptic Package Manager... sometimes! rsf21 Linux - Newbie 11 01-09-2008 11:38 PM
Synaptic Package Manager Problem tarobs Linux - Newbie 3 08-11-2006 12:40 PM


All times are GMT -5. The time now is 03:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration