LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-25-2011, 11:26 PM   #1
unimous
LQ Newbie
 
Registered: Mar 2011
Location: Anhui Normal University
Distribution: Ubuntu
Posts: 18
Blog Entries: 1

Rep: Reputation: 0
Unhappy /usr/bin/dpkg returned an error code (1)


I don't know why, but every time i try to apt-get install something, the same error happens, just like this:
Code:
$ sudo apt-get install gcc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up medibuntu-keyring (2008.04.20) ...
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: PC
dpkg: error processing medibuntu-keyring (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 medibuntu-keyring
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 04-26-2011, 04:06 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Have you tried removing and then getting the medibuntu pubkey again?
 
Old 05-01-2011, 03:46 PM   #3
boydgrossii
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: 0
Question

Quote:
Originally Posted by unimous View Post
I don't know why, but every time i try to apt-get install something, the same error happens, just like this:
Code:
$ sudo apt-get install gcc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up medibuntu-keyring (2008.04.20) ...
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: PC
dpkg: error processing medibuntu-keyring (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 medibuntu-keyring
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've been having this same problem after upgrading to Ubuntu 11.04. I get this on every package I get, not just one.
 
Old 05-01-2011, 04:40 PM   #4
5149.5
LQ Newbie
 
Registered: Apr 2011
Location: Oceanside
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
Code:
sudo apt-get --allow-unauthenticated install medibuntu-keyring
 
Old 05-01-2011, 05:13 PM   #5
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Find what package is causing the issue, in this case medibuntu-keyring, go into synaptic and remove it completely, then re-install it.
 
Old 05-01-2011, 05:20 PM   #6
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
dpkg is the heart of your package management system. If there is an error it is not going to work until you correct it.

Man pages are your friend if you want more information on the package management system.
Code:
man dpkg
is a great place to start.

This link is real good too;
http://www.debian.org/doc/manuals/re...e/ch02.en.html

Yes I know it is from Debian. So is Ubuntu.
 
Old 05-02-2011, 08:50 AM   #7
boydgrossii
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by k3lt01 View Post
Find what package is causing the issue, in this case medibuntu-keyring, go into synaptic and remove it completely, then re-install it.
I believe mine is stemming from Samba4. It was part of the upgrade and failed. Now, it seems that I can't remove or install much. Where is synaptic? I've not heard this term yet (i'm still a newbie).
 
Old 05-02-2011, 11:33 AM   #8
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
System>Administration>Synaptic is where you will find synaptic. Wonderful graphic front end for package management.
 
Old 05-03-2011, 08:43 AM   #9
boydgrossii
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: 0
I reported a bug and a bunch of other people did too. Now, I'm getting lots o e-mails of poeple having this same problem. One said to simply uninstall Samba4, but when I try, I get an error and it never completes.
 
Old 05-03-2011, 11:09 AM   #10
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Try this;
Code:
sudo apt-get -f install
That may help. Certainly won't hurt.
 
Old 05-03-2011, 10:35 PM   #11
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
When you find Synaptic go down to the bottom left pane and click on Custom Filters, then in the top left pane click on Broken and see if anything is listed there. Click on it and mark it for Complete Removal. Then up the top click apply and go from there. If there are any errors post them here and we can help you through it.
 
Old 05-03-2011, 11:43 PM   #12
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
You could also try this from the terminal:
Code:
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get dist-upgrade
 
  


Reply



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
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
E: Sub-process /usr/bin/dpkg returned an error code (1) Skullnick Linux - Software 2 01-30-2010 11:27 AM
Sub-process /usr/bin/dpkg returned an error code (1) yuri16 Linux - Software 6 09-03-2009 07:41 PM
E: Sub-process /usr/bin/dpkg returned an error code (1) shogun1234 Linux - Software 1 05-17-2008 09:03 AM
Sub-process /usr/bin/dpkg returned an error code (1) adrian1979 Debian 1 11-12-2006 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration