windows - 如何为 WSL(Linux 的 Windows 子系统)安装 GCC 和 GDB?
问题描述
我需要 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.
我不知道要安装的依赖项。也请帮助我使用 gdb。谢谢你。
解决方案
推荐阅读
- json - 迭代 jq 循环:如果 value.subvalue 匹配条件,则分配键
- python - 返回函数删除一些数据并打印函数在输出中添加无
- jenkins - 如何从 Jenkins 插件中的管道步骤返回复杂对象?
- azure - 无法在 Azure DevOps 发布管道任务中更改服务连接
- class - 方法未定义(类型没有方法)
- php - 在 Laravel PHP 中设置控制器的正确方法
- reactjs - 列出项目错误:期望减速器是一个函数
- php - 限制每个地区配额 laravel
- python - 如何绑定重置按钮以清除烧瓶中的特定或所有字段
- html - 为什么我的图像在我的网格或弹性框中不断放大?