6

When i try to install the gnutls libraries (libgnutls26), and the generic linux kernel headers (linux-headers-generic), I get the following error:

The following packages have unmet dependencies:

libgnutls26: Depends: libc6 (>= 2.14) but 2.15-0ubuntu10.4 is installed
             Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu4 is installed
libgnutls26:i386: Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu4 is installed
linux-headers-generic: Depends: linux-headers-3.2.0-41-generic but it is not installed

How can I fix this error?

Thomas Ward
  • 78,878
Saran
  • 61

3 Answers3

6

Install aptitude using:

sudo apt-get install aptitude

Then do:

sudo aptitude install libgnutls26

Aptitude will show the problems and propose a solution.

The first proposed solution will be to keep everything as-is. Answer 'n' to that question.

The next proposed solution will be to downgrade all of the dependencies that are currently too new. Answer Y to that.

Then, try installing libgnutls26 again.

AzkerM
  • 10,390
5

Not sure if there is conflicting dependencies already installed, but go to the terminal and type sudo apt-get update and then sudo apt-get upgrade

Tell me what message (if any you get like a 'warning...' or 'error..') you get. Also if you are trying to install GnuTLS go to synaptic package manager in your system tools menu, and do a search for it. When you find it right click and select install, and it will bring up the dependencies you need and install them as well.

1

Welcome to AskUbuntu!

In order to resolve dependencies, type in a terminal sudo apt-get -f install.

If all fails, simply manually install missing packages (by typing sudo apt-get install <name of package>).

Farid
  • 728