![freeglut3-dev를 처음 설치할 때 다음과 같은 문제가 발생하는 이유는 무엇이며 어떻게 다르게 해야 합니까?](https://linux55.com/image/162672/freeglut3-dev%EB%A5%BC%20%EC%B2%98%EC%9D%8C%20%EC%84%A4%EC%B9%98%ED%95%A0%20%EB%95%8C%20%EB%8B%A4%EC%9D%8C%EA%B3%BC%20%EA%B0%99%EC%9D%80%20%EB%AC%B8%EC%A0%9C%EA%B0%80%20%EB%B0%9C%EC%83%9D%ED%95%98%EB%8A%94%20%EC%9D%B4%EC%9C%A0%EB%8A%94%20%EB%AC%B4%EC%97%87%EC%9D%B4%EB%A9%B0%20%EC%96%B4%EB%96%BB%EA%B2%8C%20%EB%8B%A4%EB%A5%B4%EA%B2%8C%20%ED%95%B4%EC%95%BC%20%ED%95%A9%EB%8B%88%EA%B9%8C%3F.png)
freeglut3-dev를 설치하는 동안 다음 문제가 발생했습니다. 처음에 왜 이 문제가 발생하는지, 그리고 다르게 해야 하는지 궁금합니다.
이것은 데비안 9.11이고 source.list는 이 질문의 맨 아래에 있습니다.
# apt-get install freeglut3-dev
The following packages have unmet dependencies:
freeglut3-dev : Depends: libgl1-mesa-dev but it is not going to be installed or
libgl-dev
Depends: libglu1-mesa-dev but it is not going to be installed or
libglu-dev
E: Unable to correct problems, you have held broken packages.
그래서 나는 내 문제가 무엇인지 알아보기로 결정했습니다.
# apt-get install libgl1-mesa-dev
The following packages have unmet dependencies:
libgl1-mesa-dev : Depends: mesa-common-dev (= 13.0.6-1+b2) but it is not going to be installed
Depends: libdrm-dev (>= 2.4.69) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# apt-get install mesa-common-dev
The following packages have unmet dependencies:
mesa-common-dev : Depends: libdrm-dev (>= 2.4.65) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# apt-get install libdrm-dev
The following packages have unmet dependencies:
libdrm-dev : Depends: libdrm2 (= 2.4.74-1) but 2.4.95-1~bpo9+1 is to be installed
E: Unable to correct problems, you have held broken packages.
# apt-get install libdrm2
libdrm2 is already the newest version (2.4.95-1~bpo9+1)
그래서 이것을 설치했습니다.
이전 버전을 수동으로 설치해 보았습니다.
먼저, 이전 버전을 사용할 수 있나요?
# apt-cache policy libdrm2
libdrm2:
Installed: 2.4.95-1~bpo9+1
Candidate: 2.4.95-1~bpo9+1
Version table:
*** 2.4.95-1~bpo9+1 100
100 /var/lib/dpkg/status
2.4.74-1 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
이렇게 생겼습니다. 그것을 가져와.
# apt-get install libdrm2=2.4.74-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
audacious-plugins-data compton-conf-l10n libaudcore3 libaudgui3 libaudtag2
libc-ares2 libcddb2 libcue1 libdouble-conversion1 libdrm-common libevdev2
libfluidsynth1 libglvnd0 libguess1 libinput-bin libinput10 libmaxminddb0
libmms0 libmodplug1 libmtdev1 libneon27-gnutls libpcre16-3 libqt5core5a
libqt5dbus5 libqt5network5 libsbc1 libsdl-ttf2.0-0 libsdl2-2.0-0
libsidplayfp4 libsmi2ldbl libspandsp2 libwacom-bin libwacom-common libwacom2
libwayland-server0 libwireshark-data libwireshark11 libwiretap8 libwscodecs2
libwsutil9 libxatracker2 libxcb-icccm4 libxcb-image0 libxcb-keysyms1
libxcb-randr0 libxcb-render-util0 libxcb-xfixes0 libxcb-xinerama0
libxcb-xkb1 libxfont2 libxkbcommon-x11-0 qttranslations5-l10n
wireshark-common x11-apps x11-session-utils xfonts-100dpi xfonts-75dpi
xfonts-base xfonts-scalable xinit xserver-common xserver-xorg-legacy
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
audacious audacious-plugins compton-conf libaudqt0 libegl-mesa0 libegl1
libegl1-mesa libgbm1 libqgsttools-p1 libqt5gui5 libqt5multimedia5
libqt5multimedia5-plugins libqt5multimediawidgets5 libqt5opengl5
libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5
libwayland-egl1-mesa qt5-gtk-platformtheme virtualbox-5.2 wireshark
wireshark-qt xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all
xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-video-all
xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev
xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-video-qxl
xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
The following packages will be DOWNGRADED:
libdrm2
0 upgraded, 0 newly installed, 1 downgraded, 39 to remove and 0 not upgraded.
Need to get 36.2 kB of archives.
After this operation, 209 MB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian stretch/main amd64 libdrm2 amd64 2.4.74-1 [36.2 kB]
Fetched 36.2 kB in 0s (153 kB/s)
(Reading database ... 336865 files and directories currently installed.)
Removing audacious (3.7.2-1+b1) ...
Removing audacious-plugins:amd64 (3.7.2-2.1) ...
Removing compton-conf (0.2.1-2) ...
Removing libaudqt0:amd64 (3.7.2-1+b1) ...
Removing xorg (1:7.7+19) ...
Removing xserver-xorg (1:7.7+19) ...
Removing xserver-xorg-video-all (1:7.7+19) ...
Removing xserver-xorg-video-vmware (1:13.2.1-1+b1) ...
Removing xserver-xorg-video-vesa (1:2.3.4-1+b2) ...
Removing xserver-xorg-input-all (1:7.7+19) ...
Removing xserver-xorg-input-libinput (0.23.0-2) ...
Removing xserver-xorg-video-qxl (0.1.4+20161126git4d7160c-1) ...
Removing xserver-xorg-video-nouveau (1:1.0.13-3) ...
Removing xserver-xorg-input-wacom (0.34.0-1) ...
Removing virtualbox-5.2 (5.2.34-133893~Debian~stretch) ...
Removing libwayland-egl1-mesa:amd64 (18.2.8-2~bpo9+1) ...
Removing xserver-xorg-video-amdgpu (1.2.0-1+b1) ...
Removing libqt5multimedia5-plugins:amd64 (5.7.1~20161021-2) ...
Removing libqgsttools-p1:amd64 (5.7.1~20161021-2) ...
Removing wireshark (2.6.7-1~deb9u1) ...
Removing wireshark-qt (2.6.7-1~deb9u1) ...
Removing libqt5multimediawidgets5:amd64 (5.7.1~20161021-2) ...
Removing libqt5multimedia5:amd64 (5.7.1~20161021-2) ...
Removing libqt5opengl5:amd64 (5.7.1+dfsg-3+deb9u1) ...
Removing libqt5printsupport5:amd64 (5.7.1+dfsg-3+deb9u1) ...
Removing libqt5svg5:amd64 (5.7.1~20161021-2+b2) ...
Removing libqt5widgets5:amd64 (5.7.1+dfsg-3+deb9u1) ...
Removing libqt5x11extras5:amd64 (5.7.1~20161021-2) ...
Removing qt5-gtk-platformtheme:amd64 (5.7.1+dfsg-3+deb9u1) ...
Removing xserver-xorg-video-ati (1:7.8.0-1+b1) ...
Removing xserver-xorg-video-fbdev (1:0.4.4-1+b5) ...
Removing xserver-xorg-video-intel (2:2.99.917+git20161206-1) ...
Removing xserver-xorg-video-radeon (1:7.8.0-1+b1) ...
Removing xserver-xorg-core (2:1.19.2-1+deb9u5) ...
Removing libqt5gui5:amd64 (5.7.1+dfsg-3+deb9u1) ...
Removing libegl1-mesa:amd64 (18.2.8-2~bpo9+1) ...
Removing libegl1:amd64 (1.1.0-1~bpo9+1) ...
Removing libegl-mesa0:amd64 (18.2.8-2~bpo9+1) ...
Removing libgbm1:amd64 (18.2.8-2~bpo9+1) ...
dpkg: warning: downgrading libdrm2:amd64 from 2.4.95-1~bpo9+1 to 2.4.74-1
(Reading database ... 335466 files and directories currently installed.)
Preparing to unpack .../libdrm2_2.4.74-1_amd64.deb ...
Unpacking libdrm2:amd64 (2.4.74-1) over (2.4.95-1~bpo9+1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Setting up libdrm2:amd64 (2.4.74-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for shared-mime-info (1.8-1+deb9u1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for glx-alternative-mesa (0.8.8~deb9u2) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/mesa-diverted because link group glx is broken
update-alternatives: warning: skip creation of /usr/lib/x86_64-linux-gnu/libEGL.so.1 because associated file /usr/lib/mesa-diverted/x86_64-linux-gnu/libEGL.so.1 (of link group glx) doesn't exist
Processing triggers for hicolor-icon-theme (0.15-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
좋아요, 그러면 재설치 없이 이 모든 패키지를 제거하고 그 중 일부는 매우 중요한 패키지를 제거합니까? 이것은 내가 역사에서 적절한 것을 찾아보았을 때 확인되었습니다.
수동으로 설치하고 그 과정에서 libdrm2를 업그레이드하지 않기를 바랍니다...
# apt-get install audacious-plugins-data compton-conf-l10n libaudcore3 libaudgui3 libaudtag2 libc-ares2 libcddb2 libcue1 libdouble-conversion1 libdrm-common libevdev2 libfluidsynth1 libglvnd0 libguess1 libinput-bin libinput10 libmaxminddb0 libmms0 libmodplug1 libmtdev1 libneon27-gnutls libpcre16-3 libqt5core5a libqt5dbus5 libqt5network5 libsbc1 libsdl-ttf2.0-0 libsdl2-2.0-0 libsidplayfp4 libsmi2ldbl libspandsp2 libwacom-bin libwacom-common libwacom2 libwayland-server0 libwireshark-data libwireshark11 libwiretap8 libwscodecs2 libwsutil9 libxatracker2 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 libxfont2 libxkbcommon-x11-0 qttranslations5-l10n wireshark-common x11-apps x11-session-utils xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xinit xserver-common xserver-xorg-legacy
그러나 지금은 이것이 최신 버전이라고 들었습니다.
이 시점에서는 무슨 일이 일어나고 있는지 잘 모르겠습니다.
어쨌든, 이제 freeglut3-dev를 설치할 수 있고 더 이상 불평하지 않습니다.
내가 무엇을 하고 있는지 잘 모르겠고 시스템이 거의 손상될 뻔했을 수도 있습니다.
내 소스 목록:
deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free
# stretch-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free
# Virtualbox
deb http://download.virtualbox.org/virtualbox/debian stretch contrib non-free
답변1
이것이 문제의 원인입니다:
# apt-cache policy libdrm2
libdrm2:
Installed: 2.4.95-1~bpo9+1
Candidate: 2.4.95-1~bpo9+1
Version table:
*** 2.4.95-1~bpo9+1 100
100 /var/lib/dpkg/status
2.4.74-1 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
이는 libdrm2
어느 시점에서 Stretch 백포트에서 설치했으며 백포트가 더 이상 리포지토리에 구성되지 않음을 나타냅니다.
당신이 달릴 때
apt-get install libdrm2=2.4.74-1
apt-get
다운그레이드를 요청하셨습니다 libdrm2
. 이 경우 apt-get
종속 패키지는 자체적으로 다운그레이드되지 않으며 생성된 종속성을 확인합니다.삭제종속성이 더 이상 충족되지 않는 패키지입니다. 이 경우 백포트에서 설치한 다른 패키지와 libdrm2
2.4.74 이상의 버전에 대한 종속성은 제거됩니다 libegl1
. 이러한 패키지에 의존하는 패키지도 제거됩니다 xserver-xorg-core
. 종속성이 충족되지 않은 패키지가 없을 때까지 프로세스가 계속됩니다...
시스템이 손상되지 않았습니다. 그렇게 하려면 추가 확인이 필요합니다. apt-get install
현재 자동 제거 후보인 패키지 목록을 제공했기 때문에 특별히 유용한 작업은 없습니다. 해당 패키지는 여전히 설치되어 있습니다 . 제거를 취소하려면 제거된 패키지를 설치해야 합니다.
The following packages will be REMOVED:
audacious audacious-plugins compton-conf libaudqt0 libegl-mesa0 libegl1
libegl1-mesa libgbm1 libqgsttools-p1 libqt5gui5 libqt5multimedia5
libqt5multimedia5-plugins libqt5multimediawidgets5 libqt5opengl5
libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5
libwayland-egl1-mesa qt5-gtk-platformtheme virtualbox-5.2 wireshark
wireshark-qt xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all
xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-video-all
xserver-xorg-video-amdgpu xserver-xorg-video-ati xserver-xorg-video-fbdev
xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-video-qxl
xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware