Запуск 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.
The problem is that my computer at work is managed by puppet. I had no idea.
Apparently somebody in the IT has changed the central configuration recently. Now puppy removes my PPA and force-installs specific versions of certain packages every now and then.