apt-get doesnt download files from NFS location

Posted by Pravesh on Ask Ubuntu See other posts from Ask Ubuntu or by Pravesh
Published on 2012-03-21T15:56:50Z Indexed on 2012/03/21 17:39 UTC
Read the original article Hit count: 305

Filed under:
|

I have switched to unix from last 3 months and trying to understand install process and in particular apt-get.

I am able to successfully install and download the packages when I configure my repository on http location in /etc/apt/sources.list file. e.g.

deb http://web.myspqce.com/u/eng/rose/debian-mirror-squeeze-amd64/mirror/ftp.us.debian.org/debian/ squeeze main contrib non-free

This command will download(/var/cache/apt/archive) and install the package when i use apt-get install

When I change the source location to file instead of http(nfs mount point), the package is getting installed but NOT getting downloaded in /var/cache/apt/archive.

deb file:/deb_repository/debian-mirror-squeeze-amd64/mirror/ftp.us.debian.org/debian/ squeeze main contrib non-free

Please let me know if there is any configuration or settings that i have to make to let apt-get to both download and install package when i use (nfs)file:/ instead of http:/ in sources.list.

To achieve this, I can use apt-get --downlaod-only and then use apt-get install for both download and install in two separate calls, but I want to know why package is not getting downloaded with apt-get install but only getting installed when used with file:/ in sources.list

© Ask Ubuntu or respective owner

Related posts about apt

Related posts about nfs