Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
basil_brushOffline
Post subject: Apt says packages not available  PostPosted: 27.01.2011, 21:51



Joined: 2011-01-27
Posts: 3

Status: Offline
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:

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


"debian.list" contains:

      Code:
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.
 
 View user's profile Send private message  
Reply with quote Back to top
towoOffline
Post subject: RE: Apt says packages not available  PostPosted: 27.01.2011, 22:05



Joined: 2010-09-13
Posts: 496
Location: Pößneck / Thüringen
Status: Offline
And what are you doing exact?
 
 View user's profile Send private message  
Reply with quote Back to top
basil_brushOffline
Post subject:   PostPosted: 27.01.2011, 22:09



Joined: 2011-01-27
Posts: 3

Status: Offline
In the case of NFS server, this is the terminal output:

      Code:
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.
 
 View user's profile Send private message  
Reply with quote Back to top
towoOffline
Post subject:   PostPosted: 27.01.2011, 22:23



Joined: 2010-09-13
Posts: 496
Location: Pößneck / Thüringen
Status: Offline
      Code:

root:Defiant> apt-cache policy nfs-common
nfs-common:
  Installiert: (keine)
  Kandidat:    1:1.2.2-4
  Versionstabelle:
     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
      Code:
apt-get update

before you try to install?
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject:   PostPosted: 27.01.2011, 22:33
Team Member


Joined: 2010-09-02
Posts: 481

Status: Offline
Its a completely fresh install, right?

You have to run
      Code:
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.

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
basil_brushOffline
Post subject:   PostPosted: 27.01.2011, 22:37



Joined: 2011-01-27
Posts: 3

Status: Offline
Thanks for your help. It seems "apt-get update" was the bit of magic I needed.
 
 View user's profile Send private message  
Reply with quote Back to top
towoOffline
Post subject:   PostPosted: 27.01.2011, 22:39



Joined: 2010-09-13
Posts: 496
Location: Pößneck / Thüringen
Status: Offline
You should read the basics about debian!
 
 View user's profile Send private message  
Reply with quote Back to top
piperOffline
Post subject:   PostPosted: 29.01.2011, 22:21
Moderator


Joined: 2010-09-11
Posts: 480
Location: cheektowaga, ny
Status: Offline
      Code:
apt-get update && apt-get install nfs-kernel-server nfs-common portmap


works good also Wink

_________________
debian sid | apt-get into it
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio