3

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
6
  • Are there entries in /etc/apt/sources.list.d/ ?
    – joan
    Commented Apr 28, 2016 at 20:00
  • @joan yes, there is: deb archive.raspberrypi.org/debian jessie main ui
    – Motte001
    Commented Apr 29, 2016 at 6:37
  • Can I just add this archive to my apt-mirror and change it to the ip of my server?
    – Motte001
    Commented Apr 29, 2016 at 6:38
  • I suppose. Why not just comment it out if you don't use anything within the repository? It'll be Foundation tailored packages for the Pi, e.g. gpiozero, Wolfram, RPi.GPIO, wiringPi etc.
    – joan
    Commented Apr 29, 2016 at 8:06
  • @joan maybe I need something from that repository
    – Motte001
    Commented Apr 29, 2016 at 8:13

3 Answers 3

6

I'm having the same exact same problem right now, 8 months after this question is asked. But I have found a solution for this, and I manage to successfully install PIXEL desktop environment on my RetroPie in a matter of minutes.

First, edit the raspi.list file :

nano /etc/apt/sources.list.d/raspi.list

Comment out all the existing lines (including the archive.raspberrypi.org of course). Then add the following line :

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ jessie main ui

Save the file, then execute apt-get update and continue what you intended to do. I hope this helps answer other complaints about how slow the speed of raspberry pi debian archive server is.

0

This one that worked for me, remove debian/ from what Hendri Winarto suggested.

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/ jessie main ui
0

In Debian Buster, you need to modify two files to change the archive address. Just delete everything in these two files and add in the text below:

  1. /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi
  1. /etc/apt/sources.list.d/raspi.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui

Note: I showed the Tsinghua University mirror here. For other options best-suited for your location, see this official list.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.