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

sudo aptitude install raspberrypi-kernel-headers

问题3:查看自己树莓派的版本

$ lsb_release -a

问题4:官网下载安装太慢

解决方式:设置成成国内源

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

$ sudo vim /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
$sudo apt-get update

  

猜你喜欢

转载自www.cnblogs.com/xiaote/p/10849774.html