1

I am trying to install an NFS server on my Ubuntu 12.04 machine but everytime it gives me an error like this:

david@machineA:~$ sudo apt-get install nfs-common nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-common is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nfs-kernel-server : Depends: nfs-common (= 1:1.2.5-3ubuntu3) but 1:1.2.5-3ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Below is the output of lsb_release -a:

david@machineA:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04 LTS
Release:        12.04
Codename:       precise

Is there anything wrong I am doing? How can I resolve this issue?

kos
  • 35,891
arsenal
  • 1,993

1 Answers1

0

Try running the following commands in this order:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get update
sudo apt-get install nfs-kernel-server

This will basically force the package cache to be updated, as well as upgrade other system utilities.

A problem you may be having is that you're specifying nfs-common, which gets the latest version. IIRC, apt will fulfill all dependencies (versions included) automagically, but forcing the install of nfs-common installs a too-new version of it.

Kaz Wolfe
  • 34,122
  • 21
  • 114
  • 172