我尝试使用以下命令添加一个新的 APT 存储库:
add-apt-repository ppa:atareao/atareao
Run Code Online (Sandbox Code Playgroud)
但我收到“找不到命令”错误。我尝试安装python-software-properties,但它已经安装:
root@debian:~# apt-get install python-software-properties
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-software-properties is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)
所以我决定手动将存储库添加到source.list,但不知道如何。如何source.list直接编辑?
我需要安装c/c++编译器,我听说最好的办法是为此目的安装gcc/g++(我想我的机器上没有它)。
maistora@maistora:~$ gcc --version
bash: gcc: command not found
Run Code Online (Sandbox Code Playgroud)
我还阅读了如果我安装了 build-essential 附带的 c/c++ 编译器。所以我所做的是:
maistora@maistora:~$ sudo apt-get install build-essential
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 …Run Code Online (Sandbox Code Playgroud)