Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-30-2011, 01:43 AM   #1
LQ Newbie
Registered: Apr 2011
Posts: 22

Rep: Reputation: Disabled
Sub-Process /usr/bin/dpkg returned an error code

Hello All,
I am the new user of linux and i have installed ubuntu server 10.10. When giving the command sudo apt-get install mysql-server-5.1, it shows error like this

dpkg: error processing /var/cache/apt/archives/mysql-server-5.1_5.1.49-1ubuntu8.1_i386.deb
tryng to overwrite '/etc/init.d/mysql' , which is also in package mysql-server 5.1.49-1ubuntu8.1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

And i got the same error while giving sudo apt-get -f upgrade.

Thanks in advance
Old 04-30-2011, 11:29 PM   #2
Senior Member
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
post the output of

sudo apt-get update && sudo apt-get install mysql-server
This is the metapackage that depends on the latest version of mysql-server.

It seems that you may already have the latest version installed (5.1.49-1ubuntu8.1.)


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
E: Sub-process /usr/bin/dpkg returned an error code (1) ashwani.sahni Ubuntu 1 05-14-2010 09:43 AM
Sub-process /usr/bin/dpkg returned an error code (1) yuri16 Linux - Software 6 09-03-2009 08:41 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) shogun1234 Linux - Software 1 05-17-2008 10:03 AM
Sub-process /usr/bin/dpkg returned an error code kako13 Debian 2 05-15-2008 07:01 PM
Sub-process /usr/bin/dpkg returned an error code (1) rapattack Debian 10 04-25-2008 12:19 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:40 PM.

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