Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, My general question is how do I get apt-get to recognize local packages on my system and install them. More specifically: I use a computer that does not have ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    19

    using apt-get to install packages on local system?


    Hello,

    My general question is how do I get apt-get to recognize local packages on my system and install them.

    More specifically:

    I use a computer that does not have internet access, but only access to a server on my local network. I would like to install gftp (as well as other packages) on this computer as I do a lot of file transferring to the local server. I have downloaded gftp from elsewhere and have transferred it to my computer, and would like to install it.

    I put the package in /Users/allasso/apt/ on my system. Then I added the following in my /sw/etc/apt/sources.list:

    deb file:///Users/allasso/apt/ main local

    I also commented out the remote repositories, so that this is the only entry in the sources.list file.

    When running apt-get install update I get this message:

    $ sudo apt-get update
    Err file: main/local Packages
    Read error - read (1 Operation not permitted)
    Ign file: main/local Release
    Failed to fetch
    file:///Users/allasso/apt/dists/main/local/binary-darwin-powerpc/ Packages Read error - read (1 Operation not permitted)
    Reading Package Lists... Done
    Building Dependency Tree... Done
    W: Couldn't stat source package list file: main/local Packages
    (/sw/var/lib/apt/lists/_Users_allasso_apt_dists_main_local_binary-
    darwin-powerpc_Packages) - stat (2 No such file or directory)
    W: Couldn't stat source package list file: main/local Packages
    (/sw/var/lib/apt/lists/_Users_allasso_apt_dists_main_local_binary-
    darwin-powerpc_Packages) - stat (2 No such file or directory)
    W: You may want to run apt-get update to correct these problems
    E: Some index files failed to download, they have been ignored, or old
    ones used instead.

    So I created the path:

    /Users/allasso/apt/dists/main/local/binary-darwin-powerpc/Packages

    and placed the package in it.

    I still get the same error.

    I have done much searching on this, and cannot seem to find information on installing packages on the local system. I also wonder if there is a simple way to tell apt-get to get a package from the local system right from the command line without editing sources.list.

    Any help would be much appreciated. I would also like if someone could point me to more information on this particular subject as this issue has come up before.

    Thanks, Allasso

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    My general question is how do I get apt-get to recognize local packages on my system and install them.
    Here's the HowTo for using APT locally:

    APT HOWTO - Basic Configuration

    Hope it helps you to get the job done.
    oz

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    19
    thanks so much, I hope so too.

    Allasso

  4. $spacer_open
    $spacer_close

Posting Permissions

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