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:

$ 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:

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:

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:

# 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:

$ 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!

In order to check if a package is available for your mirrors (/etc/apt/source-list), you should check with:

[apt-cache sear PACKAGE_NAME]

Regards

---------- Post updated at 10:59 AM ---------- Previous update was at 10:57 AM ----------

---------- Post updated at 10:59 AM ---------- Previous update was at 10:59 AM ----------

Hi,

of course, but it should be available for installation with apt-get install.
But never mind, I've moved to a local mirror using apt-mirror.