could not find a distribution template for Deepin/n/a

2678 ワード

詳細については、
文書ディレクトリ
  • 1.異常詳細
  • 2. 背景
  • 3. 原因
  • 4. 解決策
  • 5. 結果
  • 6. まとめ
  • 1.異常詳細
    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 
        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.背景
    今日dockerをインストールするときにコマンドが必要です.
    sudo add-apt-repository \
    >    "deb [arch=amd64] https://download.docker.com/linux/debian \
    >    $(lsb_release -cs) \
    >    stable"
    

    それから古い新聞はこの間違いを報告して、大体意味は自動的にライブラリのテンプレートを追加していません
              ,     。
         Baldwin_Keepmind   CSDN,       。
          :https://blog.csdn.net/shouchenchuan5253
    

    3.原因
    一時的に不明
    4.解決策
    ソースアドレスを手動で追加
    sudo vim /etc/apt/sources.list
    

    編集:
    deb [arch=amd64] https://download.docker.com/linux/debian stretch stable
    
              ,     。
         Baldwin_Keepmind   CSDN,       。
          :https://blog.csdn.net/shouchenchuan5253
    

    5.結果
    コマンドの実行:
    sudo apt-get update
    

    結果;
      :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.まとめ
    原因は不明ですが、このエラーの原因を知っている場合は、ご指摘ください.自動的に追加できない以上、手動で追加します.
    作者の許可を得ずに本書の転載を厳禁する
    私はBaldwinで、25歳のプログラマーで、勉強をもっと面白くすることに力を入れています.もしあなたも本当にプログラミングが好きなら、友达になって、一緒にプログラミングの海をぶらぶらしたいと思っています.
    昔の好文:
    Springソース分析-VC初期化
    春風得意馬蹄疾、一文見尽(JVM)仮想機
    車輪造りの芸術
    ソース読解テクニック
    Java注記の詳細
    SpringBootサーバーの自作を教えてあげます
    詳細については、