Raspberry Pi (樹莓派) 更換源 - stretch 版本


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 查看系統版本類型

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

1. 更換源之前

pi@raspberrypi:~ $ sudo apt-get update
獲取:1 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                                                                                 
獲取:2 http://120.52.51.18/archive.raspberrypi.org/debian stretch/main armhf Packages [201 kB]
已下載 226 kB,耗時 54秒 (4,182 B/s)
正在讀取軟件包列表... 完成
pi@raspberrypi:~ $ 
pi@raspberrypi:~ $ sudo apt-get upgrade
正在讀取軟件包列表... 完成
正在分析軟件包的依賴關系樹       
正在讀取狀態信息... 完成       
正在計算更新... 完成
下列軟件包將被升級:
  base-files geany geany-common gtk2-engines-clearlookspix libarchive13 libbasicusageenvironment1 libgroupsock8 libgs9 libgs9-common
  liblivemedia57 libobrender32v5 libobt2v5 libpam-systemd libperl5.24 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0
  libsdl1.2debian libsmbclient libssl1.0.2 libssl1.1 libsystemd0 libtiff5 libudev1 libusageenvironment3 libvlc-bin libvlc5 libvlccore9
  libwbclient0 obconf openbox openssl perl perl-base perl-modules-5.24 pi-greeter pipanel policykit-1 python-rpi.gpio python3-rpi.gpio
  raspberrypi-sys-mods raspberrypi-ui-mods raspi-config rp-prefapps rpi-chromium-mods samba-common samba-libs systemd 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
  vlc-plugin-video-splitter vlc-plugin-visualization zenity zenity-common
升級了 64 個軟件包,新安裝了 0 個軟件包,要卸載 0 個軟件包,有 0 個軟件包未被升級。
需要下載 57.1 MB 的歸檔。
解壓縮后將會空出 317 kB 的空間。
您希望繼續執行嗎? [Y/n] Y
獲取:26 http://archive.raspberrypi.org/debian stretch/main armhf libvlccore9 armhf 3.0.6-0+rpt1+deb9u1 [478 kB]                                                         
獲取:29 http://archive.raspberrypi.org/debian stretch/main armhf libvlc5 armhf 3.0.6-0+rpt1+deb9u1 [162 kB]                                                             
獲取:30 http://archive.raspberrypi.org/debian stretch/ui armhf rpi-chromium-mods armhf 20190103 [9,176 kB]                                                        
獲取:1 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf base-files armhf 9.9+rpi1+deb9u6 [67.5 kB]                                                        
獲取:2 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libperl5.24 armhf 5.24.1-3+deb9u5 [2,837 kB]                                                      
獲取:3 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf perl armhf 5.24.1-3+deb9u5 [219 kB]                                                               
獲取:4 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf perl-base armhf 5.24.1-3+deb9u5 [1,198 kB]                                                        
獲取:34 http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-skins2 armhf 3.0.6-0+rpt1+deb9u1 [491 kB]                                                   
獲取:5 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]                                                     
獲取:12 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libwbclient0 armhf 2:4.5.12+dfsg-2+deb9u4 [121 kB]                                               
獲取:13 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libsmbclient armhf 2:4.5.12+dfsg-2+deb9u4 [144 kB]                                               
獲取:41 http://archive.raspberrypi.org/debian stretch/main armhf vlc-l10n all 3.0.6-0+rpt1+deb9u1 [5,732 kB]                                                            
獲取:14 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf samba-libs armhf 2:4.5.12+dfsg-2+deb9u4 [4,379 kB]                                               
獲取:15 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf samba-common all 2:4.5.12+dfsg-2+deb9u4 [172 kB]                                                 
獲取:16 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libarchive13 armhf 3.2.2-2+deb9u1 [253 kB]                                                       
獲取:17 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libbasicusageenvironment1 armhf 2016.11.28-1+deb9u1 [19.7 kB]                                    
獲取:18 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libgroupsock8 armhf 2016.11.28-1+deb9u1 [24.8 kB]                                                
獲取:19 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf liblivemedia57 armhf 2016.11.28-1+deb9u1 [265 kB]                                                
獲取:20 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libusageenvironment3 armhf 2016.11.28-1+deb9u1 [12.2 kB]                                         
獲取:23 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libtiff5 armhf 4.0.8-2+deb9u4 [220 kB]                                                           
獲取:24 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libgs9 armhf 9.26~dfsg-0+deb9u2 [1,863 kB]                                                       
獲取:25 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libgs9-common all 9.26~dfsg-0+deb9u2 [5,142 kB]                                                  
獲取:27 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf policykit-1 armhf 0.105-18+deb9u1 [61.7 kB]                                                      
獲取:28 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libpolkit-agent-1-0 armhf 0.105-18+deb9u1 [22.3 kB]                                              
獲取:31 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libpolkit-backend-1-0 armhf 0.105-18+deb9u1 [39.8 kB]                                            
獲取:32 http://mirrors.shu.edu.cn/raspbian/raspbian stretch/main armhf libpolkit-gobject-1-0 armhf 0.105-18+deb9u1 [37.8 kB]                                            
獲取:6 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf systemd-sysv armhf 232-25+deb9u7 [81.6 kB]                                              
錯誤:21 http://mirrors.opencas.cn/raspbian/raspbian stretch/main armhf libssl1.0.2 armhf 1.0.2q-1~deb9u1                                                                
  無法發起與 mirrors.opencas.cn:80 (2001:cc0:2020:4075::211) 的連接 - connect (101: 網絡不可達)
錯誤:22 http://mirrors.opencas.cn/raspbian/raspbian stretch/main armhf libssl1.1 armhf 1.1.0j-1~deb9u1                                                                  
  無法發起與 mirrors.opencas.cn:80 (2001:cc0:2020:4075::211) 的連接 - connect (101: 網絡不可達)
錯誤:33 http://mirrors.opencas.cn/raspbian/raspbian stretch/main armhf openssl armhf 1.1.0j-1~deb9u1                                                                    
  無法發起與 mirrors.opencas.cn:80 (2001:cc0:2020:4075::211) 的連接 - connect (101: 網絡不可達)
獲取:7 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libpam-systemd armhf 232-25+deb9u7 [174 kB]                                             
獲取:8 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libsystemd0 armhf 232-25+deb9u7 [259 kB]                                                
獲取:9 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf systemd armhf 232-25+deb9u7 [2,221 kB]                                                  
獲取:10 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf udev armhf 232-25+deb9u7 [1,072 kB]                                                    
獲取:11 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libudev1 armhf 232-25+deb9u7 [120 kB]                                                  
獲取:42 http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-base armhf 3.0.6-0+rpt1+deb9u1 [2,474 kB]                                                   
獲取:43 http://archive.raspberrypi.org/debian stretch/main armhf vlc-data all 3.0.6-0+rpt1+deb9u1 [445 kB]                                                              
獲取:44 http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-notify armhf 3.0.6-0+rpt1+deb9u1 [123 kB]                                                   
獲取:45 http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-samba armhf 3.0.6-0+rpt1+deb9u1 [123 kB]                                                    
獲取:46 http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-video-splitter armhf 3.0.6-0+rpt1+deb9u1 [136 kB]                                           
獲取:47 http://archive.raspberrypi.org/debian stretch/main armhf vlc-plugin-visualization armhf 3.0.6-0+rpt1+deb9u1 [138 kB]                                            
獲取:48 http://archive.raspberrypi.org/debian stretch/ui armhf geany armhf 1.29-1+rpt2 [1,224 kB]                                                                       
獲取:49 http://archive.raspberrypi.org/debian stretch/ui armhf geany-common all 1.29-1+rpt2 [2,461 kB]                                                                  
獲取:50 http://archive.raspberrypi.org/debian stretch/ui armhf gtk2-engines-clearlookspix armhf 1:2.20.7 [66.0 kB]                                                      
獲取:51 http://archive.raspberrypi.org/debian stretch/ui armhf libobt2v5 armhf 3.6.1-4+rpi9 [62.3 kB]                                                                   
獲取:52 http://archive.raspberrypi.org/debian stretch/ui armhf libobrender32v5 armhf 3.6.1-4+rpi9 [69.6 kB]                                                             
獲取:53 http://archive.raspberrypi.org/debian stretch/ui armhf obconf armhf 1:2.0.4+git20150213-2+rpt1 [123 kB]                                                         
獲取:54 http://archive.raspberrypi.org/debian stretch/ui armhf openbox armhf 3.6.1-4+rpi9 [281 kB]                                                                      
獲取:55 http://archive.raspberrypi.org/debian stretch/ui armhf pi-greeter armhf 0.9 [40.8 kB]                                                                           
獲取:56 http://archive.raspberrypi.org/debian stretch/ui armhf zenity-common all 3.28.1-1.1~bpo9+rpt1 [4,126 kB]                                                        
獲取:57 http://archive.raspberrypi.org/debian stretch/ui armhf zenity armhf 3.28.1-1.1~bpo9+rpt1 [268 kB]                                                               
獲取:58 http://archive.raspberrypi.org/debian stretch/ui armhf pipanel armhf 20181126~094616 [19.2 kB]                                                                  
獲取:59 http://archive.raspberrypi.org/debian stretch/main armhf python-rpi.gpio armhf 0.6.5~stretch-1 [23.5 kB]                                                        
獲取:60 http://archive.raspberrypi.org/debian stretch/main armhf python3-rpi.gpio armhf 0.6.5~stretch-1 [23.6 kB]                                                       
獲取:61 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-sys-mods armhf 20181127 [10.2 kB]                                                          
獲取:62 http://archive.raspberrypi.org/debian stretch/ui armhf rp-prefapps armhf 0.5 [175 kB]                                                                           
獲取:63 http://archive.raspberrypi.org/debian stretch/ui armhf raspberrypi-ui-mods all 1.20181206 [318 kB]                                                              
獲取:64 http://archive.raspberrypi.org/debian stretch/ui armhf raspi-config all 20181118 [20.2 kB]                                                                      
已下載 54.3 MB,耗時 3分 10秒 (285 kB/s)                                                                                                                                
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: 網絡不可達)
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: 網絡不可達)
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: 網絡不可達)
E: 有幾個軟件包無法下載,要不運行 apt-get update 或者加上 --fix-missing 的選項再試試?
pi@raspberrypi:~ $ 

2. 更換源

2.1 備份源文件

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

2.2更換軟件更新源 (/etc/apt/sources.list)

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

使用 # 注釋掉原文件內容,使用以下內容取代。

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

修改前

修改后

2.3 更換系統更新源 (/etc/apt/sources.d/raspi.list)

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

使用 # 注釋掉原文件內容,使用以下內容取代。

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

修改前

修改后

 

3. 更換源之后

  1 pi@raspberrypi:~ $ sudo apt-get update
  2 獲取:1 http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch InRelease [25.4 kB]
  3 獲取:2 http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch/ui Sources [20.7 kB]
  4 獲取:3 http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch/main Sources [66.4 kB]
  5 獲取:4 http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch/main armhf Packages [201 kB]
  6 獲取:5 http://mirror.tuna.tsinghua.edu.cn/raspberrypi stretch/ui armhf Packages [41.3 kB]
  7 獲取:6 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch InRelease [15.0 kB]
  8 獲取:7 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/rpi Sources [1,132 B]                                                                         
  9 獲取:8 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/contrib Sources [75.2 kB]                                                                     
 10 獲取:9 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main Sources [9,717 kB]                                                                       
 11 獲取:10 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/non-free Sources [125 kB]                                                                    
 12 獲取:11 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf Packages [11.7 MB]                                                                
 13 獲取:12 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/contrib armhf Packages [56.9 kB]                                                                     
 14 獲取:13 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/non-free armhf Packages [95.5 kB]                                                                    
 15 獲取:14 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/rpi armhf Packages [1,360 B]                                                                         
 16 已下載 22.1 MB,耗時 27秒 (804 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.24 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libsdl1.2debian libsmbclient libssl1.0.2 libssl1.1 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-1 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 升級了 64 個軟件包,新安裝了 0 個軟件包,要卸載 0 個軟件包,有 0 個軟件包未被升級。
 32 需要下載 2,725 kB/57.1 MB 的歸檔。
 33 解壓縮后將會空出 317 kB 的空間。
 34 您希望繼續執行嗎? [Y/n] Y  35 獲取:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libssl1.0.2 armhf 1.0.2q-1~deb9u1 [898 kB]                                                    
 36 獲取:2 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf libssl1.1 armhf 1.1.0j-1~deb9u1 [1,115 kB]
 37 獲取:3 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian stretch/main armhf openssl armhf 1.1.0j-1~deb9u1 [712 kB]
 38 已下載 2,725 kB,耗時 20秒 (131 kB/s)
 39 讀取變更記錄(changelogs)... 完成
 40 正在從軟件包中解出模板:100%
 41 正在預設定軟件包 ...
 42 (正在讀取數據庫 ... 系統當前共安裝有 80704 個文件和目錄。)
 43 正准備解包 .../base-files_9.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 (正在讀取數據庫 ... 系統當前共安裝有 80704 個文件和目錄。)
 48 正准備解包 .../libperl5.24_5.24.1-3+deb9u5_armhf.deb  ...
 49 正在將 libperl5.24:armhf (5.24.1-3+deb9u5) 解包到 (5.24.1-3+deb9u4) 上 ...
 50 正准備解包 .../perl_5.24.1-3+deb9u5_armhf.deb  ...
 51 正在將 perl (5.24.1-3+deb9u5) 解包到 (5.24.1-3+deb9u4) 上 ...
 52 正准備解包 .../perl-base_5.24.1-3+deb9u5_armhf.deb  ...
 53 正在將 perl-base (5.24.1-3+deb9u5) 解包到 (5.24.1-3+deb9u4) 上 ...
 54 正在設置 perl-base (5.24.1-3+deb9u5) ...
 55 (正在讀取數據庫 ... 系統當前共安裝有 80704 個文件和目錄。)
 56 正准備解包 .../perl-modules-5.24_5.24.1-3+deb9u5_all.deb  ...
 57 正在將 perl-modules-5.24 (5.24.1-3+deb9u5) 解包到 (5.24.1-3+deb9u4) 上 ...
 58 正准備解包 .../systemd-sysv_232-25+deb9u7_armhf.deb  ...
 59 正在將 systemd-sysv (232-25+deb9u7) 解包到 (232-25+deb9u6) 上 ...
 60 正准備解包 .../libpam-systemd_232-25+deb9u7_armhf.deb  ...
 61 正在將 libpam-systemd:armhf (232-25+deb9u7) 解包到 (232-25+deb9u6) 上 ...
 62 正准備解包 .../libsystemd0_232-25+deb9u7_armhf.deb  ...
 63 正在將 libsystemd0:armhf (232-25+deb9u7) 解包到 (232-25+deb9u6) 上 ...
 64 正在設置 libsystemd0:armhf (232-25+deb9u7) ...
 65 (正在讀取數據庫 ... 系統當前共安裝有 80704 個文件和目錄。)
 66 正准備解包 .../systemd_232-25+deb9u7_armhf.deb  ...
 67 正在將 systemd (232-25+deb9u7) 解包到 (232-25+deb9u6) 上 ...
 68 正准備解包 .../udev_232-25+deb9u7_armhf.deb  ...
 69 正在將 udev (232-25+deb9u7) 解包到 (232-25+deb9u6) 上 ...
 70 正准備解包 .../libudev1_232-25+deb9u7_armhf.deb  ...
 71 正在將 libudev1:armhf (232-25+deb9u7) 解包到 (232-25+deb9u6) 上 ...
 72 正在設置 libudev1:armhf (232-25+deb9u7) ...
 73 (正在讀取數據庫 ... 系統當前共安裝有 80704 個文件和目錄。)
 74 正准備解包 .../00-libwbclient0_2%3a4.5.12+dfsg-2+deb9u4_armhf.deb  ...
 75 正在將 libwbclient0:armhf (2:4.5.12+dfsg-2+deb9u4) 解包到 (2:4.5.12+dfsg-2+deb9u3) 上 ...
 76 正准備解包 .../01-libsmbclient_2%3a4.5.12+dfsg-2+deb9u4_armhf.deb  ...
 77 正在將 libsmbclient:armhf (2:4.5.12+dfsg-2+deb9u4) 解包到 (2:4.5.12+dfsg-2+deb9u3) 上 ...
 78 正准備解包 .../02-samba-libs_2%3a4.5.12+dfsg-2+deb9u4_armhf.deb  ...
 79 正在將 samba-libs:armhf (2:4.5.12+dfsg-2+deb9u4) 解包到 (2:4.5.12+dfsg-2+deb9u3) 上 ...
 80 正准備解包 .../03-libvlccore9_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
 81 正在將 libvlccore9:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
 82 正准備解包 .../04-libvlc5_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
 83 正在將 libvlc5:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
 84 正准備解包 .../05-rpi-chromium-mods_20190103_armhf.deb  ...
 85 正在將 rpi-chromium-mods (20190103) 解包到 (20181108) 上 ...
 86 正准備解包 .../06-samba-common_2%3a4.5.12+dfsg-2+deb9u4_all.deb  ...
 87 正在將 samba-common (2:4.5.12+dfsg-2+deb9u4) 解包到 (2:4.5.12+dfsg-2+deb9u3) 上 ...
 88 正准備解包 .../07-vlc-plugin-skins2_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
 89 正在將 vlc-plugin-skins2:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
 90 正准備解包 .../08-vlc_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
 91 正在將 vlc (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
 92 正准備解包 .../09-vlc-plugin-qt_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
 93 正在將 vlc-plugin-qt:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
 94 正准備解包 .../10-vlc-bin_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
 95 正在將 vlc-bin (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
 96 正准備解包 .../11-libvlc-bin_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
 97 正在將 libvlc-bin:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
 98 正准備解包 .../12-vlc-plugin-video-output_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
 99 正在將 vlc-plugin-video-output:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
100 正准備解包 .../13-libarchive13_3.2.2-2+deb9u1_armhf.deb  ...
101 正在將 libarchive13:armhf (3.2.2-2+deb9u1) 解包到 (3.2.2-2) 上 ...
102 正准備解包 .../14-libbasicusageenvironment1_2016.11.28-1+deb9u1_armhf.deb  ...
103 正在將 libbasicusageenvironment1:armhf (2016.11.28-1+deb9u1) 解包到 (2016.11.28-1) 上 ...
104 正准備解包 .../15-libgroupsock8_2016.11.28-1+deb9u1_armhf.deb  ...
105 正在將 libgroupsock8:armhf (2016.11.28-1+deb9u1) 解包到 (2016.11.28-1) 上 ...
106 正准備解包 .../16-liblivemedia57_2016.11.28-1+deb9u1_armhf.deb  ...
107 正在將 liblivemedia57:armhf (2016.11.28-1+deb9u1) 解包到 (2016.11.28-1) 上 ...
108 正准備解包 .../17-libsdl1.2debian_1.2.15+dfsg1-4+rpt1_armhf.deb  ...
109 正在將 libsdl1.2debian:armhf (1.2.15+dfsg1-4+rpt1) 解包到 (1.2.15+dfsg1-4) 上 ...
110 正准備解包 .../18-libusageenvironment3_2016.11.28-1+deb9u1_armhf.deb  ...
111 正在將 libusageenvironment3:armhf (2016.11.28-1+deb9u1) 解包到 (2016.11.28-1) 上 ...
112 正准備解包 .../19-vlc-l10n_3.0.6-0+rpt1+deb9u1_all.deb  ...
113 正在將 vlc-l10n (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
114 正准備解包 .../20-vlc-plugin-base_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
115 正在將 vlc-plugin-base:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
116 正准備解包 .../21-vlc-data_3.0.6-0+rpt1+deb9u1_all.deb  ...
117 正在將 vlc-data (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
118 正准備解包 .../22-vlc-plugin-notify_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
119 正在將 vlc-plugin-notify:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
120 正准備解包 .../23-vlc-plugin-samba_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
121 正在將 vlc-plugin-samba:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
122 正准備解包 .../24-vlc-plugin-video-splitter_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
123 正在將 vlc-plugin-video-splitter:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
124 正准備解包 .../25-vlc-plugin-visualization_3.0.6-0+rpt1+deb9u1_armhf.deb  ...
125 正在將 vlc-plugin-visualization:armhf (3.0.6-0+rpt1+deb9u1) 解包到 (3.0.3-1-0+deb9u1+rpt1) 上 ...
126 正准備解包 .../26-libssl1.0.2_1.0.2q-1~deb9u1_armhf.deb  ...
127 正在將 libssl1.0.2:armhf (1.0.2q-1~deb9u1) 解包到 (1.0.2l-2+deb9u3) 上 ...
128 正准備解包 .../27-libssl1.1_1.1.0j-1~deb9u1_armhf.deb  ...
129 正在將 libssl1.1:armhf (1.1.0j-1~deb9u1) 解包到 (1.1.0f-3+deb9u2) 上 ...
130 正准備解包 .../28-geany_1.29-1+rpt2_armhf.deb  ...
131 正在將 geany (1.29-1+rpt2) 解包到 (1.29-1+rpt1) 上 ...
132 正准備解包 .../29-geany-common_1.29-1+rpt2_all.deb  ...
133 正在將 geany-common (1.29-1+rpt2) 解包到 (1.29-1+rpt1) 上 ...
134 正准備解包 .../30-gtk2-engines-clearlookspix_1%3a2.20.7_armhf.deb  ...
135 正在將 gtk2-engines-clearlookspix:armhf (1:2.20.7) 解包到 (1:2.20.6) 上 ...
136 正准備解包 .../31-libtiff5_4.0.8-2+deb9u4_armhf.deb  ...
137 正在將 libtiff5:armhf (4.0.8-2+deb9u4) 解包到 (4.0.8-2+deb9u2) 上 ...
138 正准備解包 .../32-libgs9_9.26~dfsg-0+deb9u2_armhf.deb  ...
139 正在將 libgs9:armhf (9.26~dfsg-0+deb9u2) 解包到 (9.25~dfsg-0+deb9u1) 上 ...
140 正准備解包 .../33-libgs9-common_9.26~dfsg-0+deb9u2_all.deb  ...
141 正在將 libgs9-common (9.26~dfsg-0+deb9u2) 解包到 (9.25~dfsg-0+deb9u1) 上 ...
142 正准備解包 .../34-libobt2v5_3.6.1-4+rpi9_armhf.deb  ...
143 正在將 libobt2v5 (3.6.1-4+rpi9) 解包到 (3.6.1-4+rpi7) 上 ...
144 正准備解包 .../35-libobrender32v5_3.6.1-4+rpi9_armhf.deb  ...
145 正在將 libobrender32v5 (3.6.1-4+rpi9) 解包到 (3.6.1-4+rpi7) 上 ...
146 正准備解包 .../36-policykit-1_0.105-18+deb9u1_armhf.deb  ...
147 Created symlink /run/systemd/system/polkit.service → /dev/null.
148 正在將 policykit-1 (0.105-18+deb9u1) 解包到 (0.105-18) 上 ...
149 正准備解包 .../37-libpolkit-agent-1-0_0.105-18+deb9u1_armhf.deb  ...
150 正在將 libpolkit-agent-1-0:armhf (0.105-18+deb9u1) 解包到 (0.105-18) 上 ...
151 正准備解包 .../38-libpolkit-backend-1-0_0.105-18+deb9u1_armhf.deb  ...
152 正在將 libpolkit-backend-1-0:armhf (0.105-18+deb9u1) 解包到 (0.105-18) 上 ...
153 正准備解包 .../39-libpolkit-gobject-1-0_0.105-18+deb9u1_armhf.deb  ...
154 正在將 libpolkit-gobject-1-0:armhf (0.105-18+deb9u1) 解包到 (0.105-18) 上 ...
155 正准備解包 .../40-obconf_1%3a2.0.4+git20150213-2+rpt1_armhf.deb  ...
156 正在將 obconf (1:2.0.4+git20150213-2+rpt1) 解包到 (1:2.0.4+git20150213-2) 上 ...
157 正准備解包 .../41-openbox_3.6.1-4+rpi9_armhf.deb  ...
158 正在將 openbox (3.6.1-4+rpi9) 解包到 (3.6.1-4+rpi7) 上 ...
159 正准備解包 .../42-openssl_1.1.0j-1~deb9u1_armhf.deb  ...
160 正在將 openssl (1.1.0j-1~deb9u1) 解包到 (1.1.0f-3+deb9u2) 上 ...
161 正准備解包 .../43-pi-greeter_0.9_armhf.deb  ...
162 正在將 pi-greeter (0.9) 解包到 (0.7) 上 ...
163 正准備解包 .../44-zenity-common_3.28.1-1.1~bpo9+rpt1_all.deb  ...
164 正在將 zenity-common (3.28.1-1.1~bpo9+rpt1) 解包到 (3.28.1-1.1~bpo9+1) 上 ...
165 正准備解包 .../45-zenity_3.28.1-1.1~bpo9+rpt1_armhf.deb  ...
166 正在將 zenity (3.28.1-1.1~bpo9+rpt1) 解包到 (3.28.1-1.1~bpo9+1) 上 ...
167 正准備解包 .../46-pipanel_20181126~094616_armhf.deb  ...
168 正在將 pipanel (20181126~094616) 解包到 (20180927~140725) 上 ...
169 正准備解包 .../47-python-rpi.gpio_0.6.5~stretch-1_armhf.deb  ...
170 正在將 python-rpi.gpio (0.6.5~stretch-1) 解包到 (0.6.3~stretch-1) 上 ...
171 正准備解包 .../48-python3-rpi.gpio_0.6.5~stretch-1_armhf.deb  ...
172 正在將 python3-rpi.gpio (0.6.5~stretch-1) 解包到 (0.6.3~stretch-1) 上 ...
173 正准備解包 .../49-raspberrypi-sys-mods_20181127_armhf.deb  ...
174 正在將 raspberrypi-sys-mods (20181127) 解包到 (20180328+1) 上 ...
175 正准備解包 .../50-rp-prefapps_0.5_armhf.deb  ...
176 正在將 rp-prefapps (0.5) 解包到 (0.4) 上 ...
177 正准備解包 .../51-raspberrypi-ui-mods_1.20181206_all.deb  ...
178 正在將 raspberrypi-ui-mods (1.20181206) 解包到 (1.20180926) 上 ...
179 正准備解包 .../52-raspi-config_20181118_all.deb  ...
180 正在將 raspi-config (20181118) 解包到 (20180518) 上 ...
181 正在設置 libgs9-common (9.26~dfsg-0+deb9u2) ...
182 正在設置 gtk2-engines-clearlookspix:armhf (1:2.20.7) ...
183 正在設置 perl-modules-5.24 (5.24.1-3+deb9u5) ...
184 正在設置 libperl5.24:armhf (5.24.1-3+deb9u5) ...
185 正在設置 libwbclient0:armhf (2:4.5.12+dfsg-2+deb9u4) ...
186 正在設置 rpi-chromium-mods (20190103) ...
187 正在設置 libusageenvironment3:armhf (2016.11.28-1+deb9u1) ...
188 正在設置 samba-libs:armhf (2:4.5.12+dfsg-2+deb9u4) ...
189 正在處理用於 mime-support (3.60) 的觸發器 ...
190 正在處理用於 desktop-file-utils (0.23-1) 的觸發器 ...
191 正在設置 vlc-data (3.0.6-0+rpt1+deb9u1) ...
192 正在設置 libarchive13:armhf (3.2.2-2+deb9u1) ...
193 正在處理用於 install-info (6.3.0.dfsg.1-1+b1) 的觸發器 ...
194 正在設置 libobt2v5 (3.6.1-4+rpi9) ...
195 正在設置 python3-rpi.gpio (0.6.5~stretch-1) ...
196 正在設置 libbasicusageenvironment1:armhf (2016.11.28-1+deb9u1) ...
197 正在設置 liblivemedia57:armhf (2016.11.28-1+deb9u1) ...
198 正在設置 geany-common (1.29-1+rpt2) ...
199 正在設置 samba-common (2:4.5.12+dfsg-2+deb9u4) ...
200 正在設置 libsdl1.2debian:armhf (1.2.15+dfsg1-4+rpt1) ...
201 正在設置 libtiff5:armhf (4.0.8-2+deb9u4) ...
202 正在設置 vlc-l10n (3.0.6-0+rpt1+deb9u1) ...
203 正在設置 libsmbclient:armhf (2:4.5.12+dfsg-2+deb9u4) ...
204 正在設置 libobrender32v5 (3.6.1-4+rpi9) ...
205 正在設置 raspi-config (20181118) ...
206 正在設置 perl (5.24.1-3+deb9u5) ...
207 正在設置 libssl1.0.2:armhf (1.0.2q-1~deb9u1) ...
208 正在設置 pi-greeter (0.9) ...
209 正在處理用於 libc-bin (2.24-11+deb9u3) 的觸發器 ...
210 正在設置 libvlccore9:armhf (3.0.6-0+rpt1+deb9u1) ...
211 正在設置 udev (232-25+deb9u7) ...
212 addgroup: 組"input"已經是系統組。退出。
213 update-initramfs: deferring update (trigger activated)
214 正在設置 libssl1.1:armhf (1.1.0j-1~deb9u1) ...
215 正在設置 vlc-plugin-video-splitter:armhf (3.0.6-0+rpt1+deb9u1) ...
216 正在設置 systemd (232-25+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-1~deb9u1) ...
221 正在設置 zenity-common (3.28.1-1.1~bpo9+rpt1) ...
222 正在設置 libgroupsock8:armhf (2016.11.28-1+deb9u1) ...
223 正在處理用於 man-db (2.7.6.1-2) 的觸發器 ...
224 正在處理用於 shared-mime-info (1.8-1+deb9u1) 的觸發器 ...
225 正在設置 vlc-plugin-visualization:armhf (3.0.6-0+rpt1+deb9u1) ...
226 正在處理用於 gnome-menus (3.13.3-9) 的觸發器 ...
227 正在處理用於 dbus (1.10.26-0+deb9u1) 的觸發器 ...
228 正在設置 vlc-plugin-notify:armhf (3.0.6-0+rpt1+deb9u1) ...
229 正在設置 obconf (1:2.0.4+git20150213-2+rpt1) ...
230 正在處理用於 hicolor-icon-theme (0.15-1) 的觸發器 ...
231 正在設置 libgs9:armhf (9.26~dfsg-0+deb9u2) ...
232 正在設置 libpolkit-gobject-1-0:armhf (0.105-18+deb9u1) ...
233 正在設置 python-rpi.gpio (0.6.5~stretch-1) ...
234 正在設置 vlc-plugin-base:armhf (3.0.6-0+rpt1+deb9u1) ...
235 正在設置 geany (1.29-1+rpt2) ...
236 正在設置 zenity (3.28.1-1.1~bpo9+rpt1) ...
237 正在設置 libvlc5:armhf (3.0.6-0+rpt1+deb9u1) ...
238 正在設置 raspberrypi-sys-mods (20181127) ...
239 正在設置 vlc-plugin-samba:armhf (3.0.6-0+rpt1+deb9u1) ...
240 正在設置 libpolkit-agent-1-0:armhf (0.105-18+deb9u1) ...
241 正在設置 systemd-sysv (232-25+deb9u7) ...
242 正在設置 openbox (3.6.1-4+rpi9) ...
243 正在設置 vlc-plugin-qt:armhf (3.0.6-0+rpt1+deb9u1) ...
244 正在設置 rp-prefapps (0.5) ...
245 正在設置 vlc-plugin-video-output:armhf (3.0.6-0+rpt1+deb9u1) ...
246 正在設置 libpolkit-backend-1-0:armhf (0.105-18+deb9u1) ...
247 正在設置 libvlc-bin:armhf (3.0.6-0+rpt1+deb9u1) ...
248 正在設置 vlc-plugin-skins2:armhf (3.0.6-0+rpt1+deb9u1) ...
249 正在設置 vlc-bin (3.0.6-0+rpt1+deb9u1) ...
250 正在設置 pipanel (20181126~094616) ...
251 正在設置 libpam-systemd:armhf (232-25+deb9u7) ...
252 正在設置 policykit-1 (0.105-18+deb9u1) ...
253 Removed /run/systemd/system/polkit.service.
254 正在設置 vlc (3.0.6-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:19845): 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-11+deb9u3) 的觸發器 ...
261 正在處理用於 initramfs-tools (0.130) 的觸發器 ...
262 正在處理用於 libvlc-bin:armhf (3.0.6-0+rpt1+deb9u1) 的觸發器 ...
263 pi@raspberrypi:~ $

更新完以后就可以使用了!如果不行在嘗試更換一種源(網上很多國內源,本文用的是清華源),同樣的方法再試一次。

注:橙色部分為重要輸入內容

完成~

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM