sudo apt-get install obteve resultado de dependências não atendidas

sudo apt-get install obteve resultado de dependências não atendidas

Eu tenho esse erro em Linux ubuntu 4.4.0-198-generic #230-Ubuntu SMP Sat Nov 28 01:30:29 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux:

$ sudo apt-get -f install`
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 cpp-6 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 g++-6 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 g++-6-multilib : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 gcc-6 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 gcc-6-multilib : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 lib32asan3 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 lib32cilkrts5 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 lib32gcc-6-dev : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 lib32stdc++-6-dev : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 lib32ubsan0 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 libasan3 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 libc6 : Breaks: libc6:i386 (!= 2.23-0ubuntu11.2) but 2.23-0ubuntu3 is installed
 libc6:i386 : Breaks: libc6 (!= 2.23-0ubuntu3) but 2.23-0ubuntu11.2 is installed
 libcilkrts5 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
 libgcc-6-dev : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
            Depends: libgcc1 (>= 1:6.2.0-3ubuntu11~12.04) but 1:6.0.1-0ubuntu1 is installed
 libgcc1 : Breaks: libgcc1:i386 (!= 1:6.0.1-0ubuntu1) but 1:9.3.0-10ubuntu2~12.04 is installed
 libgcc1:i386 : Breaks: libgcc1 (!= 1:9.3.0-10ubuntu2~12.04) but 1:6.0.1-0ubuntu1 is installed
 libstdc++-6-dev : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
               Depends: libstdc++6 (>= 6.2.0-3ubuntu11~12.04) but 5.4.0-6ubuntu1~16.04.12 is installed
 libstdc++6 : Breaks: libstdc++6:i386 (!= 5.4.0-6ubuntu1~16.04.12) but 9.3.0-10ubuntu2~12.04 is installed
 libstdc++6:i386 : Breaks: libstdc++6 (!= 9.3.0-10ubuntu2~12.04) but 5.4.0-6ubuntu1~16.04.12 is installed
 libubsan0 : Depends: gcc-6-base (= 6.2.0-3ubuntu11~12.04) but 6.0.1-0ubuntu1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Eu tento atualizar:

$ sudo apt-get install updata
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package updata
$ sudo apt update
     Hit:1 http://tw.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://tw.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://tw.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://dl.ajaxplorer.info/repos/apt squeeze InRelease [7,126 B]
Err:4 http://dl.ajaxplorer.info/repos/apt squeeze InRelease
  The following signatures were invalid: KEYEXPIRED 1530185191
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple     times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: http://dl.ajaxplorer.info/repos/apt/dists/squeeze/InRelease: Signature by key E570B40867757573C52F115D062C7EBC11FFD694 uses weak digest algorithm (SHA1)
W: GPG error: http://dl.ajaxplorer.info/repos/apt squeeze InRelease: The following signatures were invalid: KEYEXPIRED 1530185191
E: The repository 'http://dl.ajaxplorer.info/repos/apt squeeze InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:54
$ apt-key adv --keyserver pool.sks-keyservers.net --recv-keys E570B40867757573C52F115D062C7EBC11FFD694
Executing: /tmp/tmp.NXrgNdYHtv/gpg.1.sh --keyserver
pool.sks-keyservers.net
--recv-keys
E570B40867757573C52F115D062C7EBC11FFD694
gpg: requesting key 11FFD694 from hkp server pool.sks-keyservers.net
gpg: key 11FFD694: "Charles du Jeu (AjaXplorer Team) <[email protected]>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

Como posso resolver este problema?

Responder1

Existem vários problemas em jogo:

1)

Err:4 http://dl.ajaxplorer.info/repos/apt squeeze InRelease
  The following signatures were invalid: KEYEXPIRED 1530185191

Para isso, veja por exemploErro GPG KEYEXPIRED ao atualizar repositórios

Se você não conseguir obter a chave pública atual deste repositório com apt-key, será necessário verificar onde sua configuração espera que a chave esteja. O uso apt-keyfoi descontinuado atualmente em favor do armazenamento de chaves individuais no sistema de arquivos.

Procure a debentrada que corresponde a este repositório em algum lugar do arquivo /etc/apt. Se esta debentrada contiver algo parecido [signed-by=/usr/share/keyrings/<myrepository>-archive-keyring.gpg], você precisará atualizar o arquivo mencionado lá com a chave atual. Provavelmente há uma observação sobre como baixar a chave na descrição do repositório.

2)

É update, não updata;) Além disso, não há nenhum pacote chamado update(ou updata), então você não pode instalá-lo. Isso é o que seu sistema informa em E: Unable to locate package updata. Você pode querer examinar a sistemática aptnovamente, para não voltar a fazer coisas basicamente sem sentido (sem ofensa) sudo apt-get install updata.

3)

Você parece ter configurado alguns repositórios que oferecemalgunspacotes que você precisa, mas nãotodosdeles. Por exemplo, quando você tenta instalar cpp-6o , ele também precisa do gcc-6-base. Para a versão de cpp-6vocêfazertem disponível, você precisaria gcc-6-base 6.2.0-3ubuntu11~12.04, mas você só tem gcc-6-base 6.0.1-0ubuntu1.

4)

Como guiverc já mencionou em seu comentário à sua pergunta, você parece usar pelo menosalgunssoftware bastante antigo. Como você pode ver, o gcc-6-basepacote que você gostaria de instalar (se o tivesse) é para Ubuntu 12.04, portanto de 2012.

No geral, você pode querer fazer uma limpeza completa de primavera em sua máquina. Talvez ajude pedir a alguém para dar uma olhada pessoalmente, talvez do seu grupo de usuários Linux local, se disponível. Em última análise, pode ser ainda mais fácil fazer backup de todos os dados que você deseja manter e fazer uma nova instalação. Mas isso não é fácil de decidir remotamente.

informação relacionada