Ara*_*tty 3 windows gcc gdb windows-subsystem-for-linux
我需要 gcc 来编译 ac 代码,但无法在 wsl 上安装 gcc。我试过了,sudo apt-get install gcc但没有用。这是错误。
hack@DESKTOP-VMQA3JB:~$ sudo apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gcc : Depends: gcc-9 (>= 9.2.1-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
我不知道要安装的依赖项。也请帮助我使用 gdb。谢谢你。
Has*_*sef 10
你需要:
$ sudo apt-get update && sudo apt-get upgrade -y
Run Code Online (Sandbox Code Playgroud)
2.清理不需要的包:
$ sudo apt autoremove -y
Run Code Online (Sandbox Code Playgroud)
$ sudo apt-get install gcc -y
Run Code Online (Sandbox Code Playgroud)
gcc --version
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7721 次 |
| 最近记录: |