[PVE-User] Problem downloading repositories

Rommel Rodriguez Toirac rommelrt at nauta.cu
Wed Sep 2 22:05:05 CEST 2020


Hello all;

I use a little script to create a local repository by downloading the packages 
from the official site [download.proxmox.com] using the debmirror application, 
for this I use a server with Debian 10.5 operating system and debmirror 1:2.32
This is the script:

******
#!/bin/sh
: ${URLDIRE:=download.proxmox.com}
: ${OUTPATH:=/var/www/html/repos/proxmox}
: ${LOGFILE:=/var/log/actualiza_proxmox.log}
# Crear el directorio de destino si no existe.
if [ ! -d "$OUTPATH" ] ; then mkdir -p "$OUTPATH"; fi
# Inicio archivo de registro.
cat > $LOGFILE <<EOL
Iniciando Mirror (`env LANG=es_ES.UTF-8 date`)
EOL
# Matamos el mirror si ya está corriendo
killall debmirror
# Ejecutar.
debmirror --progress --verbose --debug --host $URLDIRE --root=/debian/pve \
--method=http --dist=buster \
--section=pve-no-subscription --arch=amd64 --nosource --no-check-gpg 
\
--ignore-missing-release --ignore-release-gpg --postcleanup \
--diff=none --ignore-small-errors --allow-dist-rename --timeout=2000 
\
$OUTPATH >> $LOGFILE 2>&1 &
# Fin.
exit 0
*******

I look at the logs and the download always interrupts saying that dists/
buster/pve-no-subscription/binary-all/Packages.gz is missing.

********
Ignoring missing Release file for dists/buster/pve-no-subscription/binary-all/
Packages.gz
http://download.proxmox.com/debian/pve/dists/buster/pve-no-subscription/
binary-all/Packages.gz => [100%] Getting: dists/buster/pve-no-subscription/
binary-all/Packages.gz... #** GET http://download.proxmox.com/debian/pve/
dists/buster/pve-no-subscription/binary-all/Packages.gz ==> 404 Not Found
404 Not Found
Download of dists/buster/pve-no-subscription/binary-all/Packages.gz failed: 
404 Not Found
Errors:
Ignoring missing Release file for dists/buster/pve-no-subscription/binary-all/
Packages.gz
Download of dists/buster/pve-no-subscription/binary-all/Packages.gz failed: 
404 Not Found
Failed to download some Package, Sources or Release files!
WARNING: releasing 1 pending lock...
*********

At http://download.proxmox.com/debian/pve/dists/buster/pve-no-subscription/ 
actually there is no binary-all/Packages

What am I doing wrong? 

How can I fix this and download the full repository from Debian 10 using 
debmirror?

Thanks in advance.
-- 
Rommel Rodriguez Toirac
rommelrt at nauta.cu


More information about the pve-user mailing list