求助:未发现 build-essential 的候选版本 怎么办
Tofloor
poster avatar
windrunner
deepin
2020-03-21 02:33
Author
目的是安装一下G++,但是试了网上很多方法都不行。

~$ sudo aptitude install build-essential

未发现 build-essential 的候选版本
Unable to apply some actions, aborting


~$ sudo apt install g++ build-essential libomp-dev -y


E: 软件包 build-essential 没有可安装候选
E: 无法定位软件包 libomp-dev


~$ sudo wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_gcc=1 bash ./jittor/script/install.sh


E: 软件包 build-essential 没有可安装候选
E: 无法定位软件包 libomp-dev


~$ sudo apt-get install g++


升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。

~$ g++ --v

bash: g++: 未找到命令













Reply Favorite View the author
All Replies
avatar
残念
deepin
2020-03-21 02:53
#1
源里有g++啊,先更新一下源 sudo apt update 然后安装 sudo apt install g++
Reply View the author
avatar
aida
deepin
2020-03-21 02:56
#2
我本地尝试了一下没有问题 请您提供 /etc/apt/source.list 的内容

  1. cat /etc/apt/sources.list
Copy the Code

然后在终端执行 以下命令刷新软件源缓存

  1. sudo apt update
Copy the Code
Reply View the author
avatar
windrunner
deepin
2020-03-21 03:00
#3
https://bbs.deepin.org/post/189892
我本地尝试了一下没有问题 请您提供 /etc/apt/source.list 的内容

非常感谢快速回复。
1. 先update 了一下apt
2. 然后再试了一下,问题解决了。
Reply View the author