anatol / pacoloco

Caching proxy server for Arch Linux pacman
MIT License
199 stars 30 forks source link

Readme needs updating for new users. #107

Open haydonryan opened 2 months ago

haydonryan commented 2 months ago

New user here.

Thank you for a great tool. I run two arch linux machines (possibly some VMs in the future too). While my internet is decent, I would prefer to prefetch packages in the middle of the night and serve them at the speed my local infra supports (which is faster) rather than my internet connection.

Note that I'm not super familiar with the inner workings of arch repos, reflector (never heard of this before today).

I'm happy to submit a PR to improve the documentation in this repo.

My usecase is to run this as a docker container in an NAS, with only inbound connections and outbound to the wider internet but restricted from local network ranges.

Questions:

  1. It appears as though the tool supports arch linux (pacman repos), but ALSO supports sublime, quarry (ruby) and archlinux-reflector. Is that correct?
  2. What is the purpose of the reflector repo? I'm unclear what should be in the /etc/pacman.d/reflector_mirrorlist file. Does this file get served back to the reflector program? I didn't end up using it as I'm running on a NAS and it's not clear it's purpose.
  3. I'm getting a lot of errors in the log on 404s for the dbs sigs... looks like mirrors don't have sigs for the dbs? bug?

    pacoloco  | purge.go:67: lstat /var/cache/pacoloco/pkgs/archlinux: no such file or directory
    pacoloco  | downloader.go:111: downloading http://mirror.lty.me/archlinux//core/os/x86_64/core.db
    pacoloco  | downloader.go:111: downloading http://mirror.lty.me/archlinux//core/os/x86_64/core.db.sig
    pacoloco  | downloader.go:77: unable to download file archlinux/core/os/x86_64/core.db.sig: unable to download url http://mirror.lty.me/archlinux//core/os/x86_64/core.db.sig, status code is 404
    pacoloco  | downloader.go:111: downloading http://mirrors.bjg.at/arch//core/os/x86_64/core.db.sig
    pacoloco  | downloader.go:77: unable to download file archlinux/core/os/x86_64/core.db.sig: unable to download url http://mirrors.bjg.at/arch//core/os/x86_64/core.db.sig, status code is 404
    pacoloco  | downloader.go:354: unable to download file archlinux/core/os/x86_64/core.db.sig
    pacoloco  | pacoloco.go:168: unable to download file archlinux/core/os/x86_64/core.db.sig
    pacoloco  | downloader.go:111: downloading http://mirror.lty.me/archlinux//extra/os/x86_64/extra.db
    pacoloco  | downloader.go:111: downloading http://mirror.lty.me/archlinux//extra/os/x86_64/extra.db.sig
    pacoloco  | downloader.go:77: unable to download file archlinux/extra/os/x86_64/extra.db.sig: unable to download url http://mirror.lty.me/archlinux//extra/os/x86_64/extra.db.sig, status code is 404
    pacoloco  | downloader.go:111: downloading http://mirrors.bjg.at/arch//extra/os/x86_64/extra.db.sig
    pacoloco  | downloader.go:77: unable to download file archlinux/extra/os/x86_64/extra.db.sig: unable to download url http://mirrors.bjg.at/arch//extra/os/x86_64/extra.db.sig, status code is 404
    pacoloco  | downloader.go:354: unable to download file archlinux/extra/os/x86_64/extra.db.sig
    pacoloco  | downloader.go:111: downloading http://mirror.lty.me/archlinux//community/os/x86_64/community.db
    pacoloco  | downloader.go:111: downloading http://mirror.lty.me/archlinux//community/os/x86_64/community.db.sig
    pacoloco  | downloader.go:77: unable to download file archlinux/community/os/x86_64/community.db.sig: unable to download url http://mirror.lty.me/archlinux//community/os/x86_64/community.db.sig, status code is 404
    pacoloco  | downloader.go:111: downloading http://mirrors.bjg.at/arch//community/os/x86_64/community.db.sig
    pacoloco  | downloader.go:77: unable to download file archlinux/community/os/x86_64/community.db.sig: unable to download url http://mirrors.bjg.at/arch//community/os/x86_64/community.db.sig, status code is 404
    pacoloco  | downloader.go:354: unable to download file archlinux/community/os/x86_64/community.db.sig
    pacoloco  | pacoloco.go:168: unable to download file archlinux/community/os/x86_64/community.db.sig  
    

    Thank you!