apt-cacher not showing imported packages

 
Thread Tools Search this Thread
Operating Systems Linux Debian apt-cacher not showing imported packages
# 1  
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!
# 2  
Old 10-26-2010
Quote:
Originally Posted by Luka
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!
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 ----------




Quote:
Originally Posted by danndp
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:59 AM ----------




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

[apt-cache search PACKAGE_NAME]

Regards



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


# 3  
Old 11-04-2010
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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
Login or Register to Ask a Question