安装docker 过程中 添加仓库过程出错
File "/usr/bin/add-apt-repository", line 12, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 27, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
系统存在多个python环境,修改/usr/bin/add-apt-repository 文件 python3 => python3.5
指向低版本的python版本
#! /usr/bin/python3
....
改为如下所示
#! /usr/bin/python3.5
...