2017-04-09 6 views
0

私は自分のUbuntu 16.04にcertencrypt証明書をインストールしようとしています。 リポジトリを追加するのが間違っています。誰かが助けることができますか?前もって感謝します!FileNotFoundError:add-apt-repository ppa:certbot/certbot

 

    [email protected]:~$ sudo add-apt-repository ppa:certbot/certbot 

    Traceback (most recent call last): 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 335, in get_ppa_info 
     ret = get_ppa_info_from_lp(user, ppa) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 92, in get_ppa_info_from_lp 
     return get_info_from_lp(lp_url) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 88, in get_info_from_lp 
     return _get_https_content_py3(lp_url) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 110, in _get_https_content_py3 
     lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT) 
     File "/usr/lib/python3.5/urllib/request.py", line 153, in urlopen 
     capath=capath) 
     File "/usr/lib/python3.5/ssl.py", line 470, in create_default_context 
     context.load_verify_locations(cafile, capath, cadata) 
    FileNotFoundError: [Errno 2] No such file or directory 

    During handling of the above exception, another exception occurred: 

    Traceback (most recent call last): 
     File "/usr/bin/add-apt-repository", line 122, in 
     shortcut = shortcut_handler(line) 
     File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 841, in shortcut_handler 
     ret = factory(shortcut) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 407, in shortcut_handler 
     return PPAShortcutHandler(shortcut) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 364, in __init__ 
     info = get_ppa_info(self.shortcut) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 347, in get_ppa_info 
     _get_suggested_ppa_message(user, ppa)) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 304, in _get_suggested_ppa_message 
     lp_user = get_info_from_lp(LAUNCHPAD_USER_API % user) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 88, in get_info_from_lp 
     return _get_https_content_py3(lp_url) 
     File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 110, in _get_https_content_py3 
     lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT) 
     File "/usr/lib/python3.5/urllib/request.py", line 153, in urlopen 
     capath=capath) 
     File "/usr/lib/python3.5/ssl.py", line 470, in create_default_context 
     context.load_verify_locations(cafile, capath, cadata) 
    FileNotFoundError: [Errno 2] No such file or directory 

答えて

1

私は同じエラーを持っていた、Google検索では、著者が私のためにエラーを働い

# apt-get install --reinstall ca-certificates 

# update-ca-certificates 

を行うことを言っthis pageに私を得ました。 影響を受けたパッケージを見ると、SSL暗号化で問題が発生する可能性があります。これは、Dockerリポジトリをhttpsアドレスにも更新したくないため修正されているためです。