نشانیها
- مخزن Raspberry Pi (archive.raspberrypi.com)
https://mirror-raspberrypi.pkg.shecan.ir/debian/ - Raspbian، نسخهٔ ۳۲ بیتی (raspbian.raspberrypi.com)
https://mirror-raspberrypi.pkg.shecan.ir/raspbian/
Raspberry Pi OS (Bookworm و Trixie، ۳۲ و ۶۴ بیتی)
ابتدا از فایلهای فعلی نسخهٔ پشتیبان بگیرید، سپس نشانی مخزنها را عوض کنید.
Shell
sudo mkdir -p /root/apt-sources.bak && sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.d /root/apt-sources.bak/Shell
sudo sed -i -E 's#https?://archive\.raspberrypi\.(com|org)/debian#http://mirror-raspberrypi.pkg.shecan.ir/debian#; s#https?://raspbian\.raspberrypi\.(com|org)/raspbian#http://mirror-raspberrypi.pkg.shecan.ir/raspbian#; s#https?://(deb|security)\.debian\.org/#http://mirror-debian.pkg.shecan.ir/#' $(grep -rlE 'raspberrypi\.(com|org)|debian\.org' /etc/apt/sources.list /etc/apt/sources.list.d 2>/dev/null)Shell
sudo apt updateShell
sudo cp -a /root/apt-sources.bak/sources.list /root/apt-sources.bak/sources.list.d /etc/apt/نکتهها و محدودیتها
- apt امضای رسمی Raspberry Pi و Raspbian را بررسی میکند. مثل سرورهای رسمی، HTTP ساده هم فعال است.
- بخش Debian در Raspberry Pi OS نسخهٔ ۶۴ بیتی از میرور Debian دریافت میشود؛ دستور ۲ نشانی آن را هم عوض میکند.
- بستههای Raspbian از میرورهای کامل Raspbian (دانشگاه RWTH آخن و سپس Aliyun) دریافت میشوند، چون raspbian.raspberrypi.com خودش هر بسته را به یک میرور دیگر میفرستد؛ فهرست امضاشدهٔ بستهها همیشه از raspbian.raspberrypi.com میآید.