sprocket12
Posts: 3
Joined: Mon Apr 30, 2018 4:23 pm

Mirroring Raspbian Repository

Mon Apr 30, 2018 4:43 pm

I have a segregated network that has no direct internet connection. I have Ubuntu servers running apt-mirror for Ubuntu and Ubuntu-Mate (raspberry pi version) fine. These are then transferred with secret sauce to my internal network. seeing as the Ubuntu-Mate is not as complete as Raspbian, our developers have requested the latter be made available, with updates.

I added the following to our mirror.list:

Code: Select all

# raspbian specific
deb-armhf http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
deb-armhf http://archive.raspberrypi.org/debian/ stretch main ui
When I run the apt-mirror command. Everything looks ok. It completes with no errors. But it doesn't actually download all the files. Every time I run apt-mirror it says it will download 67.5 GB of data.

I have plenty of disk space. I can find no errors in logs (although I can't find any specific mirroring logs). Are my 'deb-armhf' identifiers wrong for these mirrors? I only ask because after experimenting, the 'deb-armhf' are the only ones that don't complain. I've tried separate mirror.list configuration files for the Ubuntu and Raspbian too. I get the same results.

Ugh! Any ideas?

sprocket12
Posts: 3
Joined: Mon Apr 30, 2018 4:23 pm

Re: Mirroring Raspbian Repository

Wed May 02, 2018 2:58 pm

Is anybody mirroring raspbian repository successfully? How are you doing it? I saw some rather old posts about basically rsync'ing the whole site...

davesteele
Posts: 57
Joined: Wed Nov 30, 2016 4:16 pm

Re: Mirroring Raspbian Repository

Wed May 02, 2018 5:53 pm

sprocket12 wrote:
Wed May 02, 2018 2:58 pm
Is anybody mirroring raspbian repository successfully? How are you doing it? I saw some rather old posts about basically rsync'ing the whole site...
The 'official' mechanism involves rsync.

https://www.debian.org/mirror/ftpmirror#how

I've done this before with a web screen scrape. I'd advise against that.

Most of what you may want out of this can be accomplished by installing apt-cacher ng and squid-deb-proxy-client.

sprocket12
Posts: 3
Joined: Mon Apr 30, 2018 4:23 pm

Re: Mirroring Raspbian Repository [SOLVED]

Fri May 04, 2018 2:57 pm

After pulling a lot of hair out I have tracked down the culprit.

Our network security group hadn't validated the mirrors pointing to other external addresses. The firewall rules were updated to allow the traffic. Now apt-mirror is working like it should.

The problem was no errors are reported or logged on my repo server. As soon as the firewall logs were viewed, the access denied messages were clear.

Return to “Raspbian”