debmirror messes up the mirroring process
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debmirror (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I have been mirroring precise and xenial repos for my local networks for several months (or even years). Recently (perhaps due to EoL of precise) debmirror is showing errors during the fetch of files and does not download the updates. So the workstations been fed by my local mirror show 0 updates available, but when update from internet repo show several updates. I reproduce here my debmirror file and the output with the errors. The mirroring system details are:
lsb_release -rd
Description: Ubuntu 16.04.3 LTS
Release: 16.04
amd64 system
apt-cache policy debmirror
debmirror:
Installed: 1:2.25ubuntu2
Candidate: 1:2.25ubuntu2
Version table:
*** 1:2.25ubuntu2 500
500 http://
500 http://
100 /var/lib/
The expected behavior is that debmirror correctly mirrors the repos from the internet to my local network.
What is happening now is that the files are not downloaded and an error is shown in the process.
My debmirror script (ran every night):
#### Start script to automate building of Ubuntu mirror #####
## THE NEXT LINE IS NEEDED THE REST OF THE LINES STARTING WITH A # CAN BE DELETED
#!/bin/bash
## Setting variables with explanations.
#
# Don't touch the user's keyring, have our own instead
#
export GNUPGHOME=
# Arch= -a # Architecture. For Ubuntu can be i386, powerpc or amd64.
# sparc, only starts in dapper, it is only the later models of sparc.
#
arch=i386,amd64
# Minimum Ubuntu system requires main, restricted
# Section= -s # Section (One of the following - main/restricted
# You can add extra file with $Section/
#
section=
# Release= -d # Release of the system (...Hardy, Intrepid... Lucid, Precise, Quantal, Saucy, Trusty ), and the -updates and -security ( -backports can be added if desired)
# List of updated releases in: https:/
#
release=
# Server= -h # Server name, minus the protocol and the path at the end
# CHANGE "*" to equal the mirror you want to create your mirror from. au. in Australia ca. in Canada.
# This can be found in your own /etc/apt/
#
server=
# Dir= -r # Path from the main server, so http://
#
inPath=/ubuntu
# Proto= --method= # Protocol to use for transfer (http, ftp, hftp, rsync)
# Choose one - http is most usual the service, and the service must be avaialbe on the server you point at.
#
proto=http
# Outpath= # Directory to store the mirror in
# Make this a full path to where you want to mirror the material.
#
outPath=
# The --nosource option only downloads debs and not deb-src's
# The --progress option shows files as they are downloaded
# --source \ in the place of --no-source \ if you want sources also.
# --nocleanup Do not clean up the local mirror after mirroring is complete. Use this option to keep older repository
# Start script
#
debmirror -a $arch \
-s $section \
-h $server \
-d $release \
-r $inPath \
#### End script to automate building of Ubuntu mirror ####
Now the output (and errors) during the mirroring process:
Mirroring to /data/repo/ubuntu from http://
Arches: i386,amd64
Dists: precise,
Sections: main,restricted
Pdiff mode: use
Will clean up after mirroring.
Attempting to get lock ...
Updating remote trace files (using rsync) ...
receiving incremental file list
./
project/
29 100% 28.32kB/s 0:00:00 (xfr#1, to-chk=4/11)
project/
29 100% 0.27kB/s 0:00:00 (xfr#2, to-chk=1/11)
project/
309,045 100% 164.92kB/s 0:00:01 (xfr#3, to-chk=0/11)
Getting meta files ...
[ 0%] Getting: dists/precise/
ok
[ 0%] Getting: dists/precise/
failed 404 Not Found
[ 0%] Getting: dists/precise/
ok
Ubuntu Release file: using Suite (precise).
[ 0%] Getting: dists/precise-
ok
[ 0%] Getting: dists/precise-
ok
[ 0%] Getting: dists/precise-
ok
Ubuntu Release file: using Suite (precise-updates).
[ 0%] Getting: dists/precise-
ok
[ 0%] Getting: dists/precise-
ok
[ 0%] Getting: dists/precise-
ok
Ubuntu Release file: using Suite (precise-
[ 0%] Getting: dists/precise-
ok
[ 0%] Getting: dists/precise-
ok
[ 0%] Getting: dists/precise-
ok
Ubuntu Release file: using Suite (precise-proposed).
[ 0%] Getting: dists/xenial/
ok
[ 0%] Getting: dists/xenial/
ok
[ 0%] Getting: dists/xenial/
ok
Ubuntu Release file: using Suite (xenial).
[ 0%] Getting: dists/xenial-
ok
[ 0%] Getting: dists/xenial-
ok
[ 0%] Getting: dists/xenial-
ok
Ubuntu Release file: using Suite (xenial-updates).
[ 0%] Getting: dists/xenial-
ok
[ 0%] Getting: dists/xenial-
ok
[ 0%] Getting: dists/xenial-
ok
Ubuntu Release file: using Suite (xenial-backports).
[ 0%] Getting: dists/xenial-
ok
[ 0%] Getting: dists/xenial-
ok
[ 0%] Getting: dists/xenial-
ok
Ubuntu Release file: using Suite (xenial-proposed).
[ 53%] Getting: dists/xenial-
ok
[ 54%] Getting: dists/xenial-
ok
[ 54%] Getting: dists/xenial-
ok
[ 54%] Getting: dists/xenial-
ok
[ 54%] Getting: dists/xenial-
ok
[ 54%] Getting: dists/xenial-
ok
[ 54%] Getting: dists/xenial-
ok
[ 54%] Getting: dists/xenial-
ok
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
Use of uninitialized value $size in numeric eq (==) at /usr/bin/debmirror line 1645.
[ 92%] Getting: dists/xenial-
ok
[ 93%] Getting: dists/xenial-
read timeout at /usr/share/
WARNING: releasing 1 pending lock...
description: | updated |
I believe this is a duplicate of bug #1578662, which has a patch (I've been using https:/ /launchpadlibra rian.net/ 279275413/ debmirror. deb.patch).