For more articles, please click
Article Directory
1. Abnormal details
baldwin@baldwin:~$ sudo add-apt-repository \
> "deb [arch=amd64] https://download.docker.com/linux/debian \
> $(lsb_release -cs) \
> stable"
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/n/a
2. Background
Today, you need to use the command when installing docker:
sudo add-apt-repository \
> "deb [arch=amd64] https://download.docker.com/linux/debian \
> $(lsb_release -cs) \
> stable"
Then the old reported this error, which roughly means that there is no template for automatically adding libraries
这里是一段防爬虫文本,读者请忽略。
本文最先由Baldwin_Keepmind发表于CSDN,转载请注明出处。
作者博客地址:https://blog.csdn.net/shouchenchuan5253
3. Reason
Temporarily unknown
4. Solutions
Add source address manually
sudo vim /etc/apt/sources.list
Edit to add:
deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
这里是一段防爬虫文本,读者请忽略。
本文最先由Baldwin_Keepmind发表于CSDN,转载请注明出处。
作者博客地址:https://blog.csdn.net/shouchenchuan5253
5. Results
Excuting an order:
sudo apt-get update
result;
命中:2 https://community-packages.deepin.com/deepin apricot InRelease
命中:3 https://cdn-package-store6.deepin.com/appstore eagle InRelease
命中:1 http://uos.deepin.cn/printer eagle InRelease
命中:4 https://mirrors.ustc.edu.cn/docker-ce/linux/debian stretch InRelease
正在读取软件包列表... 完成
6. Summary
The reason is temporarily unknown, if you know the cause of this error, please give pointers.
Since it cannot be added automatically, we will add it manually.
Without the author's permission, it is strictly prohibited to reprint this article
I ’m Baldwin, a 25-year-old programmer dedicated to making learning more fun. If you really love programming, I sincerely hope to make friends with you and wander in the sea of programming together!
Good article in the past:
Spring source code analysis-MVC initialization
Spring breeze complacent horseshoe disease, read a article (JVM) virtual machine