interner Debian mirror

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
mathschut
Beiträge: 4
Registriert: 29.10.2015 11:03:49

interner Debian mirror

Beitrag von mathschut » 23.05.2016 15:17:02

Hallo,

ich baue mir gerade einen internen Debian Mirror

Vorraussetzungen: installieres Debian 8.4, apt-mirror installiert, apache 2 installiert

folgende Probleme habe ich: Der Cronjob startet nicht und ich komme per http nicht auf die interne Freigabe.

hier meine Config`s:
apt-mirror
############# config ##################
#
set base_path /var/mirror
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads 20
set _tilde 0
#
############# end config ##############

deb http://ftp.us.debian.org/debian unstable main contrib non-free
deb-src http://ftp.us.debian.org/debian unstable main contrib non-free

# mirror additional architectures
#deb-alpha http://ftp.us.debian.org/debian unstable main contrib non-free
deb-amd64 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-armel http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-hppa http://ftp.us.debian.org/debian unstable main contrib non-free
deb-i386 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-ia64 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-m68k http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-mips http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-mipsel http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-powerpc http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-s390 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-sparc http://ftp.us.debian.org/debian unstable main contrib non-free

clean http://ftp.us.debian.org/debian
Cron Task unter /etc/cron.d/apt-mirror
#
# Regular cron jobs for the apt-mirror package
#
#0 4 * * * apt-mirror /usr/bin/apt-mirror > /var/spool/apt-mirror/var/cron.log
0 15 * * * apt-mirror /usr/bin/apt-mirror sync mit mirror
Kann mir da jemand helfen? Welche Configs werden noch benötigt?

Benutzeravatar
Blackbox
Beiträge: 4289
Registriert: 17.09.2008 17:01:20
Lizenz eigener Beiträge: GNU Free Documentation License

Re: interner Debian mirror

Beitrag von Blackbox » 23.05.2016 23:56:24

mathschut hat geschrieben:Cron Task unter /etc/cron.d/apt-mirror
#
# Regular cron jobs for the apt-mirror package
#
#0 4 * * * apt-mirror /usr/bin/apt-mirror > /var/spool/apt-mirror/var/cron.log
0 15 * * * apt-mirror /usr/bin/apt-mirror sync mit mirror
Kann mir da jemand helfen? Welche Configs werden noch benötigt?
Als Erstes, die größte Fehlerquelle, ist das Script mit den richtigen Berechtigungen versehen, und ausführbar ?
Eigenbau PC: Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Desktop PC: Dell Inspiron 530 - Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Notebook: TUXEDO BU1406 - Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Alles Minimalinstallationen und ohne sudo/PA/PW.
Rootserver: Rocky Linux 9.3 - Kernel: 5.14

Freie Software unterstützen, Grundrechte stärken!

mathschut
Beiträge: 4
Registriert: 29.10.2015 11:03:49

Re: interner Debian mirror

Beitrag von mathschut » 24.05.2016 07:23:49

Hi,

welche Berechtigungen muss denn das Skript haben?

mathschut
Beiträge: 4
Registriert: 29.10.2015 11:03:49

Re: interner Debian mirror

Beitrag von mathschut » 24.05.2016 07:34:47

Aktuell habe ich die folgende Berechtigung:

-rw-r--r-- 1 root root 200 Mai 24 07:03 apt-mirror

Antworten