i am using a local apt-mirror to mirror raspbian and ubuntu and changed to /etc/apt/sources.list
on my pi. But it still updates from archive.raspberrypi.org.
From apt-mirror config:
#Raspbian
deb-armhf http://mirrordirector.raspbian.org/raspbian jessie main contrib non-free rpi
apt-get update
output:
Hit http://<IP-of-my-ubuntu-server> jessie InRelease
Get:1 http://archive.raspberrypi.org jessie InRelease [13.2 kB]
Get:2 http://<IP-of-my-ubuntu-server> jessie/main armhf Packages [8,964 kB]
Get:3 http://archive.raspberrypi.org jessie/main armhf Packages [144 kB]
Get:4 http://archive.raspberrypi.org jessie/ui armhf Packages [8,311 B]
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:5 http://<IP-of-my-ubuntu-server> jessie/contrib armhf Packages [37.5 kB]
Get:6 http://<IP-of-my-ubuntu-server> jessie/non-free armhf Packages [70.3 kB]
Get:7 http://<IP-of-my-ubuntu-server> jessie/rpi armhf Packages [1,356 B]
Ign http://<IP-of-my-ubuntu-server> jessie/contrib Translation-en_GB
Ign http://<IP-of-my-ubuntu-server> jessie/contrib Translation-en
Ign http://<IP-of-my-ubuntu-server> jessie/main Translation-en_GB
Ign http://<IP-of-my-ubuntu-server> jessie/main Translation-en
Ign http://<IP-of-my-ubuntu-server> jessie/non-free Translation-en_GB
Ign http://<IP-of-my-ubuntu-server> jessie/non-free Translation-en
Ign http://<IP-of-my-ubuntu-server> jessie/rpi Translation-en_GB
Ign http://<IP-of-my-ubuntu-server> jessie/rpi Translation-en
Fetched 9,238 kB in 25s (365 kB/s)
Reading package lists... Done