Search code examples
visual-studio-codeeditor

vs code: Error while fetching extensions. Failed to fetch


When i try to search some extensions in vs code marketplace list of exts not appears, when i met this problem the load was infinite without some errors, after i start to solve this, the error appears. My os is ubuntu 24.04.1 vscode version is 1.93.1 x64 Problems starts when i update vs code, when i open vsc after upd .NET extensions show me errors in pannel in bottom, and my font not work anymore.

For first i try to disable and remove .NET extensions, does not work, after i remove font, i remove all from user config.json and workspace config.json, still not work. I fully reinstall vs code using guids, i clear hidden dir and used this guid for installation https://code.visualstudio.com/docs/setup/linux problem still appears. I dont know where to look in vs code to understand what is this problem.

One thing when i installing vs code in output in terminal on buttom i got this warning: Download is performed unsandboxed as root as file '/home/myme/Documents/code_1.92.2-1723660989_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied), i dont remember whether i got this warning when i install it for first time or not As i has read i can ignore this warning.

Else i tried to install previous version 1.92.2, and i have same problem.

And i tried to install it from Document directory

im totally new, and i cant handle it please help


Solution

  • I got handle it, it was so dumb from my side to think this is pc problem. So if you live in rassia or some place like this, you have to use proxy.

    1. open vs code, open command platte (i used Ctrl + Shift + P) write Preferences: Open Settings (JSON), i choose user.
    2. add to this file these:
      "http.proxySupport": "on",
      "http.proxy": "http://your-proxy-address:port",
      "http.proxyAuthorization": "Basic <base64-encoded-username-password>",
    3. save, restart.

    OR use vpn