获取证书失败



  • WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead.
    Exception:
    Traceback (most recent call last):
    File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
    File "/usr/lib/python3.6/site-packages/pip/commands/install.py", line 294, in run
    with self._build_session(options) as session:
    File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session
    insecure_hosts=options.trusted_hosts,
    File "/usr/lib/python3.6/site-packages/pip/download.py", line 329, in init
    self.headers["User-Agent"] = user_agent()
    File "/usr/lib/python3.6/site-packages/pip/download.py", line 93, in user_agent
    from pip._vendor import distro
    File "/usr/lib/python3.6/site-packages/pip/_vendor/distro.py", line 1050, in <module>
    _distro = LinuxDistribution()
    File "/usr/lib/python3.6/site-packages/pip/_vendor/distro.py", line 594, in init
    if include_lsb else {}
    File "/usr/lib/python3.6/site-packages/pip/_vendor/distro.py", line 922, in _get_lsb_release_info
    stdout, stderr = stdout.decode('utf-8'), stderr.decode('utf-8')
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 24: invalid continuation byte
    Traceback (most recent call last):
    File "/usr/bin/pip3", line 16, in <module>
    sys.exit(main())
    File "/usr/lib/python3.6/site-packages/pip/init.py", line 247, in main
    return command.main(cmd_args)
    File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 251, in main
    timeout=min(5, options.timeout)) as session:
    File "/usr/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session
    insecure_hosts=options.trusted_hosts,
    File "/usr/lib/python3.6/site-packages/pip/download.py", line 329, in init
    self.headers["User-Agent"] = user_agent()
    File "/usr/lib/python3.6/site-packages/pip/download.py", line 93, in user_agent
    from pip._vendor import distro
    File "/usr/lib/python3.6/site-packages/pip/_vendor/distro.py", line 1050, in <module>
    _distro = LinuxDistribution()
    File "/usr/lib/python3.6/site-packages/pip/_vendor/distro.py", line 594, in init
    if include_lsb else {}
    File "/usr/lib/python3.6/site-packages/pip/_vendor/distro.py", line 922, in _get_lsb_release_info
    stdout, stderr = stdout.decode('utf-8'), stderr.decode('utf-8')
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 24: invalid continuation byte
    which: no certbot in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
    /dev/fd/63:0: certbot: δ

                          获取证书失败,请到 https://www.hijk.pw 反馈


  • @青衫墨韵 ubuntu系统?



  • @hijk 不是,是centos7



  • 有可能是改了控制台输出编码格式导致,系统重装之后就没问题了



  • 👌


登录后回复