sudo apt-get install이 충족되지 않은 종속성 결과를 얻었습니다.

sudo apt-get install이 충족되지 않은 종속성 결과를 얻었습니다.

다음에서 이 오류가 발생했습니다 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

업데이트하려고 합니다:

$ 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

이 문제를 어떻게 해결할 수 있나요?

답변1

플레이에는 몇 가지 문제가 있습니다.

1)

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

이에 대해서는 예를 참조하세요.리포지토리를 업데이트할 때 GPG KEYEXPIRED 오류가 발생했습니다.

를 사용하여 이 저장소에 대한 현재 공개 키를 얻을 수 없는 경우 apt-key설정에서 키가 있을 것으로 예상되는 위치를 조사해야 합니다. apt-key파일 시스템에 개별 키를 저장하기 위해 현재 사용이 단계적으로 중단되었습니다.

deb에서 이 저장소에 해당하는 항목을 찾으세요 /etc/apt. 이 deb항목 [signed-by=/usr/share/keyrings/<myrepository>-archive-keyring.gpg]에 이와 같은 항목이 있는 경우 현재 키를 사용하여 거기에 언급된 파일을 새로 고쳐야 합니다. 저장소 설명에 키를 다운로드하는 방법이 나와 있을 것입니다.

2)

update, 아닙니다 ; ) 또한 (또는 ) updata이라는 이름의 패키지가 없으므로 설치할 수 없습니다. 이것이 귀하의 시스템이 에서 알려주는 내용입니다 . 당신은 again의 체계를 조사하고 싶을 수도 있습니다 . 그래서 당신은 again과 같이 기본적으로 무의미한(공격적이지 않은) 일로 가지 않을 것입니다 .updateupdataE: Unable to locate package updataaptsudo apt-get install updata

삼)

다음을 제공하는 일부 저장소를 구성한 것 같습니다.일부필요하지만 필요하지 않은 패키지모두그들의. 예를 들어 를 설치하려고 하면 cpp-6추가로 가 필요합니다 gcc-6-base. cpp-6당신 의 버전에하다사용할 수 있는 경우 가 필요 gcc-6-base 6.2.0-3ubuntu11~12.04하지만 gcc-6-base 6.0.1-0ubuntu1.

4)

귀하의 질문에 대한 그의 의견에서 guiverc가 이미 언급했듯이 최소한일부꽤 오래된 소프트웨어. 보시 gcc-6-base다시피 설치하려는 패키지(있는 경우)는 Ubuntu 12.04용이므로 2012부터입니다.

전반적으로 기계를 봄철 대청소로 철저히 청소하고 싶을 수도 있습니다. 가능한 경우 로컬 Linux 사용자 그룹에서 누군가에게 직접 살펴보도록 요청하는 것이 도움이 될 수 있습니다. 궁극적으로 유지하려는 모든 데이터를 백업하고 새로 설치하는 것이 더 쉬울 수도 있습니다. 하지만 원격으로 결정하기는 쉽지 않습니다.

관련 정보