LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2012, 07:54 AM   #1
buee
Member
 
Registered: May 2009
Posts: 81

Rep: Reputation: 16
Cannot use apt/Can't upgrade or install


I get the following whenever I try to do anything with apt or dpkg on Ubuntu 12.04 Desktop x64:

Code:
Preconfiguring packages ...
dpkg: error processing libgnutls26:i386 (--configure):
 libgnutls26:i386 2.8.6-1ubuntu2.1 cannot be configured because libgnutls26:amd64 is in a different version (2.10.5-1ubuntu3)
dpkg: error processing libgnutls26 (--configure):
 libgnutls26:amd64 2.10.5-1ubuntu3 cannot be configured because libgnutls26:i386 is in a different version (2.8.6-1ubuntu2.1)
Errors were encountered while processing:
 libgnutls26:i386
 libgnutls26
E: Sub-process /usr/bin/dpkg returned an error code (1)
Other searches result in the following commands:

Code:
sudo apt-get autoclean
root@nas2:~# apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done

sudo apt-get clean
root@nas2:~# dpkg --configure -a
dpkg: error processing libgnutls26 (--configure):
 libgnutls26:amd64 2.10.5-1ubuntu3 cannot be configured because libgnutls26:i386 is in a different version (2.8.6-1ubuntu2.1)
dpkg: error processing libgnutls26:i386 (--configure):
 libgnutls26:i386 2.8.6-1ubuntu2.1 cannot be configured because libgnutls26:amd64 is in a different version (2.10.5-1ubuntu3)
Errors were encountered while processing:
 libgnutls26
 libgnutls26:i386
root@nas2:~# apt-get dist-upgrade -f
That outputs a lot of information and downloads 200+ packages then...

Code:
mini-client all 0.7.2+bzr57-0ubuntu1 [17.9 kB]
Fetched 213 MB in 2min 8s (1,661 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: error processing libgnutls26:i386 (--configure):
 libgnutls26:i386 2.8.6-1ubuntu2.1 cannot be configured because libgnutls26:amd64 is in a different version (2.10.5-1ubuntu3)
dpkg: error processing libgnutls26 (--configure):
 libgnutls26:amd64 2.10.5-1ubuntu3 cannot be configured because libgnutls26:i386 is in a different version (2.8.6-1ubuntu2.1)
Errors were encountered while processing:
 libgnutls26:i386
 libgnutls26
E: Sub-process /usr/bin/dpkg returned an error code (1)
Another post, located here :http://www.linuxquestions.org/questi...pt-get-948017/ results in the following:

Code:
root@nas2:/media/NAS2/base/TBD# dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 libgnutls26          the GNU TLS library - runtime library
 libgnutls26:i386     the GNU TLS library - runtime library

root@nas2:/media/NAS2/base/TBD# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libgnutls26 libgnutls26:i386
Suggested packages:
  gnutls-bin gnutls-bin:i386
The following packages will be upgraded:
  libgnutls26 libgnutls26:i386
2 upgraded, 0 newly installed, 0 to remove and 183 not upgraded.
2 not fully installed or removed.
Need to get 0 B/907 kB of archives.
After this operation, 242 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: error processing libgnutls26:i386 (--configure):
 libgnutls26:i386 2.8.6-1ubuntu2.1 cannot be configured because libgnutls26:amd64 is in a different version (2.10.5-1ubuntu3)
dpkg: error processing libgnutls26 (--configure):
 libgnutls26:amd64 2.10.5-1ubuntu3 cannot be configured because libgnutls26:i386 is in a different version (2.8.6-1ubuntu2.1)
Errors were encountered while processing:
 libgnutls26:i386
 libgnutls26
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@nas2:/media/NAS2/base/TBD# dpkg --configure --pending
dpkg: error processing libgnutls26 (--configure):
 libgnutls26:amd64 2.10.5-1ubuntu3 cannot be configured because libgnutls26:i386 is in a different version (2.8.6-1ubuntu2.1)
dpkg: error processing libgnutls26:i386 (--configure):
 libgnutls26:i386 2.8.6-1ubuntu2.1 cannot be configured because libgnutls26:amd64 is in a different version (2.10.5-1ubuntu3)
Errors were encountered while processing:
 libgnutls26
 libgnutls26:i386
I was asked what I was doing when this arose. I did the distribution upgrades from 10.04 -> 10.10 -> 11.04 -> 11.10 -> 12.04. Rebooted, nothing since (a couple weeks ago). I just tried to update the system a couple days ago and have been working to get rid of these errors ever since.

Is it recoverable?
 
Old 08-01-2012, 08:44 AM   #2
cortman
Member
 
Registered: Jan 2012
Location: ZZ9 Plural Z Alpha
Distribution: Crunchbang 11, LFS 7.3, DSL 4.1.10, Lubuntu 12.10, Debian 7
Posts: 219

Rep: Reputation: 43
Have you tried running

Code:
sudo dpkg --configure -a
?
 
Old 08-01-2012, 09:11 AM   #3
buee
Member
 
Registered: May 2009
Posts: 81

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by cortman View Post
Have you tried running

Code:
sudo dpkg --configure -a
?
Yes, I had, but got similar output.

I managed to download libgnutls26 from a random ubuntu mirror and dpkg let me install it. I ran all the above commands again and I can now use apt again. No idea what happened, but I'm just glad it's fixed.
 
  


Reply

Tags
apt, dependancy



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
apt error after upgrade and 'apt-get -f install' does not sort it out zimgir Ubuntu 1 01-12-2012 10:09 PM
sudo apt-get -f install always fails for glibc upgrade ... kedar.mhaswade Linux - Software 3 08-06-2009 02:48 AM
Error with apt, on any command; update, upgrade, install etc Brian5 Ubuntu 2 11-27-2007 11:52 PM
apt-get wont install or upgrade acidblue Debian 3 04-22-2007 04:01 PM
Question about 'apt-get upgrade' versus 'apt-get install' eur0dad Red Hat 8 07-16-2006 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:23 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