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

    • 参考内容: https://blog.csdn.net/mr_black_man/article/details/102832000
    • 离线安装包地址: https://gist.github.com/netnr/bc203fe06313691e0432054fdbd6c768
    • 下载后, zip格式解压, 直接运行 ubuntu.exe安装
  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, 完毕