天天看點

VSCode遠端連接配接Ubuntu問題1:The remote host may not meet VS Code Server‘s prerequisites for glibc and libstd

VScode配置遠端免密連接配接Ubuntu16.0.4,一直以來使用正常,今天使用VSCode報錯,錯誤具體資訊如下:

The remote host may not meet VS Code Server's prerequisites for glibc and libstdc++

分析以為是Ubuntu依賴庫glibc和libstdc++問題,選擇更新和更新Ubuntu。

sudo apt-get upgrade
           

發生錯誤資訊如下:

E: You don't have enough free space in /var/cache/apt/archives/.
VSCode遠端連接配接Ubuntu問題1:The remote host may not meet VS Code Server‘s prerequisites for glibc and libstd

如圖,以為虛拟機空間不足,選擇擴容虛拟機空間。

具體步驟:Virtualbox虛拟配置設定空間擴充(适用于動态配置設定磁盤)

然而,問題依舊存在。

後來在其他的博文的提示下,是 /var/cache/apt/archive目錄下空間不足,軟體包管理空間不足。

/var/cache/apt/archives檔案夾中的檔案是使用sudo apt-get install appname時下載下傳的安裝檔案,這些檔案是可以清理的,若你系統空間不足的時候,可以想到從此處進行清理而獲得空間。

解決方法:進入/var/cache/apt/archives目錄下,執行清理指令sudo apt-get clean。

cd /var/cache/apt/archives
sudo apt-get clean
           
VSCode遠端連接配接Ubuntu問題1:The remote host may not meet VS Code Server‘s prerequisites for glibc and libstd

如圖所示操作,問題解決。

參考文章:https://gitmemory.com/issue/microsoft/vscode/104743/674488255

                  https://www.linuxidc.com/Linux/2019-02/156895.htm

繼續閱讀