【问题标题】:Your version of snapd is outdated您的 snapd 版本已过时
【发布时间】:2021-02-16 17:12:20
【问题描述】:

我正在尝试通过以下方式在 Debian 10 上为 Apache 获取和安装一些 https 证书:https://certbot.eff.org/lets-encrypt/debianbuster-apache

在第 7 步之前一切正常:sudo certbot --apache:

An error occurred while fetching Certbot snap plugins: your version of snapd is outdated.
Please run "sudo snap install core; sudo snap refresh core" in your terminal and try again.
An unexpected error occurred:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://snapd/v2/connections?snap=certbot&interface=content
Please see the logfile '/tmp/tmp5xjbr23v/log' for more details.

当我运行sudo snap install core; sudo snap refresh core:

snap "core" is already installed, see 'snap help refresh'
error: cannot refresh "core": refreshing disabled snap "core" not supported

查看日志(/tmp/tmp5xjbr23v/log):

2020-11-04 00:26:04,950:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 404 88
2020-11-04 00:26:04,951:ERROR:certbot._internal.snap_config:An error occurred while fetching Certbot snap plugins: your version of snapd is outdated.
2020-11-04 00:26:04,951:ERROR:certbot._internal.snap_config:Please run "sudo snap install core; sudo snap refresh core" in your terminal and try again.
2020-11-04 00:26:04,951:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/snap/certbot/652/bin/certbot", line 8, in <module>
    sys.exit(main())
  File "/snap/certbot/652/lib/python3.8/site-packages/certbot/main.py", line 15, in main
    return internal_main.main(cli_args)
  File "/snap/certbot/652/lib/python3.8/site-packages/certbot/_internal/main.py", line 1330, in main
    cli_args = snap_config.prepare_env(cli_args)
  File "/snap/certbot/652/lib/python3.8/site-packages/certbot/_internal/snap_config.py", line 67, in prepare_env
    raise e
  File "/snap/certbot/652/lib/python3.8/site-packages/certbot/_internal/snap_config.py", line 57, in prepare_env
    response.raise_for_status()
  File "/snap/certbot/652/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://snapd/v2/connections?snap=certbot&interface=content
2020-11-04 00:26:04,951:ERROR:certbot._internal.log:An unexpected error occurred:
2020-11-04 00:26:04,951:ERROR:certbot._internal.log:requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://snapd/v2/connections?snap=certbot&interface=content

这里有更多关于可能有用的版本的详细信息sudo snap version

snap    2.37.4-1+b1
snapd   2.37.4-1+b1
series  16
debian  10
kernel  4.19.0-11-cloud-amd64

我尝试使用最新版本重新安装 snapd (https://snapcraft.io/docs/installing-snap-on-debian),但还是一样。。 你们知道我的设置有什么问题以及如何解决吗?

谢谢

【问题讨论】:

    标签: https debian certbot


    【解决方案1】:

    好吧,我使用以下方法解决了这个问题: sudo snap remove core sudo snap install core

    现在我有了:

    snap    2.47.1
    snapd   2.47.1
    

    我想我太累了。

    【讨论】:

    • &gt; sudo snap remove core error: cannot remove "core": snap "core" is not removable 抱歉,你做得怎么样?
    猜你喜欢
    • 2018-12-14
    • 2015-01-15
    • 1970-01-01
    • 1970-01-01
    • 2021-10-13
    • 1970-01-01
    • 1970-01-01
    • 2013-01-16
    • 2017-12-15
    相关资源
    最近更新 更多