apt-mirror amount of data to be transferred wrong?

Kernels & Hardware, configuring network, installing services

apt-mirror amount of data to be transferred wrong?

Postby perazim » 2017-07-28 08:47

apt-mirror appears to misstate amount of data that will be transferred


I am new to debian and apt but a long time sys admin for redhat/centos (rpm) systems. Stretch 9.1 installed without any exception and I installed apt-mirror and configured mirror.list initially with just amd64 main only to see it work. Then I added i386, sources and deb-multimedia and restarted apt-mirror.

Now, two days later after it finished transferring approx 150gb, when I restart it again, I am told the it needs another 11gb but it immediately completes without any transfer and without error. Running apt-mirror yet again produces the same results.

What is happening here? Is there a way to clean-up the directory structure if it somehow got corrupted?

Thanks,

Perazim
perazim
 
Posts: 6
Joined: 2014-08-03 12:54

Re: apt-mirror appears to misstate amount of data that will

Postby perazim » 2017-07-29 15:46

I have discovered that there is a typo in the mirror.list on the third line:

deb-amd64 http://ftp.is.co.za/debian/ stretch main contrib non-free
deb-i386 http://ftp.is.co.za/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian stretch main contrib non-free
...

s/b

deb-amd64 http://ftp.is.co.za/debian/ stretch main contrib non-free
deb-i386 http://ftp.is.co.za/debian/ stretch main contrib non-free
deb-src http://ftp.is.co.za/debian stretch main contrib non-free
...

While this may not be the cause of over-stating amount of data, it results in some of the data coming from overseas and not wanted. Once I adjust the mirror.list file, can I simply merge the two directory trees created by apt-mirror and rerun apt-mirror??? and will it not download all the debs again???


Thanks,

Perazim
perazim
 
Posts: 6
Joined: 2014-08-03 12:54

Re: apt-mirror appears to misstate amount of data that will

Postby Bulkley » 2017-07-29 17:00

If you are not using source packages there is no need for the src lines.

Do you really want both amd64 and i386? that looks like a recipe for trouble.

Where is your security update line?
Bulkley
 
Posts: 5240
Joined: 2006-02-11 18:35

Re: apt-mirror amount of data to be transferred wrong?

Postby perazim » 2017-08-11 10:22

My sources.list and mirror.list issues are resolved but I have two small issues remaining:

1 - apt-mirror still states that there is 11GB of data remaining to be transferred when there is none. Everything seems to be in the mirror.

2 - I receive the following error at the end of the run: can't open /var/spool/apt-mirror/var/post-mirror.sh. Indeed the file is not there. Is this an error and a programming oversight?

Thanks,

Perazim
perazim
 
Posts: 6
Joined: 2014-08-03 12:54


Return to System configuration

Who is online

Users browsing this forum: kopper, Onsemeliot and 11 guests

fashionable