如果是在vscode的终端安装gcc,那么终端就会报错
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
说权限问题,那你直接在ubuntu的终端打开安装gcc
报错的可能是vscode不能直接终端控制