樹莓派安裝Docker問題

Docker 開篇2 | 樹莓派安裝docker 續

問題1:安裝後出現錯誤
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. This indicates that it should not be built.

如下圖

問題2:有朋友剛在樹莓派安裝後出現不能拉取鏡像,但是可以搜索鏡像

如下圖

 

   問題1,2,本人也經歷過,找了很多方法也得不到解決,最後找到解決方式

 安裝kernel headers

1

sudo aptitude install raspberrypi-kernel-headers

問題3:查看自己樹莓派的版本

$ lsb_release -a

 

問題4:官網下載安裝太慢

解決方式:設置成成國內源

 >> 如何更改軟件源

 1.使用管理員權限修改/etc/apt/sources.list文件:

$ sudo vim /etc/apt/sources.list

 用#註釋掉原文件內容,添加以下內容:

1

2

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

1

$sudo apt-get update

  

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章