日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

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

發布時間:2025/4/5 55 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

不會報錯!!

接著執行:
第三步:繼續安裝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,并且可以正常編譯。

《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀

總結

以上是生活随笔為你收集整理的wsl遇到问题The repository ‘http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu focal Release‘解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。