curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >
microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get update
sudo apt-get install code但我不能加载任何扩展。如果打开Developer工具,我会看到以下错误:
ERR net::ERR_INTERNET_DISCONNECTED: Error: net::ERR_INTERNET_DISCONNECTED如何授权vscode连接?
发布于 2018-07-25 14:30:14
在安装VSCode时,可以看到最后两行是:
Configuring sandbox profiles...
Sandbox profiles updated!来自鹦鹉3.9有沙箱特性使用[消]火狱。该系统在/etc/下为每个安装创建一个配置文件。该文件包含保护应用程序的规则,如联网规则。
正如您在文档中看到的那样:
-net=none创建一个未连接到实际网络的网络命名空间。沙箱看起来像一台没有任何网络接口的计算机。
因此,您必须在/etc/firejail/code.profile中注释(或删除)行
net none您的VSCode现在将加载扩展列表!(我也有同样的问题)
编辑:注意更新,因为火监狱配置文件被覆盖了,正如您在配置文件中看到的那样:
# This file is overwritten after every install/update例如,如果您更新/升级您的系统,请检查以下内容:
Configuration file '/etc/firejail/code.profile'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** code.profile (Y/I/N/O/D/Z) [default=N] ? 发布于 2018-11-20 17:12:49
在parrotsec操作系统中,大多数应用程序都是从启动程序(GUI菜单)启动的,因此sandboxed.If希望启动一个应用程序,不受任何限制,只需从终端启动它们,如下所示
/usr/bin/<appname>https://stackoverflow.com/questions/51221089
复制相似问题