在这里插入图片描述

  1. 执行apt update 报错如图:

    Err:6 http://mirrors.aliyun.com/ubuntu bionic Release
    SECURITY: URL redirect target contains control characters, rejecting. [IP:
    E: The repository ‘http://mirrors.aliyun.com/ubuntu bionic Release’ no longer has a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    本人将镜像配置连接由 http 修改为 https 解决 例子如下:

    • vim /etc/apt/sources.list
    • 将镜像地址
      http://mirrors.aliyun.com/ubuntu…
      修改为:
      https://mirrors.aliyun.com/ubuntu…
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐