I can confirm that this bug still exists.

Linux ops-jhb-infra-06 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20
11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

apt-cacher-ng:
  Installed: 0.9.1-1ubuntu1
  Candidate: 0.9.1-1ubuntu1
  Version table:
 *** 0.9.1-1ubuntu1 500
        500 http://za.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

/etc/apt-cacher-ng/acng.conf

# Storage directory for downloaded data and related maintenance activity.
#
CacheDir: /mnt/data/apt-cacher-ng

ls -lash /mnt/data/
total 38K
4.0K drwxr-xr-x 7 root          root          4.0K Feb 28 17:18 .
4.0K drwxr-xr-x 6 root          root          4.0K Feb 24 11:44 ..
4.0K drwxr-sr-x 2 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 18:59 apt-cacher-ng
 16K drwx------ 2 root          root           16K Feb 23 19:34 lost+found
<snip/>

After restarting and even rebooting package cachdir remains at
/var/cache/apt-cacher-ng

My hack solution until this problem is fixed upstream:

mv /var/cache/apt-cacher-ng /home/sean

ln -s /mnt/data/apt-cacher-ng /var/cache/apt-cacher-ng

mv apt-cacher-ng/* /mnt/data/apt-cacher-ng/

ls -lash /var/cache/apt-cacher-ng
0 lrwxrwxrwx 1 root root 24 Mar  2 09:21 /var/cache/apt-cacher-ng -> 
/mnt/data/apt-cacher-ng/

ls -lash /mnt/data/apt-cacher-ng/
total 160K
4.0K drwxr-sr-x 13 apt-cacher-ng apt-cacher-ng 4.0K Mar  2 09:18 .
4.0K drwxr-xr-x  7 root          root          4.0K Feb 28 17:18 ..
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Mar  2 07:53 192.168.21.17
4.0K drwxr-sr-x  4 apt-cacher-ng apt-cacher-ng 4.0K Mar  1 21:19 
archive.canonical.com
4.0K drwxr-sr-x  2 apt-cacher-ng apt-cacher-ng 4.0K Feb 27 08:16 
changelogs.ubuntu.com
   0 -rw-r--r--  1 apt-cacher-ng apt-cacher-ng    0 Mar  2 06:25 
_expending_damaged
108K -rw-r--r--  1 apt-cacher-ng apt-cacher-ng 105K Mar  2 06:25 _expending_dat
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 20:45 
packages.elastic.co
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 28 22:42 
pkg.jenkins-ci.org
4.0K drwxr-sr-x  6 apt-cacher-ng apt-cacher-ng 4.0K Feb 28 05:45 
ppa.launchpad.net
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 28 06:42 
repo.percona.com
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 20:45 
security.ubuntu.com
4.0K drwxr-sr-x  4 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 20:50 uburep
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 20:45 
www.ftp.saix.net
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 27 15:33 www.ubnt.com


ls -lash /var/cache/apt-cacher-ng/
total 160K
4.0K drwxr-sr-x 13 apt-cacher-ng apt-cacher-ng 4.0K Mar  2 09:18 .
4.0K drwxr-xr-x  7 root          root          4.0K Feb 28 17:18 ..
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Mar  2 07:53 192.168.21.17
4.0K drwxr-sr-x  4 apt-cacher-ng apt-cacher-ng 4.0K Mar  1 21:19 
archive.canonical.com
4.0K drwxr-sr-x  2 apt-cacher-ng apt-cacher-ng 4.0K Feb 27 08:16 
changelogs.ubuntu.com
   0 -rw-r--r--  1 apt-cacher-ng apt-cacher-ng    0 Mar  2 06:25 
_expending_damaged
108K -rw-r--r--  1 apt-cacher-ng apt-cacher-ng 105K Mar  2 06:25 _expending_dat
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 20:45 
packages.elastic.co
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 28 22:42 
pkg.jenkins-ci.org
4.0K drwxr-sr-x  6 apt-cacher-ng apt-cacher-ng 4.0K Feb 28 05:45 
ppa.launchpad.net
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 28 06:42 
repo.percona.com
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 20:45 
security.ubuntu.com
4.0K drwxr-sr-x  4 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 20:50 uburep
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 26 20:45 
www.ftp.saix.net
4.0K drwxr-sr-x  3 apt-cacher-ng apt-cacher-ng 4.0K Feb 27 15:33 www.ubnt.com

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1279021

Title:
  CacheDir setting ignored

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/1279021/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to