Results 1 to 6 of 6

Thread: apt-get install

  1. #1
    Join Date
    Feb 2011
    Beans
    4

    apt-get install

    I am having no luck at all adding packages to my ubuntu server. I can update, so there is definitely connectivity - but whenever I type in a command, for instance:

    Code:
    sudo apt-get install vsftpd
    I get back:

    Code:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package vsftpd
    Is there anyone who can get me on the right track with this? I've been running ubuntu server 10.10 for about a month now and know just enough to be dangerous - Thanks -

  2. #2
    Join Date
    Jan 2008
    Beans
    7,749

    Re: apt-get install

    You need to refresh your list of available packages with:

    Code:
    sudo apt-get update
    then you can:

    Code:
    sudo apt-get install vsftpd
    Last edited by snowpine; February 27th, 2011 at 11:45 PM.

  3. #3
    Join Date
    Feb 2011
    Beans
    4

    Question Re: apt-get install

    Yeah, I can get the update just fine - but when I enter the second command I get the result shown above. Not sure why I'm having so much trouble.

    Here is the contents of /etc/apt/sources.list:


    Code:
    #deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ $
    
    #deb cdrom:[Ubuntu-Server 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ $
    
    deb http://security.ubuntu.com/ubuntu maverick-security main
    deb-src http://security.ubuntu.com/ubuntu maverick-security main
    deb http://security.ubuntu.com/ubuntu maverick-security universe
    deb-src http://security.ubuntu.com/ubuntu maverick-security universe
    deb http://security.ubuntu.com/ubuntu maverick-security multiverse
    deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse

    Are these the correct repositories??

  4. #4
    Join Date
    Jan 2008
    Beans
    7,749

    Re: apt-get install

    It looks like you have only the "security" repo enabled. I think that vsftpd is in "main". I would also recommend enabling "updates".

    You may find this sources.list generator helpful: http://repogen.simplylinux.ch/

  5. #5

    Re: apt-get install

    It looks like you have only the "security" repo enabled.
    If that is all that the OP has, then some repositories are missing.
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  6. #6
    Join Date
    Feb 2011
    Beans
    4

    Wink [SOLVED] Re: apt-get install

    Worked like a charm - many thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •