Sponsored Content
Operating Systems Linux Debian apt-cacher not showing imported packages Post 302445604 by Luka on Monday 16th of August 2010 10:11:09 AM
Old 08-16-2010
apt-cacher not showing imported packages

Hi,

using apt-cacher as a proxy works great. I've just added 01proxy under /etc/apt.conf.d and it works as expected:
Code:
$ cat /etc/apt/apt.conf.d/01proxy 
Acquire::http::Proxy "http://example.com:3142";

But when I add some .deb packages with apt-cacher-import.pl, which reports that packages were added successfully and a simple:
Code:
find /var/cache/apt-cache -name "*.deb"

shows them in private, headers and packages folders, apt-cacher acts as there are no packages.

I've tried:
Code:
apt-get clean
apt-get check
apt-get update
apt-get install <package>

with no luck.

Some of the posts on the net, mention adding a localhost entry in sources.list, but none of them shows or explains how.

I'm using apt-cacher version 1.6.4.

When installing other packages, they also show in headers and packages folder and are being served from cache.

apt-cacher.conf:
Code:
# grep -Ev "^#|^$" /etc/apt-cacher/apt-cacher.conf 
cache_dir=/var/cache/apt-cacher
admin_email=root@localhost
daemon_port=3142
group=www-data
user=www-data
allowed_hosts=*
denied_hosts=
allowed_hosts_6=fec0::/16
denied_hosts_6=
generate_reports=1
clean_cache=1
offline_mode=0
logdir=/var/log/apt-cacher
expire_hours=0
use_proxy=0
use_proxy_auth=0
limit=0
debug=0

sources.list:
Code:
$ grep -v "^$" /etc/apt/sources.list
# 
# deb cdrom:[Debian GNU/Linux 5.0.5 _Lenny_ - Official sparc DVD Binary-1 20100626-23:39]/ lenny contrib main
deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free
deb http://www.backports.org/debian lenny-backports main contrib non-free

Does anyone have any experience with this?

Thank you!
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find an imported folder?

Hi I recieved a written code which imports an unknown folder. How can I search the unix file system for this certain folder. I tried using the 'find' command, but it only works on files, not on folders (2 Replies)
Discussion started by: gilr
2 Replies

2. Slackware

Find Slackware Packages - packages.acl.org.ua

Hi! Let me introduce a project for find and download Slackware packages and browse Slackware repositories. The site provides following features: * Large, daily updated database with RPM, DEB, TGZ, TXZ packages for well-known repositories of the Slackware, Fedora, CentOS, RHEL, Debian,... (2 Replies)
Discussion started by: lystor
2 Replies

3. Shell Programming and Scripting

Source txt to be imported in xls as .csv

Hi , I am getting data as below for one of my table as below in a .txt format.I am manually opening a xls sheet, and then selecting import data from option and importing the data in to xls and then saving it as .csv file and this .csv file I am using for one of the shell script. I am... (3 Replies)
Discussion started by: shruthidwh
3 Replies

4. Linux

It is possible to find out when a particular encryption key was imported in linux

Hi All, In linux server some encryption keys were imported using gpg command. I want to know when those keys was imported. Is there any way to get when the encryption keys were imported? Thanks in advance.. :rolleyes: (1 Reply)
Discussion started by: latika
1 Replies

5. Debian

How to Setup Apt-Cacher In Linux Mint?

Hi , Any one Have Idea to Install and Configure Apt-Cacher In Linux Mint , There are 30 Client Machines and 1 Server Which was powered With Linux Mint ... And please guide me for Ubuntu also ... :rolleyes: (0 Replies)
Discussion started by: babinlonston
0 Replies

6. Shell Programming and Scripting

Scripts imported from UNIX to Linux are not working

Hi, Recently we migrated our app from Unix to Linux platform. All our shell scripts which use to work in Unix platform are not working in Linux now. below is such sample script. I tried removing trailing spaces, but no luck. dear experts kindly help.. #############BEGIN############### split... (7 Replies)
Discussion started by: laxman_bly
7 Replies
APPROX(8)						      System Manager's Manual							 APPROX(8)

NAME
approx - proxy server for Debian archive files SYNOPSIS
approx [OPTION]... DESCRIPTION
approx responds to HTTP requests made by apt-get(8). It maintains a cache of Debian archive files that have been previously downloaded, so that it can respond with a local copy when possible. If a file not in the cache is requested, approx will download it from a remote Debian repository and deliver the contents to the client, simultaneously caching it for future use. Over time, the approx server cache will grow to contain multiple, unneeded versions of Debian packages. The approx-gc(8) program removes these from the cache. OPTIONS
-c file, --config file Specify an additional configuration file. May be used multiple times. USAGE
approx is invoked by inetd(8). EXAMPLES
Suppose that a client machine's /etc/apt/sources.list file contains the following lines: deb http://apt:9999/debian testing main deb http://apt:9999/security testing/updates main deb-src http://apt:9999/debian unstable main In this example, apt is the hostname of the approx server machine on the local network. Each distribution, such as "debian" or "security", is mapped to a remote repository in the approx server's configuration file. For example, the approx.conf file on the approx server might contain the lines debian http://ftp.debian.org/debian security http://security.debian.org The mapping scheme is very simple. If the approx.conf file contains the line repository http://remote-host/initial/path then any request to the approx server of the form http://approx-server/repository/rest/of/URL is rewritten to http://remote-host/initial/path/rest/of/URL when there is a "cache miss", and that file is cached as /var/cache/approx/repository/rest/of/URL (Note that the repository name on the left-hand side is not included in the rewritten URL unless it is explicitly mentioned in the right- hand side's initial path.) FILES
/etc/approx/approx.conf Configuration file for approx and related programs. /var/cache/approx Default cache directory for archive files. SEE ALSO
approx.conf(5), inetd(8), approx-import(8), approx-gc(8), apt-get(8), sources.list(5) AUTHOR
Eric Cooper <ecc@cmu.edu> May 2011 APPROX(8)
All times are GMT -4. The time now is 09:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy