【问题标题】:Issue with running Ubuntu App on Windows 10在 Windows 10 上运行 Ubuntu 应用程序的问题
【发布时间】:2021-02-19 17:26:54
【问题描述】:

您好,我有这个问题,为什么要按照步骤使用 Letsencrypt here 生成 SSL 证书。

但是,当我运行命令 ./certbot-auto certonly -a standalone -d example.com -d www.example.com 时,我遇到了这个问题:

: not founduto: 13: ./certbot-auto: : not founduto: 15: ./certbot-auto:

我正在发送一个 sn-p 供参考:

对于如何解决此问题,我将不胜感激。谢谢。

【问题讨论】:

    标签: windows-subsystem-for-linux


    【解决方案1】:

    : 位于行的开始这一事实表明您有 CR/LF 行结尾。您可以使用od -xcb certbot-auto 验证这一点并检查\r\n 行尾。

    生成的错误消息将是 something 之类的:

    ./certbot-auto: 13: ./certbot-auto: <cr>: not found
    

    &lt;cr&gt; 之后的位覆盖消息的开头,使其看起来像(你可以看到的):

    : not founduto: 13: ./certbot-auto:
    

    所以第一步是在你的shell脚本上运行dos2unix之类的东西并修复行尾:

    dos2unix certbot-auto
    

    这应该会改变行尾,并希望它可以运行。

    【讨论】:

    • 喜欢在该命令之前添加dos2unix?抱歉,我是初学者。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-03-14
    • 1970-01-01
    • 2017-10-04
    • 2015-09-15
    • 2018-09-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多