日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

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

發(fā)布時間:2025/4/5 Ubuntu 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 wsl遇到问题The repository ‘http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu focal Release‘解决方法 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

按照這篇博文
在wsl中安裝vscode遇到的問題

第一步:切換為國內(nèi)的源沒有問題

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.

根據(jù)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

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

然后遇到問題

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

原因是權(quán)限不夠:輸入su切換到root用戶再執(zhí)行一遍,順利開始installing。

安裝完之后,需要切換回普通用戶模式:輸入exit即可切換。

第四步:運行vscode
然后輸入

code .

開始安裝vscode服務(wù)器

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,并且可以正常編譯。

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

總結(jié)

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

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。