wsl遇到问题The repository ‘http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu focal Release‘解决方法
生活随笔
收集整理的這篇文章主要介紹了
wsl遇到问题The repository ‘http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu focal Release‘解决方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
按照這篇博文
在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不會報錯!!
接著執(zhí)行:
第三步:繼續(xù)安裝vscode
然后遇到問題
PermissionError: [Errno 13] Permission denied: '/root/.local/share/umake/ide/visual-studio-code'原因是權限不夠:輸入su切換到root用戶再執(zhí)行一遍,順利開始installing。
安裝完之后,需要切換回普通用戶模式:輸入exit即可切換。
第四步:運行vscode
然后輸入
開始安裝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‘解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 剑指offer:分行从上往下打印二叉树
- 下一篇: wsl安装配置vscode(亲测有用)