按照这篇博文
在wsl中安装vscode遇到的问题

第一步:切换为国内的源没有问题

sudo sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
sudo apt update -y
sudo apt upgrade -y

第二步安装vscode遇到问题,报错如下:

azheng@lishizheng:/mnt/e$ sudo apt-get  update
Hit:1 http://mirrors.aliyun.com/ubuntu focal InRelease
Hit:2 http://mirrors.aliyun.com/ubuntu focal-updates InRelease
Hit:3 http://mirrors.aliyun.com/ubuntu focal-backports InRelease
Ign:4 http://mirrors.aliyun.com/ubuntu trusty InRelease
Hit:5 http://mirrors.aliyun.com/ubuntu trusty-security InRelease
Hit:6 http://mirrors.aliyun.com/ubuntu trusty-updates InRelease
Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Ign:8 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu focal InRelease
Hit:9 http://mirrors.aliyun.com/ubuntu trusty-proposed InRelease
Hit:10 http://mirrors.aliyun.com/ubuntu trusty-backports InRelease
Hit:11 http://mirrors.aliyun.com/ubuntu trusty Release
Err:13 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu focal Release404  Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu focal Release' does not have 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.

根据stackoverflow来试着解决
https://stackoverflow.com/questions/60249177/e-the-repository-http-ppa-launchpad-net-certbot-certbot-ubuntu-focal-release

解决方法

输入以下命令:

 sudo apt-add-repository -r ppa:ubuntu-desktop/ubuntu-make

然后再输入

sudo apt update
sudo apt-get update

不会报错!!

接着执行:
第三步:继续安装vscode

sudo apt install ubuntu-make
sudo umake ide visual-studio-code

然后遇到问题

PermissionError: [Errno 13] Permission denied: '/root/.local/share/umake/ide/visual-studio-code'

原因是权限不够:输入su切换到root用户再执行一遍,顺利开始installing。

安装完之后,需要切换回普通用户模式:输入exit即可切换。

第四步:运行vscode
然后输入

code .

开始安装vscode服务器

azheng@lishizheng:/mnt/e$ code .
Installing VS Code Server for x64 (899d46d82c4c95423fb7e10e68eba52050e30ba3)
Downloading: 100%
Unpacking: 100%
Unpacked 1722 files and folders to /home/azheng/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3.

终于大功告成,在wsl上成功安装vscode,并且可以正常编译。

wsl遇到问题The repository ‘http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu focal Release‘解决方法相关推荐

  1. Ubuntu报错:E: The repository http://ppa.launchpad.net/fcitx-team does not have a Release file.

    报错: E: The repository 'http://ppa.launchpad.net/fcitx-team/nightly/ubuntu bionic Release' does not h ...

  2. E: The repository ‘http://ppa.launchpad.net/appimagelauncher-team/stable/ubuntu bionic Release‘ does

    Ubuntu18.04解决 E: The repository 'http://ppa.launchpad.net/appimagelauncher-team/stable/ubuntu bionic ...

  3. wsl ubuntu update显示err: 404 Not Found解决方法

    文章目录 遇到问题 解决方法 参考 遇到问题 azheng@lishizheng:/mnt/e/shizheng_coding/fluent_python_reading_books$ sudo ap ...

  4. 完美解决ubuntu报错:ppa.launchpad与404 Not Found [IP: 91.189.95.85 80]

    报错描述: 解决方法:cd /etc/apt/sources.list.d 注释掉gedit /etc/apt/sources.list该路径下的内容: #deb http://apt.tvheade ...

  5. GPG 错误:http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY

    运行 sudo apt-get update 报错 W: GPG error: http://ppa.launchpad.net/deadsnakes/ppa/ubuntu xenial InRele ...

  6. wsl 或者window terminal 下出现Java 14 switch expressions unrecognized解决方法:升级java jdk到14 or later

    文章目录 缘由 解决方法 参考 缘由 IDEA中build成功,但是automated build失败 $ ./gradlew> Task :compileJava FAILED Wordle/ ...

  7. 仓库 “http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release” 没有 Release 文件

    仓库 "http://ppa.launchpad.net/fcitx-team/nightly/ubuntu xenial Release" 没有 Release 文件.     ...

  8. W: 无法下载 http://ppa.launchpad.net/fcitx-team/nightly/ubuntu/dists/jessie/main/binary-amd64/Packages

    转自:http://blog.csdn.net/u010317005/article/details/52168493 执行apt-get update时出现以下情况 W: 无法下载 http://p ...

  9. ubuntu报错:E: 仓库 “http://ppa.launchpad.net/docky-core/ppa/ubuntu bionic Release” 没有 Release 文件

    E: 仓库 "http://ppa.launchpad.net/docky-core/ppa/ubuntu bionic Release" 没有 Release 文件. 解决: s ...

最新文章

  1. 10012 - How Big Is It?
  2. 【机器听觉】初探语音识别技术
  3. 如何使用SAP Cloud for Customer OData服务创建Lead
  4. 删除a标签下面的横线
  5. nodejs实践录:pm2实验测试记录
  6. OpenCV-双边滤波cv::bilateralFilter
  7. 手册-网站-仙客传奇团队博客
  8. mysql生成varchar类型主键排序
  9. 企业如何培养新型员工队伍
  10. 解决Unity中文显示乱码问题
  11. RSPAN-华为二层(s2000 HI)
  12. html5给文字添加拼音,word怎么为文字添加拼音
  13. ssh远程登录命令简单实例
  14. 网格简化技术研究报告
  15. Kubernetes切换Docker容器引擎为Containerd
  16. 【优化】近端梯度下降(Proximal Gradient Descent)求解Lasso线性回归问题
  17. 深入浅出解答hero刷rom的各种问题
  18. 一文读懂Attention
  19. 【速通指南】《信息资源管理》信息系统资源管理,第3章
  20. 英语话题 Shopping

热门文章

  1. C# Soap调WebService
  2. iOS手势之pinch
  3. Apache Ant运行时Unable to locate tools.jar解决方法
  4. Name与x:Name的关系--转载
  5. VS Web.config 密码加密加密
  6. c语言表现一些简单的图片,C语言的一些简单例题.doc
  7. 【控制】《多无人机协同控制技术》周伟老师-第8章-危险状态下的无人机编队运动控制策略
  8. 2.5 数据不匹配时,偏差和方差的分析-深度学习第三课《结构化机器学习项目》-Stanford吴恩达教授
  9. 面向对象八大设计原则
  10. 【PC工具】速度最快的的文件搜索工具:everything