mesa-common-dev: 충족되지 않은 종속성

mesa-common-dev: 충족되지 않은 종속성

설치하려고 하는데조리대 일반 개발우분투 LTS에서:

sudo apt-get 설치 mesa-common-dev

그러나 시스템은 다음을 반환합니다.

    The following packages have unmet dependencies:  
     mesa-common-dev : Depends: libgl-dev but it is not going to be installed
                       Depends: libglx-dev but it is not going to be installed
                       Depends: libglx-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

적절한 캐시 정책 mesa-common-dev

mesa-common-dev:
  Installed: (none)
  Candidate: 20.0.4-2ubuntu1
  Version table:
     20.0.4-2ubuntu1 500
        500 http://br.archive.ubuntu.com/ubuntu focal/main amd64 Packages

적절한 캐시 전략 libgl-dev

libgl-dev:
  Installed: 1.3.2-1~ubuntu0.20.04.1
  Candidate: 1.3.2-1~ubuntu0.20.04.1
  Version table:
 *** 1.3.2-1~ubuntu0.20.04.1 100
        100 /var/lib/dpkg/status
     1.3.1-1 500
        500 http://br.archive.ubuntu.com/ubuntu focal/main amd64 Packages

적절한 캐시 전략 libglx-dev

libglx-dev:
  Installed: 1.3.2-1~ubuntu0.20.04.1
  Candidate: 1.3.2-1~ubuntu0.20.04.1
  Version table:
 *** 1.3.2-1~ubuntu0.20.04.1 100
        100 /var/lib/dpkg/status
     1.3.1-1 500
        500 http://br.archive.ubuntu.com/ubuntu focal/main amd64 Packages

적절한 캐시 정책 libdrm-dev

libdrm-dev:
  Installed: (nenhum)
  Candidate: 2.4.101-2
  Version table:
     2.4.101-2 500
        500 http://br.archive.ubuntu.com/ubuntu focal/main amd64 Packages

매우 감사합니다



grep -Rn --include=*.list ^[^#] /etc/apt/

/etc/apt/sources.list:5:deb http://br.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:15:deb http://br.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:24:deb http://br.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list:42:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list:44:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list:46:deb http://security.ubuntu.com/ubuntu focal-security multiverse
/etc/apt/sources.list.d/google-chrome.list:3:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/opera-stable.list:4:deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
/etc/apt/sources.list.d/sublime-text.list:1:deb https://download.sublimetext.com/ apt/stable/
/etc/apt/sources.list.d/microsoft-edge-beta.list:3:deb [arch=amd64] http://packages.microsoft.com/repos/edge/ stable main


성공! ! 나는 다음을 추가한다:

http://archive.ubuntu.com/ubuntu포커스 업데이트 주요 제한된 우주 다중우주

내부에소스 목록문서.

도와 주셔서 감사합니다

답변1

focal-updates/etc/apt/sources.list문제를 해결하려면 다음 단계를 따르세요 .

echo "deb http://archive.ubuntu.com/ubuntu focal-updates main restricted  universe multiverse" |\
sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt install mesa-common-dev

관련 정보