On Thu, 16 Nov 2023 04:11:37 +0000
"Russell L. Harris" <russ...@rlharris.org> wrote:

> root@mollydew:/home/rlh# systemctl daemon-reload
> root@mollydew:/home/rlh# systemctl restart approx
> Failed to restart approx.service: Unit approx.service not found.
> root@mollydew:/home/rlh# systemctl status approx
> Unit approx.service could not be found.
> root@mollydew:/home/rlh#

Well, that's weird. I installed approx on a Debian 12 machine, and got
the same results you did. However:

root@tsalmoth:~# ll /lib/systemd/system/approx*
-rw-r--r-- 1 root root 165 Feb 12  2023 '/lib/systemd/system/approx@.service'
-rw-r--r-- 1 root root 167 Feb 12  2023  /lib/systemd/system/approx.socket
root@tsalmoth:~# systemctl status approx.service
Unit approx.service could not be found.
root@tsalmoth:~# systemctl status approx.socket
● approx.socket - caching proxy server for Debian archive files
     Loaded: loaded (/lib/systemd/system/approx.socket; enabled; preset: 
enabled)
     Active: active (listening) since Wed 2023-11-15 21:48:27 MST; 1min 47s ago
       Docs: man:approx(8)
     Listen: [::]:9999 (Stream)
   Accepted: 0; Connected: 0;
      Tasks: 0 (limit: 4469)
     Memory: 8.0K
        CPU: 642us
     CGroup: /system.slice/approx.socket

Nov 15 21:48:27 tsalmoth systemd[1]: Listening on approx.socket - caching proxy 
server for Debian archive files.
root@tsalmoth:~# 

So it seems to be running.

I made a minimal effort get get it to work with no success. You may
have better luck than I.

One thing I didn't like is that approx appears to require fiddling with
sources.list. apt-cacher-ng simply requires setting a proxy value, in
its own file in /etc/apt/apt.conf.d. E.g.:

root@hawk:/etc/apt/apt.conf.d# cat /etc/apt/apt.conf.d/02proxy 
Acquire::http::Proxy "http://aptcacher.localdomain:3142";;
root@hawk:/etc/apt/apt.conf.d# 


-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Reply via email to