安装valgrind提示libc6-dbg but it is not going to be installed

root@ubuntu:/mnt/work_space_share/my_programe/C# apt install valgrind
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-4.15.0-210-generic : Depends: linux-modules-4.15.0-210-generic but it is not going to be installed
 valgrind : Depends: libc6-dbg but it is not going to be installed
            Recommends: gdb but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)

根据错误提示,安装Valgrind时出现了依赖关系问题。可以尝试使用以下命令解决:

sudo apt --fix-broken install

这个命令会尝试修复系统中的损坏或不完整的软件包,并满足软件包之间的依赖关系。

如果该命令无法解决问题,那么可以尝试更新软件源并再次安装Valgrind,具体命令如下:

sudo apt update
sudo apt install valgrind

ok搞定!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

MrWang.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值