dpkg: пакет обработки ошибок cpp (--configure)
Внезапно я получаю эту ошибку на каждом apt install
или же apt upgrade
, Использование Ubuntu 18.04
dpkg: dependency problems prevent configuration of gcc:
gcc depends on cpp (>= 4:7.3.0-3ubuntu2.1); however:
Package cpp is not configured yet.
dpkg: error processing package gcc (--configure):
dependency problems - leaving unconfigured
или же
dpkg: dependency problems prevent configuration of gfortran:
gfortran depends on cpp (>= 4:7.3.0-3ubuntu2.1); however:
Package cpp is not configured yet.
gfortran depends on gcc (>= 4:7.3.0-3ubuntu2.1); however:
Package gcc is not configured yet.
после запуска sudo dpkg --configure -a
:
Setting up cpp (4:7.3.0-3ubuntu2.1) ...
update-alternatives: error: alternative cpp can't be master: it is a slave of g++
dpkg: error processing package cpp (--configure):
installed cpp package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of gcc:
gcc depends on cpp (>= 4:7.3.0-3ubuntu2.1); however:
Package cpp is not configured yet.
dpkg: error processing package gcc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of g++:
g++ depends on cpp (>= 4:7.3.0-3ubuntu2.1); however:
Package cpp is not configured yet.
g++ depends on gcc (>= 4:7.3.0-3ubuntu2.1); however:
Package gcc is not configured yet.
dpkg: error processing package g++ (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gfortran:
gfortran depends on cpp (>= 4:7.3.0-3ubuntu2.1); however:
Package cpp is not configured yet.
gfortran depends on gcc (>= 4:7.3.0-3ubuntu2.1); however:
Package gcc is not configured yet.
dpkg: error processing package gfortran (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
cpp
gcc
g++
gfortran
Я предполагаю, что это ключевой вопрос: installed cpp package post-installation script subprocess returned error exit status 2
, Но не мог найти решение для этого.