Software - Apt says packages not available

basil_brush - 27.01.2011, 21:51
Post subject: Apt says packages not available
I'm new to Debian, having mostly used SuSE before, but wanted to try it in the hope that the rolling updates would give me updated software more quickly and without regular system installations.

My first task is to get NFS server running and I'm using the online tutorials for installing NFS on Debian, but no matter what software I try to install apt-get keeps telling me that packages are not available.

There are two files in sources.list.d. "aptosid.list" contains:

deb http://oscar.aptosid.com/debian/ sid main fix.main
#deb-src http://oscar.aptosid.com/debian/ sid main fix.main

"debian.list" contains:

deb http://cdn.debian.net/debian/ sid main
#deb-src http://cdn.debian.net/debian/ sid main

I'm completely stuck and google wasn't any help.
towo - 27.01.2011, 22:05
Post subject: RE: Apt says packages not available
And what are you doing exact?
basil_brush - 27.01.2011, 22:09
Post subject:
In the case of NFS server, this is the terminal output:

apt-get install nfs-kernel-server nfs-common portmap
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package nfs-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package nfs-kernel-server
E: Package 'nfs-common' has no installation candidate
E: Unable to locate package portmap

The output is essentially the same for any other packages I try to install.
towo - 27.01.2011, 22:23
Post subject:

root:Defiant> apt-cache policy nfs-common
  Installiert: (keine)
  Kandidat:    1:1.2.2-4
     1:1.2.2-4 0
        500 http://ftp.de.debian.org/debian/ unstable/main amd64 Packages
        200 ftp://ftp.at.debian.org/debian/ testing/main amd64 Packages

Could it be, you have not done a
apt-get update

before you try to install?
DonKult - 27.01.2011, 22:33
Post subject:
Its a completely fresh install, right?

You have to run
apt-get update
to update the information APT has about packages to make it work. As we get fresh packages basically every day (or even every 6 hours) you need to run this from time to time before installing something new, otherwise APT doesn't know where the cool new stuff is…
(I guess there was something similar required for the whatever packagemanager the others used)

But let me recommend to you to do your first dist-upgrade as described in the manual before installing something else. You will learn a lot in the process which should answer most questions and if not feel free to ask.
basil_brush - 27.01.2011, 22:37
Post subject:
Thanks for your help. It seems "apt-get update" was the bit of magic I needed.
towo - 27.01.2011, 22:39
Post subject:
You should read the basics about debian!
piper - 29.01.2011, 22:21
Post subject:
apt-get update && apt-get install nfs-kernel-server nfs-common portmap

works good also Wink
All times are GMT - 12 Hours
Powered by PNphpBB2 © 2003-2010 The Zafenio Group