In the process of learning Linux embedded development, I encountered the following problems: after installing VS code in the Ubuntu virtual machine, it need to install appropriate plug-ins. At this point, vscode fails to expand XHR Failed, as shown in the figure:
And press the F1 key inside Vs code to open Developer:Toggle Developer Tools, enter the Console to query the reason, The error shown in the figure below appears (That is, Ubuntu system will point the domain name to the specified IP solve this problem):
After searching the Internet for many solutions, the following operations can solve the problem:
1. Open the hosts file in the Ubuntu terminal
sudo gedit /etc/hosts
2. Add the corresponding relationship between IP and domain name in the file as follows, and save the hosts fileļ¼
13.107.42.18 marketplace.visualstudio.com
3. Restart Ubuntu.
Read More:
- [Solved] Vscode connect virtual machine error: can’t be established
- [Solved] Virtual Machine Boot-up Error: failed to recover intents
- Vmware virtual Mechine connect VScode Error: channel 3: open failed: administratively prohibited: open failed
- [Solved] Virtual Machine Error: FAILURE: Build failed with an exception.Flutter
- Vmware Virtual Machine ubuntu Compile Error: fatal error: Killed signal terminated program cc1plus
- Virtual machine failed to start network service error: ob for network.service failed because the control process exited with error code
- Linux Virtual Machine Boot Container: Error response from daemon: driver failed programming external connectivity on endpoint
- [Solved] Virtual machine Failed to restart network Error: Error:Failed to start LSB: Bring up/down networking
- [Solved] Virtual Machine Centos7 Startup Error: Entering emergency mode
- [Solved] VMware Create a Virtual Machine Error: unsuccessful
- Oracle VM VirtualBox open replication virtual machine Error
- Openstack virtual machine disk IO error [How to Solve]
- [Solved] Exception in replication between CentOS virtual machine and host
- [Solved] Linux virtual machine startup error: operating system not found
- Exsi virtual machine is missing vmdk file error [How to Solve]
- [Solved] Upstream connect error or disconnect occurs after the k8s istio virtual machine is restarted
- [Solved] IDEA Start Project Error: Abnormal build process termination:Could not create the Java Virtual Machine.
- Virtual machine ping Command Error: ping name or service not known
- [Solved] Xcode13.1 Upgrade Error: CocoaPods installed but not working Failed to build gem native extension
- [Solved] secureCRT Failed to Login Ubuntu20.04 Error: Key exchange failed