On Thu, Mar 09, 2017 at 10:40:27AM +0800, 汪婧 wrote: > [...] I attempt to create the local repo with same layout as remote > under the approx’s cache. But it doesn’t work for apt to get > packages. That’s what I do with the local repo. I meant to provide > you more hint, if it confused you , just forget itJ
This could work, but only if you follow the *complete* structure of a repository, which must include Release and Release.gpg files with the correct checksums and signatures, etc. Otherwise approx won't consider the Packages files to be valid. > [Vv] As you suggest I put file:///packages/ to approx.conf, but approx cannot > find packages still. I think this is the same problem (lack of Release files etc.) but I can't be sure without seeing the debug log from approx. > [Vv] As the debian version is 8.3, Jessie, on which the stable version of > approx. is 5.5-1, apt-get installed this version for Jessie. But I cannot get > 5.7 by modifying the source to sid, e.g.: > deb http://ftp.pl.debian.org/debian sid main contrib non-free. I downloaded > approx_5.7-3.debian.tar.xz, but it seems complex to build and install by > checking https://www.debian.org/doc/manuals/debian-faq/ch-pkg_basics.en.html. > do > you have any suggestion? You can download the .deb (from http://ftp.us.debian.org/debian/pool/main/a/approx/approx_5.7-3_amd64.deb for example, or any other Debian mirror), and install it with "dpkg -i". It does not have any dependencies not in jessie, so it should install OK. -- Eric Cooper e c c @ c m u . e d u