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
APT-MIRROR(1)						User Contributed Perl Documentation					     APT-MIRROR(1)

NAME
apt-mirror - apt sources mirroring tool SYNOPSIS
apt-mirror [configfile] DESCRIPTION
A small and efficient tool that lets you mirror a part of or the whole Debian GNU/Linux distribution or any other apt sources. Main features: * It uses a config similar to apts sources.list * It's fully pool comply * It supports multithreaded downloading * It supports multiple architectures at the same time * It can automatically remove unneeded files * It works well on overloaded channel to internet * It never produces an inconsistent mirror including while mirroring * It works on all POSIX compliant systems with perl and wget COMMENTS
apt-mirror uses /etc/apt/mirror.list as a configuration file. By default it is tuned to official Debian or Ubuntu mirrors. Change it for your needs. After you setup the configuration file you may run as root: # su - apt-mirror -c apt-mirror Or uncomment line in /etc/cron.d/apt-mirror to enable daily mirror updates. FILES
/etc/apt/mirror.list Main configuration file /etc/cron.d/apt-mirror Cron configuration template /var/spool/apt-mirror/mirror Mirror places here /var/spool/apt-mirror/skel Place for temporarily downloaded indexes /var/spool/apt-mirror/var Log files placed here. URLs and MD5 summs also here. CONFIGURATION EXAMPLES
The mirror.list configuration supports many options, the file is well commented explinging each option. here are some sample mirror configuration lines showing the various supported ways : Normal: deb http://example.com/debian stable main contrib non-free Arch Specific: ( many other arch's are supported ) deb-powerpc http://example.com/debian stable main contrib non-free HTTP and FTP Auth or non-standard port: deb http://user:pass@example.com:8080/debian stable main contrib non-free Source Mirroring: deb-src http://example.com/debian stable main contrib non-free ORIGINAL AUTHOR
Dmitry N. Hramtsov <hdn@nsu.ru> CURRENT AUTHORS
Dmitry N. Hramtsov <hdn@nsu.ru> Brandon Holtsclaw <me@brandonholtsclaw.com> perl v5.14.2 2012-01-28 APT-MIRROR(1)
All times are GMT -4. The time now is 10:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy