Community Forum

ivanjn
ivanjn
Offline
Resolved
0 votes
Hi,

I'm interested in running apt-cacher in clearos, it's installed but I can't make it work.

Thats the result of terminal:

# service apt-cacher start
Redirecting to /bin/systemctl start apt-cacher.service
Failed to start apt-cacher.service: Unit not found.

Running user root connected via ssh.
Folder /var/log/apt-cacher-ng is empty, so no log to watch

Any help would be appreciated.
Thursday, December 07 2017, 07:50 PM
Share this post:

Accepted Answer

Saturday, December 09 2017, 07:38 PM - #Permalink
Resolved
0 votes
Trying to follow what you've done, if you have installed apt-cacher-ng from one of the epel mirrors, then, looking at the rpm, the command to start it is:
systemctl start apt-cacher-ng.service
Note the addition of the "-ng" to the service name.
The reply is currently minimized Show
Responses (6)
  • Accepted Answer

    ivanjn
    ivanjn
    Offline
    Thursday, December 14 2017, 10:35 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    What is the output of:
    updatedb && locate apt-cacher

    # updatedb && locate apt-cacher
    /etc/apt-cacher-ng
    /etc/apt-cacher-ng/acng.conf
    /etc/apt-cacher-ng/archlx_mirrors
    /etc/apt-cacher-ng/backends_debian.default
    /etc/apt-cacher-ng/backends_ubuntu.default
    /etc/apt-cacher-ng/cygwin_mirrors
    /etc/apt-cacher-ng/deb_mirrors.gz
    /etc/apt-cacher-ng/debvol_mirrors.gz
    /etc/apt-cacher-ng/delconfirm.html
    /etc/apt-cacher-ng/epel_mirrors
    /etc/apt-cacher-ng/fedora_mirrors
    /etc/apt-cacher-ng/gentoo_mirrors.gz
    /etc/apt-cacher-ng/maint.html
    /etc/apt-cacher-ng/report.html
    /etc/apt-cacher-ng/security.conf
    /etc/apt-cacher-ng/sfnet_mirrors
    /etc/apt-cacher-ng/sl_mirrors
    /etc/apt-cacher-ng/style.css
    /etc/apt-cacher-ng/ubuntu_mirrors
    /etc/apt-cacher-ng/userinfo.html
    /etc/cron.daily/apt-cacher-ng
    /etc/default/apt-cacher-ng
    /etc/logrotate.d/apt-cacher-ng
    /usr/lib/systemd/system/apt-cacher-ng.service
    /usr/libexec/apt-cacher-ng
    /usr/libexec/apt-cacher-ng/acngfs
    /usr/libexec/apt-cacher-ng/archlx_mirrors
    /usr/libexec/apt-cacher-ng/cygwin_mirrors
    /usr/libexec/apt-cacher-ng/deb_mirrors.gz
    /usr/libexec/apt-cacher-ng/debvol_mirrors.gz
    /usr/libexec/apt-cacher-ng/delconfirm.html
    /usr/libexec/apt-cacher-ng/distkill.pl
    /usr/libexec/apt-cacher-ng/epel_mirrors
    /usr/libexec/apt-cacher-ng/expire-caller.pl
    /usr/libexec/apt-cacher-ng/fedora_mirrors
    /usr/libexec/apt-cacher-ng/gentoo_mirrors.gz
    /usr/libexec/apt-cacher-ng/in.acng
    /usr/libexec/apt-cacher-ng/maint.html
    /usr/libexec/apt-cacher-ng/report.html
    /usr/libexec/apt-cacher-ng/sfnet_mirrors
    /usr/libexec/apt-cacher-ng/sl_mirrors
    /usr/libexec/apt-cacher-ng/style.css
    /usr/libexec/apt-cacher-ng/ubuntu_mirrors
    /usr/libexec/apt-cacher-ng/urlencode-fixer.pl
    /usr/libexec/apt-cacher-ng/userinfo.html
    /usr/sbin/apt-cacher-ng
    /usr/share/doc/apt-cacher-ng-3
    /usr/share/doc/apt-cacher-ng-3/README
    /usr/share/doc/apt-cacher-ng-3/TODO
    /usr/share/man/man8/apt-cacher-ng.8.gz
    /var/cache/apt-cacher-ng
    /var/lib/apt-cacher-ng
    /var/log/apt-cacher-ng

    Don't know why is a -ng in the end as it was another package. Maybe I was confused whit another machine logged via ssh too and I finally came mixing them.Right now I have a lot of work and no time for this issue.

    I typed "systemctl start apt-cacher-ng.service" and returns no error, so I assume it works ok. Just need to adjust configuration files. Thanks a lot about pointing my in the right direction (-ng)
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, December 09 2017, 07:27 PM - #Permalink
    Resolved
    0 votes
    What is the output of:
    updatedb && locate apt-cacher
    The reply is currently minimized Show
  • Accepted Answer

    ivanjn
    ivanjn
    Offline
    Saturday, December 09 2017, 07:10 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Have you searched out Centos instructions. I would expect them to work.


    # service apt-cacher start
    Redirecting to /bin/systemctl start apt-cacher.service
    Failed to start apt-cacher.service: Unit not found.

    I installed a Debian virtual machine with enough disk memory available and Installed on it. From zero to functional installation 30 mins. Diagnose and repair this problem is above my skills, and I know that this package is not popular so waiting that someone in the future with more skills than me can find a solution.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, December 08 2017, 02:12 PM - #Permalink
    Resolved
    0 votes
    Have you searched out Centos instructions. I would expect them to work.
    The reply is currently minimized Show
  • Accepted Answer

    ivanjn
    ivanjn
    Offline
    Thursday, December 07 2017, 11:04 PM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Can I ask why you'd want apt-cacher? ClearOS uses yum rather than apt as a package manager.


    apt-cacher works as a proxy for Debian (Ubuntu, raspbian, etc) packages, so the first time you download the package from official repos, then from clearos box.....

    So this is useful when you have some raspberry pis behind clearos box
    More info
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 07 2017, 09:01 PM - #Permalink
    Resolved
    0 votes
    Can I ask why you'd want apt-cacher? ClearOS uses yum rather than apt as a package manager.
    The reply is currently minimized Show
Your Reply