无法安装 g++-10

无法安装 g++-10

运行 Ubuntu 18.04。我已添加 ppa:ubuntu-toolchain-r/test。

我已经成功安装了 gcc-10:

$ sudo apt-get install gcc-10
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-10 is already the newest version (10.1.0-2ubuntu1~18.04).

我还安装了 g++-7:

$ sudo apt-get install g++-7
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++-7 is already the newest version (7.5.0-3ubuntu1~18.04).

但我无法安装 g++-10:

$ sudo apt-get install g++-10
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'clang-10-examples' for regex 'g++-10'
Note, selecting 'clang-10' for regex 'g++-10'
Note, selecting 'libclang-10-dev' for regex 'g++-10'
Note, selecting 'python-clang-10' for regex 'g++-10'
Note, selecting 'clang-10-doc' for regex 'g++-10'
Note, selecting 'python3-clang-10' for regex 'g++-10'
clang-10 is already the newest version (1:10.0.0-4ubuntu1~18.04.1).
clang-10-doc is already the newest version (1:10.0.0-4ubuntu1~18.04.1).
clang-10-examples is already the newest version (1:10.0.0-4ubuntu1~18.04.1).
libclang-10-dev is already the newest version (1:10.0.0-4ubuntu1~18.04.1).
python3-clang-10 is already the newest version (1:10.0.0-4ubuntu1~18.04.1).

可能是什么问题呢?

编辑:

完成后apt-get update && apt-get upgrade

$ apt policy '^gcc-10$' '^g\+\+-10$'
gcc-10:
  Installed: 10.1.0-2ubuntu1~18.04
  Candidate: 10.1.0-2ubuntu1~18.04
  Version table:
 *** 10.1.0-2ubuntu1~18.04 500
        500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
N: Unable to locate package ^g\+\+-10$
N: Couldn't find any package by regex '^g\+\+-10$'

使用简单查询运行命令g++-10会显示与正则表达式匹配的每个包,但没有 g++10。

答案1

问题是我办公室里的电脑是由木偶。 我不知道。

显然 IT 部门的某个人最近更改了中央配置。现在 puppy 会删除我的 PPA 并时不时地强制安装某些软件包的特定版本。

相关内容