Raspberry Pi 默认更新源访问速度慢,更换国内源速度提升。更换软件更新源 (/etc/apt/sources.list),更换系统更新源 (/etc/apt/sources.d/raspi.list)。对这两个文件进行修改,将其中的源网址更换为国内镜像站点。

硬件:Raspberry Pi 3 Model B+ - Raspberry Pi 2017
系统:2018-11-13-raspbian-stretch.zip - stretch 版本类型
lsb_release -a 查看系统版本类型

  1. pi@raspberrypi:~ $ lsb_release -a
  2. No LSB modules are available.
  3. Distributor ID: Raspbian
  4. Description: Raspbian GNU/Linux 9.6 (stretch)
  5. Release: 9.6
  6. Codename: stretch
  7. pi@raspberrypi:~ $

1. 更换源之前

  1. pi@raspberrypi:~ $ sudo apt-get update
  2. 获取: http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
  3. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf Packages [41.3 kB]
  4. 命中: http://raspbian.raspberrypi.org/raspbian stretch InRelease
  5. 获取: http://120.52.51.18/archive.raspberrypi.org/debian stretch/main armhf Packages [201 kB]
  6. 已下载 kB,耗时 54 (, B/s)
  7. 正在读取软件包列表... 完成
  8. pi@raspberrypi:~ $
  9. pi@raspberrypi:~ $ sudo apt-get upgrade
  10. 正在读取软件包列表... 完成
  11. 正在分析软件包的依赖关系树
  12. 正在读取状态信息... 完成
  13. 正在计算更新... 完成
  14. 下列软件包将被升级:
  15. base-files geany geany-common gtk2-engines-clearlookspix libarchive13 libbasicusageenvironment1 libgroupsock8 libgs9 libgs9-common
  16. liblivemedia57 libobrender32v5 libobt2v5 libpam-systemd libperl5. libpolkit-agent-- libpolkit-backend-- libpolkit-gobject--
  17. libsdl1.2debian libsmbclient libssl1.0.2 libssl1. libsystemd0 libtiff5 libudev1 libusageenvironment3 libvlc-bin libvlc5 libvlccore9
  18. libwbclient0 obconf openbox openssl perl perl-base perl-modules-5.24 pi-greeter pipanel policykit- python-rpi.gpio python3-rpi.gpio
  19. raspberrypi-sys-mods raspberrypi-ui-mods raspi-config rp-prefapps rpi-chromium-mods samba-common samba-libs systemd systemd-sysv udev vlc
  20. vlc-bin vlc-data vlc-l10n vlc-plugin-base vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output
  21. vlc-plugin-video-splitter vlc-plugin-visualization zenity zenity-common
  22. 升级了 个软件包,新安装了 个软件包,要卸载 个软件包,有 个软件包未被升级。
  23. 需要下载 57.1 MB 的归档。
  24. 解压缩后将会空出 kB 的空间。
  25. 您希望继续执行吗? [Y/n] Y
  26. 获取: http://archive.raspberrypi.org/debian stretch/main armhf libvlccore9 armhf 3.0.6-0+rpt1+deb9u1 [478 kB]
  27. 获取: http://archive.raspberrypi.org/debian stretch/main armhf libvlc5 armhf 3.0.6-0+rpt1+deb9u1 [162 kB]
  28. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf rpi-chromium-mods armhf 20190103 [9,176 kB]
  29. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf base-files armhf 9.9+rpi1+deb9u6 [67.5 kB]
  30. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libperl5.24 armhf 5.24.1-3+deb9u5 [2,837 kB]
  31. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf perl armhf 5.24.1-3+deb9u5 [219 kB]
  32. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf perl-base armhf 5.24.1-3+deb9u5 [1,198 kB]
  33. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-skins2 armhf 3.0.6-0+rpt1+deb9u1 [491 kB]
  34. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf perl-modules-5.24 all 5.24.1-3+deb9u5 [2,722 kB]
  35. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc armhf 3.0.6-0+rpt1+deb9u1 [138 kB]
  36. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-qt armhf 3.0.6-0+rpt1+deb9u1 [1,001 kB]
  37. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-bin armhf 3.0.6-0+rpt1+deb9u1 [156 kB]
  38. 获取: http://archive.raspberrypi.org/debian stretch/main armhf libvlc-bin armhf 3.0.6-0+rpt1+deb9u1 [122 kB]
  39. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-video-output armhf 3.0.6-0+rpt1+deb9u1 [234 kB]
  40. 获取: http://archive.raspberrypi.org/debian stretch/main armhf libsdl1.2debian armhf 1.2.15+dfsg1-4+rpt1 [160 kB]
  41. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libwbclient0 armhf 2:4.5.12+dfsg-2+deb9u4 [121 kB]
  42. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libsmbclient armhf 2:4.5.12+dfsg-2+deb9u4 [144 kB]
  43. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-l10n all 3.0.6-0+rpt1+deb9u1 [5,732 kB]
  44. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf samba-libs armhf 2:4.5.12+dfsg-2+deb9u4 [4,379 kB]
  45. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf samba-common all 2:4.5.12+dfsg-2+deb9u4 [172 kB]
  46. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libarchive13 armhf 3.2.2-2+deb9u1 [253 kB]
  47. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libbasicusageenvironment1 armhf 2016.11.28-1+deb9u1 [19.7 kB]
  48. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libgroupsock8 armhf 2016.11.28-1+deb9u1 [24.8 kB]
  49. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf liblivemedia57 armhf 2016.11.28-1+deb9u1 [265 kB]
  50. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libusageenvironment3 armhf 2016.11.28-1+deb9u1 [12.2 kB]
  51. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libtiff5 armhf 4.0.8-2+deb9u4 [220 kB]
  52. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libgs9 armhf 9.26~dfsg-0+deb9u2 [1,863 kB]
  53. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libgs9-common all 9.26~dfsg-0+deb9u2 [5,142 kB]
  54. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf policykit-1 armhf 0.105-18+deb9u1 [61.7 kB]
  55. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libpolkit-agent-1-0 armhf 0.105-18+deb9u1 [22.3 kB]
  56. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libpolkit-backend-1-0 armhf 0.105-18+deb9u1 [39.8 kB]
  57. 获取: http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libpolkit-gobject-1-0 armhf 0.105-18+deb9u1 [37.8 kB]
  58. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf systemd-sysv armhf 232-25+deb9u7 [81.6 kB]
  59. 错误: http://mirrors.opencas.cn/raspbian/raspbian stretch/main armhf libssl1.0.2 armhf 1.0.2q-1~deb9u1
  60. 无法发起与 mirrors.opencas.cn: (:cc0::::) 的连接 - connect (: 网络不可达)
  61. 错误: http://mirrors.opencas.cn/raspbian/raspbian stretch/main armhf libssl1.1 armhf 1.1.0j-1~deb9u1
  62. 无法发起与 mirrors.opencas.cn: (:cc0::::) 的连接 - connect (: 网络不可达)
  63. 错误: http://mirrors.opencas.cn/raspbian/raspbian stretch/main armhf openssl armhf 1.1.0j-1~deb9u1
  64. 无法发起与 mirrors.opencas.cn: (:cc0::::) 的连接 - connect (: 网络不可达)
  65. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libpam-systemd armhf 232-25+deb9u7 [174 kB]
  66. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libsystemd0 armhf 232-25+deb9u7 [259 kB]
  67. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf systemd armhf 232-25+deb9u7 [2,221 kB]
  68. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf udev armhf 232-25+deb9u7 [1,072 kB]
  69. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libudev1 armhf 232-25+deb9u7 [120 kB]
  70. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-base armhf 3.0.6-0+rpt1+deb9u1 [2,474 kB]
  71. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-data all 3.0.6-0+rpt1+deb9u1 [445 kB]
  72. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-notify armhf 3.0.6-0+rpt1+deb9u1 [123 kB]
  73. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-samba armhf 3.0.6-0+rpt1+deb9u1 [123 kB]
  74. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-video-splitter armhf 3.0.6-0+rpt1+deb9u1 [136 kB]
  75. 获取: http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-visualization armhf 3.0.6-0+rpt1+deb9u1 [138 kB]
  76. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf geany armhf 1.29-1+rpt2 [1,224 kB]
  77. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf geany-common all 1.29-1+rpt2 [2,461 kB]
  78. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf gtk2-engines-clearlookspix armhf 1:2.20.7 [66.0 kB]
  79. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf libobt2v5 armhf 3.6.1-4+rpi9 [62.3 kB]
  80. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf libobrender32v5 armhf 3.6.1-4+rpi9 [69.6 kB]
  81. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf obconf armhf 1:2.0.4+git20150213-2+rpt1 [123 kB]
  82. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf openbox armhf 3.6.1-4+rpi9 [281 kB]
  83. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf pi-greeter armhf 0.9 [40.8 kB]
  84. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf zenity-common all 3.28.1-1.1~bpo9+rpt1 [4,126 kB]
  85. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf zenity armhf 3.28.1-1.1~bpo9+rpt1 [268 kB]
  86. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf pipanel armhf 20181126~094616 [19.2 kB]
  87. 获取: http://archive.raspberrypi.org/debian stretch/main armhf python-rpi.gpio armhf 0.6.5~stretch-1 [23.5 kB]
  88. 获取: http://archive.raspberrypi.org/debian stretch/main armhf python3-rpi.gpio armhf 0.6.5~stretch-1 [23.6 kB]
  89. 获取: http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-sys-mods armhf 20181127 [10.2 kB]
  90. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf rp-prefapps armhf 0.5 [175 kB]
  91. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf raspberrypi-ui-mods all 1.20181206 [318 kB]
  92. 获取: http://archive.raspberrypi.org/debian stretch/ui armhf raspi-config all 20181118 [20.2 kB]
  93. 已下载 54.3 MB,耗时 3 10 ( kB/s)
  94. E: 无法下载 http://mirrors.opencas.cn/raspbian/raspbian/pool/main/o/openssl1.0/libssl1.0.2_1.0.2q-1~deb9u1_armhf.deb 无法发起与 mirrors.opencas.cn:80 (2001:cc0:2020:4075::211) 的连接 - connect (101: 网络不可达)
  95. E: 无法下载 http://mirrors.opencas.cn/raspbian/raspbian/pool/main/o/openssl/libssl1.1_1.1.0j-1~deb9u1_armhf.deb 无法发起与 mirrors.opencas.cn:80 (2001:cc0:2020:4075::211) 的连接 - connect (101: 网络不可达)
  96. E: 无法下载 http://mirrors.opencas.cn/raspbian/raspbian/pool/main/o/openssl/openssl_1.1.0j-1~deb9u1_armhf.deb 无法发起与 mirrors.opencas.cn:80 (2001:cc0:2020:4075::211) 的连接 - connect (101: 网络不可达)
  97. E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?
  98. pi@raspberrypi:~ $

2. 更换源

2.1 备份源文件

  1. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
  2. sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak

2.2更换软件更新源 (/etc/apt/sources.list)

  1. pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list

使用 # 注释掉原文件内容,使用以下内容取代。

  1. deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
  2. deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi

修改前

修改后

2.3 更换系统更新源 (/etc/apt/sources.d/raspi.list)

  1. pi@raspberrypi:~ $ sudo nano /etc/apt/sources.list.d/raspi.list

使用 # 注释掉原文件内容,使用以下内容取代。

  1. deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
  2. deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui

修改前

修改后

3. 更换源之后

  1. pi@raspberrypi:~ $ sudo apt-get update
  2. 获取: http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch InRelease [25.4 kB]
  3. 获取: http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch/ui Sources [20.7 kB]
  4. 获取: http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch/main Sources [66.4 kB]
  5. 获取: http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch/main armhf Packages [201 kB]
  6. 获取: http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch/ui armhf Packages [41.3 kB]
  7. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch InRelease [15.0 kB]
  8. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/rpi Sources [1,132 B]
  9. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/contrib Sources [75.2 kB]
  10. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main Sources [9,717 kB]
  11. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/non-free Sources [125 kB]
  12. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf Packages [11.7 MB]
  13. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/contrib armhf Packages [56.9 kB]
  14. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/non-free armhf Packages [95.5 kB]
  15. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/rpi armhf Packages [1,360 B]
  16. 已下载 22.1 MB,耗时 27 ( kB/s)
  17. 正在读取软件包列表... 完成
  18. pi@raspberrypi:~ $
  19. pi@raspberrypi:~ $ sudo apt-get upgrade
  20. 正在读取软件包列表... 完成
  21. 正在分析软件包的依赖关系树
  22. 正在读取状态信息... 完成
  23. 正在计算更新... 完成
  24. 下列软件包将被升级:
  25. base-files geany geany-common gtk2-engines-clearlookspix libarchive13 libbasicusageenvironment1 libgroupsock8 libgs9 libgs9-common liblivemedia57 libobrender32v5
  26. libobt2v5 libpam-systemd libperl5. libpolkit-agent-- libpolkit-backend-- libpolkit-gobject-- libsdl1.2debian libsmbclient libssl1.0.2 libssl1. libsystemd0
  27. libtiff5 libudev1 libusageenvironment3 libvlc-bin libvlc5 libvlccore9 libwbclient0 obconf openbox openssl perl perl-base perl-modules-5.24 pi-greeter pipanel
  28. policykit- python-rpi.gpio python3-rpi.gpio raspberrypi-sys-mods raspberrypi-ui-mods raspi-config rp-prefapps rpi-chromium-mods samba-common samba-libs systemd
  29. systemd-sysv udev vlc vlc-bin vlc-data vlc-l10n vlc-plugin-base vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output
  30. vlc-plugin-video-splitter vlc-plugin-visualization zenity zenity-common
  31. 升级了 个软件包,新安装了 个软件包,要卸载 个软件包,有 个软件包未被升级。
  32. 需要下载 , kB/57.1 MB 的归档。
  33. 解压缩后将会空出 kB 的空间。
  34. 您希望继续执行吗? [Y/n] Y
  35. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libssl1.0.2 armhf 1.0.2q-1~deb9u1 [898 kB]
  36. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libssl1.1 armhf 1.1.0j-1~deb9u1 [1,115 kB]
  37. 获取: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf openssl armhf 1.1.0j-1~deb9u1 [712 kB]
  38. 已下载 , kB,耗时 20 ( kB/s)
  39. 读取变更记录(changelogs)... 完成
  40. 正在从软件包中解出模板:%
  41. 正在预设定软件包 ...
  42. (正在读取数据库 ... 系统当前共安装有 个文件和目录。)
  43. 正准备解包 .../base-files_9.+rpi1+deb9u6_armhf.deb ...
  44. 正在将 base-files (9.9+rpi1+deb9u6) 解包到 (9.9+rpi1+deb9u4) ...
  45. 正在设置 base-files (9.9+rpi1+deb9u6) ...
  46. 正在安装新版本配置文件 /etc/debian_version ...
  47. (正在读取数据库 ... 系统当前共安装有 个文件和目录。)
  48. 正准备解包 .../libperl5.24_5.24.1-+deb9u5_armhf.deb ...
  49. 正在将 libperl5.:armhf (5.24.-+deb9u5) 解包到 (5.24.-+deb9u4) ...
  50. 正准备解包 .../perl_5.24.1-+deb9u5_armhf.deb ...
  51. 正在将 perl (5.24.-+deb9u5) 解包到 (5.24.-+deb9u4) ...
  52. 正准备解包 .../perl-base_5.24.1-+deb9u5_armhf.deb ...
  53. 正在将 perl-base (5.24.-+deb9u5) 解包到 (5.24.-+deb9u4) ...
  54. 正在设置 perl-base (5.24.-+deb9u5) ...
  55. (正在读取数据库 ... 系统当前共安装有 个文件和目录。)
  56. 正准备解包 .../perl-modules-.24_5.24.1-+deb9u5_all.deb ...
  57. 正在将 perl-modules-5.24 (5.24.-+deb9u5) 解包到 (5.24.-+deb9u4) ...
  58. 正准备解包 .../systemd-sysv_232-+deb9u7_armhf.deb ...
  59. 正在将 systemd-sysv (-+deb9u7) 解包到 (-+deb9u6) ...
  60. 正准备解包 .../libpam-systemd_232-+deb9u7_armhf.deb ...
  61. 正在将 libpam-systemd:armhf (-+deb9u7) 解包到 (-+deb9u6) ...
  62. 正准备解包 .../libsystemd0_232-+deb9u7_armhf.deb ...
  63. 正在将 libsystemd0:armhf (-+deb9u7) 解包到 (-+deb9u6) ...
  64. 正在设置 libsystemd0:armhf (-+deb9u7) ...
  65. (正在读取数据库 ... 系统当前共安装有 个文件和目录。)
  66. 正准备解包 .../systemd_232-+deb9u7_armhf.deb ...
  67. 正在将 systemd (-+deb9u7) 解包到 (-+deb9u6) ...
  68. 正准备解包 .../udev_232-+deb9u7_armhf.deb ...
  69. 正在将 udev (-+deb9u7) 解包到 (-+deb9u6) ...
  70. 正准备解包 .../libudev1_232-+deb9u7_armhf.deb ...
  71. 正在将 libudev1:armhf (-+deb9u7) 解包到 (-+deb9u6) ...
  72. 正在设置 libudev1:armhf (-+deb9u7) ...
  73. (正在读取数据库 ... 系统当前共安装有 个文件和目录。)
  74. 正准备解包 .../-libwbclient0_2%3a4.5.12+dfsg-+deb9u4_armhf.deb ...
  75. 正在将 libwbclient0:armhf (:4.5.+dfsg-+deb9u4) 解包到 (:4.5.+dfsg-+deb9u3) ...
  76. 正准备解包 .../-libsmbclient_2%3a4.5.12+dfsg-+deb9u4_armhf.deb ...
  77. 正在将 libsmbclient:armhf (:4.5.+dfsg-+deb9u4) 解包到 (:4.5.+dfsg-+deb9u3) ...
  78. 正准备解包 .../-samba-libs_2%3a4.5.12+dfsg-+deb9u4_armhf.deb ...
  79. 正在将 samba-libs:armhf (:4.5.+dfsg-+deb9u4) 解包到 (:4.5.+dfsg-+deb9u3) ...
  80. 正准备解包 .../-libvlccore9_3.0.6-+rpt1+deb9u1_armhf.deb ...
  81. 正在将 libvlccore9:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  82. 正准备解包 .../-libvlc5_3.0.6-+rpt1+deb9u1_armhf.deb ...
  83. 正在将 libvlc5:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  84. 正准备解包 .../-rpi-chromium-mods_20190103_armhf.deb ...
  85. 正在将 rpi-chromium-mods () 解包到 () ...
  86. 正准备解包 .../-samba-common_2%3a4.5.12+dfsg-+deb9u4_all.deb ...
  87. 正在将 samba-common (:4.5.+dfsg-+deb9u4) 解包到 (:4.5.+dfsg-+deb9u3) ...
  88. 正准备解包 .../-vlc-plugin-skins2_3.0.6-+rpt1+deb9u1_armhf.deb ...
  89. 正在将 vlc-plugin-skins2:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  90. 正准备解包 .../-vlc_3.0.6-+rpt1+deb9u1_armhf.deb ...
  91. 正在将 vlc (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  92. 正准备解包 .../-vlc-plugin-qt_3.0.6-+rpt1+deb9u1_armhf.deb ...
  93. 正在将 vlc-plugin-qt:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  94. 正准备解包 .../-vlc-bin_3.0.6-+rpt1+deb9u1_armhf.deb ...
  95. 正在将 vlc-bin (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  96. 正准备解包 .../-libvlc-bin_3.0.6-+rpt1+deb9u1_armhf.deb ...
  97. 正在将 libvlc-bin:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  98. 正准备解包 .../-vlc-plugin-video-output_3.0.6-+rpt1+deb9u1_armhf.deb ...
  99. 正在将 vlc-plugin-video-output:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  100. 正准备解包 .../-libarchive13_3.2.2-+deb9u1_armhf.deb ...
  101. 正在将 libarchive13:armhf (3.2.-+deb9u1) 解包到 (3.2.-) ...
  102. 正准备解包 .../-libbasicusageenvironment1_2016.11.28-+deb9u1_armhf.deb ...
  103. 正在将 libbasicusageenvironment1:armhf (2016.11.-+deb9u1) 解包到 (2016.11.-) ...
  104. 正准备解包 .../-libgroupsock8_2016.11.28-+deb9u1_armhf.deb ...
  105. 正在将 libgroupsock8:armhf (2016.11.-+deb9u1) 解包到 (2016.11.-) ...
  106. 正准备解包 .../-liblivemedia57_2016.11.28-+deb9u1_armhf.deb ...
  107. 正在将 liblivemedia57:armhf (2016.11.-+deb9u1) 解包到 (2016.11.-) ...
  108. 正准备解包 .../-libsdl1.2debian_1.2.15+dfsg1-+rpt1_armhf.deb ...
  109. 正在将 libsdl1.2debian:armhf (1.2.+dfsg1-+rpt1) 解包到 (1.2.+dfsg1-) ...
  110. 正准备解包 .../-libusageenvironment3_2016.11.28-+deb9u1_armhf.deb ...
  111. 正在将 libusageenvironment3:armhf (2016.11.-+deb9u1) 解包到 (2016.11.-) ...
  112. 正准备解包 .../-vlc-l10n_3.0.6-+rpt1+deb9u1_all.deb ...
  113. 正在将 vlc-l10n (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  114. 正准备解包 .../-vlc-plugin-base_3.0.6-+rpt1+deb9u1_armhf.deb ...
  115. 正在将 vlc-plugin-base:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  116. 正准备解包 .../-vlc-data_3.0.6-+rpt1+deb9u1_all.deb ...
  117. 正在将 vlc-data (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  118. 正准备解包 .../-vlc-plugin-notify_3.0.6-+rpt1+deb9u1_armhf.deb ...
  119. 正在将 vlc-plugin-notify:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  120. 正准备解包 .../-vlc-plugin-samba_3.0.6-+rpt1+deb9u1_armhf.deb ...
  121. 正在将 vlc-plugin-samba:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  122. 正准备解包 .../-vlc-plugin-video-splitter_3.0.6-+rpt1+deb9u1_armhf.deb ...
  123. 正在将 vlc-plugin-video-splitter:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  124. 正准备解包 .../-vlc-plugin-visualization_3.0.6-+rpt1+deb9u1_armhf.deb ...
  125. 正在将 vlc-plugin-visualization:armhf (3.0.-+rpt1+deb9u1) 解包到 (3.0.--+deb9u1+rpt1) ...
  126. 正准备解包 .../-libssl1..2_1..2q-~deb9u1_armhf.deb ...
  127. 正在将 libssl1.0.2:armhf (1.0.2q-~deb9u1) 解包到 (1.0.2l-+deb9u3) ...
  128. 正准备解包 .../-libssl1.1_1..0j-~deb9u1_armhf.deb ...
  129. 正在将 libssl1.:armhf (1.1.0j-~deb9u1) 解包到 (1.1.0f-+deb9u2) ...
  130. 正准备解包 .../-geany_1.-+rpt2_armhf.deb ...
  131. 正在将 geany (1.29-+rpt2) 解包到 (1.29-+rpt1) ...
  132. 正准备解包 .../-geany-common_1.-+rpt2_all.deb ...
  133. 正在将 geany-common (1.29-+rpt2) 解包到 (1.29-+rpt1) ...
  134. 正准备解包 .../-gtk2-engines-clearlookspix_1%3a2..7_armhf.deb ...
  135. 正在将 gtk2-engines-clearlookspix:armhf (:2.20.) 解包到 (:2.20.) ...
  136. 正准备解包 .../-libtiff5_4.0.8-+deb9u4_armhf.deb ...
  137. 正在将 libtiff5:armhf (4.0.-+deb9u4) 解包到 (4.0.-+deb9u2) ...
  138. 正准备解包 .../-libgs9_9.~dfsg-+deb9u2_armhf.deb ...
  139. 正在将 libgs9:armhf (9.26~dfsg-+deb9u2) 解包到 (9.25~dfsg-+deb9u1) ...
  140. 正准备解包 .../-libgs9-common_9.~dfsg-+deb9u2_all.deb ...
  141. 正在将 libgs9-common (9.26~dfsg-+deb9u2) 解包到 (9.25~dfsg-+deb9u1) ...
  142. 正准备解包 .../-libobt2v5_3.6.1-+rpi9_armhf.deb ...
  143. 正在将 libobt2v5 (3.6.-+rpi9) 解包到 (3.6.-+rpi7) ...
  144. 正准备解包 .../-libobrender32v5_3.6.1-+rpi9_armhf.deb ...
  145. 正在将 libobrender32v5 (3.6.-+rpi9) 解包到 (3.6.-+rpi7) ...
  146. 正准备解包 .../-policykit-1_0.-+deb9u1_armhf.deb ...
  147. Created symlink /run/systemd/system/polkit.service /dev/null.
  148. 正在将 policykit- (0.105-+deb9u1) 解包到 (0.105-) ...
  149. 正准备解包 .../-libpolkit-agent--0_0.-+deb9u1_armhf.deb ...
  150. 正在将 libpolkit-agent--:armhf (0.105-+deb9u1) 解包到 (0.105-) ...
  151. 正准备解包 .../-libpolkit-backend--0_0.-+deb9u1_armhf.deb ...
  152. 正在将 libpolkit-backend--:armhf (0.105-+deb9u1) 解包到 (0.105-) ...
  153. 正准备解包 .../-libpolkit-gobject--0_0.-+deb9u1_armhf.deb ...
  154. 正在将 libpolkit-gobject--:armhf (0.105-+deb9u1) 解包到 (0.105-) ...
  155. 正准备解包 .../-obconf_1%3a2.0.4+git20150213-+rpt1_armhf.deb ...
  156. 正在将 obconf (:2.0.+git20150213-+rpt1) 解包到 (:2.0.+git20150213-) ...
  157. 正准备解包 .../-openbox_3.6.1-+rpi9_armhf.deb ...
  158. 正在将 openbox (3.6.-+rpi9) 解包到 (3.6.-+rpi7) ...
  159. 正准备解包 .../-openssl_1..0j-~deb9u1_armhf.deb ...
  160. 正在将 openssl (1.1.0j-~deb9u1) 解包到 (1.1.0f-+deb9u2) ...
  161. 正准备解包 .../-pi-greeter_0.9_armhf.deb ...
  162. 正在将 pi-greeter (0.9) 解包到 (0.7) ...
  163. 正准备解包 .../-zenity-common_3.28.1-1.1~bpo9+rpt1_all.deb ...
  164. 正在将 zenity-common (3.28.-1.1~bpo9+rpt1) 解包到 (3.28.-1.1~bpo9+) ...
  165. 正准备解包 .../-zenity_3.28.1-1.1~bpo9+rpt1_armhf.deb ...
  166. 正在将 zenity (3.28.-1.1~bpo9+rpt1) 解包到 (3.28.-1.1~bpo9+) ...
  167. 正准备解包 .../-pipanel_20181126~094616_armhf.deb ...
  168. 正在将 pipanel (~) 解包到 (~) ...
  169. 正准备解包 .../-python-rpi.gpio_0.6.5~stretch-1_armhf.deb ...
  170. 正在将 python-rpi.gpio (0.6.~stretch-) 解包到 (0.6.~stretch-) ...
  171. 正准备解包 .../-python3-rpi.gpio_0.6.5~stretch-1_armhf.deb ...
  172. 正在将 python3-rpi.gpio (0.6.~stretch-) 解包到 (0.6.~stretch-) ...
  173. 正准备解包 .../-raspberrypi-sys-mods_20181127_armhf.deb ...
  174. 正在将 raspberrypi-sys-mods () 解包到 (+) ...
  175. 正准备解包 .../-rp-prefapps_0.5_armhf.deb ...
  176. 正在将 rp-prefapps (0.5) 解包到 (0.4) ...
  177. 正准备解包 .../-raspberrypi-ui-mods_1.20181206_all.deb ...
  178. 正在将 raspberrypi-ui-mods (1.20181206) 解包到 (1.20180926) ...
  179. 正准备解包 .../-raspi-config_20181118_all.deb ...
  180. 正在将 raspi-config () 解包到 () ...
  181. 正在设置 libgs9-common (9.26~dfsg-+deb9u2) ...
  182. 正在设置 gtk2-engines-clearlookspix:armhf (:2.20.) ...
  183. 正在设置 perl-modules-5.24 (5.24.-+deb9u5) ...
  184. 正在设置 libperl5.:armhf (5.24.-+deb9u5) ...
  185. 正在设置 libwbclient0:armhf (:4.5.+dfsg-+deb9u4) ...
  186. 正在设置 rpi-chromium-mods () ...
  187. 正在设置 libusageenvironment3:armhf (2016.11.-+deb9u1) ...
  188. 正在设置 samba-libs:armhf (:4.5.+dfsg-+deb9u4) ...
  189. 正在处理用于 mime-support (3.60) 的触发器 ...
  190. 正在处理用于 desktop-file-utils (0.23-) 的触发器 ...
  191. 正在设置 vlc-data (3.0.-+rpt1+deb9u1) ...
  192. 正在设置 libarchive13:armhf (3.2.-+deb9u1) ...
  193. 正在处理用于 install-info (6.3..dfsg.-+b1) 的触发器 ...
  194. 正在设置 libobt2v5 (3.6.-+rpi9) ...
  195. 正在设置 python3-rpi.gpio (0.6.~stretch-) ...
  196. 正在设置 libbasicusageenvironment1:armhf (2016.11.-+deb9u1) ...
  197. 正在设置 liblivemedia57:armhf (2016.11.-+deb9u1) ...
  198. 正在设置 geany-common (1.29-+rpt2) ...
  199. 正在设置 samba-common (:4.5.+dfsg-+deb9u4) ...
  200. 正在设置 libsdl1.2debian:armhf (1.2.+dfsg1-+rpt1) ...
  201. 正在设置 libtiff5:armhf (4.0.-+deb9u4) ...
  202. 正在设置 vlc-l10n (3.0.-+rpt1+deb9u1) ...
  203. 正在设置 libsmbclient:armhf (:4.5.+dfsg-+deb9u4) ...
  204. 正在设置 libobrender32v5 (3.6.-+rpi9) ...
  205. 正在设置 raspi-config () ...
  206. 正在设置 perl (5.24.-+deb9u5) ...
  207. 正在设置 libssl1.0.2:armhf (1.0.2q-~deb9u1) ...
  208. 正在设置 pi-greeter (0.9) ...
  209. 正在处理用于 libc-bin (2.24-+deb9u3) 的触发器 ...
  210. 正在设置 libvlccore9:armhf (3.0.-+rpt1+deb9u1) ...
  211. 正在设置 udev (-+deb9u7) ...
  212. addgroup: "input"已经是系统组。退出。
  213. update-initramfs: deferring update (trigger activated)
  214. 正在设置 libssl1.:armhf (1.1.0j-~deb9u1) ...
  215. 正在设置 vlc-plugin-video-splitter:armhf (3.0.-+rpt1+deb9u1) ...
  216. 正在设置 systemd (-+deb9u7) ...
  217. addgroup: "systemd-journal"已经是系统组。退出。
  218. Removed /etc/systemd/system/getty.target.wants/getty@tty1.service.
  219. Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service /lib/systemd/system/getty@.service.
  220. 正在设置 openssl (1.1.0j-~deb9u1) ...
  221. 正在设置 zenity-common (3.28.-1.1~bpo9+rpt1) ...
  222. 正在设置 libgroupsock8:armhf (2016.11.-+deb9u1) ...
  223. 正在处理用于 man-db (2.7.6.1-) 的触发器 ...
  224. 正在处理用于 shared-mime-info (1.8-+deb9u1) 的触发器 ...
  225. 正在设置 vlc-plugin-visualization:armhf (3.0.-+rpt1+deb9u1) ...
  226. 正在处理用于 gnome-menus (3.13.-) 的触发器 ...
  227. 正在处理用于 dbus (1.10.-+deb9u1) 的触发器 ...
  228. 正在设置 vlc-plugin-notify:armhf (3.0.-+rpt1+deb9u1) ...
  229. 正在设置 obconf (:2.0.+git20150213-+rpt1) ...
  230. 正在处理用于 hicolor-icon-theme (0.15-) 的触发器 ...
  231. 正在设置 libgs9:armhf (9.26~dfsg-+deb9u2) ...
  232. 正在设置 libpolkit-gobject--:armhf (0.105-+deb9u1) ...
  233. 正在设置 python-rpi.gpio (0.6.~stretch-) ...
  234. 正在设置 vlc-plugin-base:armhf (3.0.-+rpt1+deb9u1) ...
  235. 正在设置 geany (1.29-+rpt2) ...
  236. 正在设置 zenity (3.28.-1.1~bpo9+rpt1) ...
  237. 正在设置 libvlc5:armhf (3.0.-+rpt1+deb9u1) ...
  238. 正在设置 raspberrypi-sys-mods () ...
  239. 正在设置 vlc-plugin-samba:armhf (3.0.-+rpt1+deb9u1) ...
  240. 正在设置 libpolkit-agent--:armhf (0.105-+deb9u1) ...
  241. 正在设置 systemd-sysv (-+deb9u7) ...
  242. 正在设置 openbox (3.6.-+rpi9) ...
  243. 正在设置 vlc-plugin-qt:armhf (3.0.-+rpt1+deb9u1) ...
  244. 正在设置 rp-prefapps (0.5) ...
  245. 正在设置 vlc-plugin-video-output:armhf (3.0.-+rpt1+deb9u1) ...
  246. 正在设置 libpolkit-backend--:armhf (0.105-+deb9u1) ...
  247. 正在设置 libvlc-bin:armhf (3.0.-+rpt1+deb9u1) ...
  248. 正在设置 vlc-plugin-skins2:armhf (3.0.-+rpt1+deb9u1) ...
  249. 正在设置 vlc-bin (3.0.-+rpt1+deb9u1) ...
  250. 正在设置 pipanel (~) ...
  251. 正在设置 libpam-systemd:armhf (-+deb9u7) ...
  252. 正在设置 policykit- (0.105-+deb9u1) ...
  253. Removed /run/systemd/system/polkit.service.
  254. 正在设置 vlc (3.0.-+rpt1+deb9u1) ...
  255. 正在设置 raspberrypi-ui-mods (1.20181206) ...
  256. The desktop has been updated.
  257. To apply the updates, please reboot your Pi, and then select one of the options on the Defaults page in Appearance Settings.
  258.  
  259. ** (zenity:): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
  260. 正在处理用于 libc-bin (2.24-+deb9u3) 的触发器 ...
  261. 正在处理用于 initramfs-tools (0.130) 的触发器 ...
  262. 正在处理用于 libvlc-bin:armhf (3.0.-+rpt1+deb9u1) 的触发器 ...
  263. pi@raspberrypi:~ $

更新完以后就可以使用了!如果不行在尝试更换一种源(网上很多国内源,本文用的是清华源),同样的方法再试一次。

注:橙色部分为重要输入内容

完成~

借鉴博主 https://blog.csdn.net/chengyq116/article/details/86499810

Raspberry Pi (树莓派) 更换源 - stretch 版本的更多相关文章

  1. Raspberry Pi(树莓派)国内软件源

    树莓派自带的软件源是 deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi 由于网站在国外 ...

  2. 树莓派进阶之路 (003) - Raspberry Pi(树莓派)国内软件源

    树莓派自带的软件源是 deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi 由于网站在国外 ...

  3. 【嵌入式开发】Raspberry Pi 树莓派性能测试

    Raspberry Pi 树莓派性能测试 目录: CPU Linpack基准测试 源码 编译/运行 结果 Whetstone/Dhrystone综合基准测试 源码 编译/运行 结果 OpenSSL安全 ...

  4. 树莓派进阶之路 (012) - 关于Raspberry Pi树莓派无线网卡配置

    Raspberry Pi树莓派无线网卡配置[多重方法备选] 要想让树莓派方便操作,肯定需要配置无线网卡,这样可以大大增强树莓派的移动性和便利性,其实配置无线网卡基本就是和普通linux平台下配置无线网 ...

  5. raspberry pi 树莓派作为比特比矿机

    http://www.instructables.com/id/Bitcoin-Mining-using-Raspberry-Pi/ Step 5: Installing Required Libra ...

  6. raspberry pi树莓派设置

    买了个pi3b 安装系统 需要class10 TF卡.读卡器 下载系统并解压Raspbianhttps://www.raspberrypi.org/downloads/raspbian/访问慢的话请用 ...

  7. 在树莓派(Raspberry Pi)上编译安装更新版本的Python

    Raspiban Wheezy上预装的Python3版本是3.2.3,本文将介绍升级到3.4.3的方法. 此文也适用于安装其它版本(比如最新版本)的Python. 我用的是B+型的树莓派,装的系统是2 ...

  8. 转载:Raspberry Pi 树莓派入门

    转载说明: 整理转载,原文链接http://www.eeboard.com/bbs/thread-5191-1-1.html 这篇帖子我打算用Q&A的方式来编写,这样大家更容易一目了然的看明整 ...

  9. [转]Raspberry Pi树莓派无线网卡配置[多重方法备选]

    要想让树莓派方便操作,肯定需要配置无线网卡,这样可以大大增强树莓派的移动性和便利性,其实配置无线网卡基本就是和普通linux平台下配置无线网卡一样,几种方法大同小异,具体如下: 一.第一种方法:通过配 ...

随机推荐

  1. Androi O Automotive 介绍

    最近由于工作需要对android o 中的 automotive源码进行了深入的学习,现总结如下: Android O Vehicle之架构介绍 Android O Vehicle之Car Servi ...

  2. QT获取linux下的当前用户名

    故事背景:客户端启动的时候需要加载机器/home/xx/test.jpg的图片作为背景图,但是有的机器用户名叫AAA,有的机器名叫BBB,所以我需要获取当前用户的home目录 技术调研:QStanda ...

  3. 15. Go 语言“避坑”与技巧

    Go 语言"避坑"与技巧 任何编程语言都不是完美的,Go 语言也是如此.Go 语言的某些特性在使用时如果不注意,也会造成一些错误,我们习惯上将这些造成错误的设计称为"坑& ...

  4. easybcd误删Win10启动项,UEFI恢复引导

    参考文章https://blog.csdn.net/A_Sen_A/article/details/89545311 想给电脑安Ubuntu双系统,期间根据一些不靠谱的文章用了easybcd软件,Ub ...

  5. Linux日志中如何查找关键字及其前后的信息

    在日常工作中,我们经常需要查看日志,比如可以通过 tail 命令实时查看日志,也可以通过 cat 等命令查看日志信息. 但现在我们要讨论的是,如何从日志中通过关键字过滤出我们想要的内容,方法有多种,今 ...

  6. Fabric-Ca使用

    Fabric-Ca的概念不再解释了,这里只说明使用方法: 前置条件 Go语言1.10+版本 GOPATH环境变量正确设置 已安装libtool和libtdhl-dev包 Ubuntu系统 通过以下命令 ...

  7. Kubernetes行业调研报告:多集群、多云部署成企业首选策略

    新兴的多集群.多云部署成为首选的企业策略,而边缘部署则呈上升趋势 2019年11月5日,业界采用最广泛的Kubernetes管理平台创造者Rancher Labs(以下简称Rancher)发布了首份调 ...

  8. Image 缩略图

    方法一:通过调用Image对象的自带方法GetThumbnailImage()进行图片转换. /// <summary> /// 生成缩略图重载方法,返回缩略图的Image对象 /// & ...

  9. Elasticsearch实现复合查询,高亮结果等技巧

    一.Es的配置 实现es的全文检索功能的第一步,首先从与es进行连接开始,这里我使用的是es的5.x java api语法. public TransportClient esClient() thr ...

  10. My97DatePicker-WdatePicker日历日期插件详细示例

    <!DOCTYPE html> <html> <head> <title>排行</title> <meta charset=" ...