wsl安装问题,Clearsigned file isn't valid

  1. 公司内网安装wsl,无法使用微软商店, 需要手动安装 ubuntu1804

  2. apt install nodejsunable to locate package nodejs

    • 无法定位安装包,需要更新软件源
  3. apt update报错, Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

    • 测试可用: 修改更新源(vim /etc/apt/sources.list), http源 改为 https源。 参考:https://www.cnblogs.com/ssxblog/p/11357126.html
      ##中科大源
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
      deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
      deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
      deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
      deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
      deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
      deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
      
    • 设置apt proxy, 测试无效果
  4. apt update, apt upgrade, apt install nodejs 完毕

copy from : https://ichengzi.github.io/2019/11/27/wsl安装问题.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。