저는 Debian Jessie 기반 배포판인 Crunchbang++에서 AMD R9 270을 사용하고 있습니다. AMD 드라이버를 설치하려면 업데이트된 커널이 필요합니다. 그래서 추측할 수 있듯이 source.list에서 "jessie"를 "stretch"로 변경했습니다. 현재 통합 그래픽으로 실행 중이지만. 이제 커널을 새 버전으로 업그레이드하려고 하면 Xorg를 제거해야 한다는 메시지가 나타납니다. 출력은 다음과 같습니다.
root@cbpp-maarten:/home/maarten/fglrx-15.302# apt-get install linux-headers-4.7.0-1-amd64 linux-image-4.7.0-1-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libboost-system1.55.0 libboost-thread1.55.0 libcamel-1.2-49 libdrm-amdgpu1
libebackend-1.2-7 libecal-1.2-16 libedataserver-1.2-18 libgdata-common
libgdata22 libgnutls30 libhogweed4 libical1a libimobiledevice6 libinput-bin
libinput10 libip4tc0 libjansson4 libnettle6 libnm0 libnma-common libnma0
liboauth0 libplist3 libprotobuf9 libreadline7 libseccomp2 libusbmuxd4
libuuid-perl libwacom-common libwacom2 libwebrtc-audio-processing-0
mate-power-manager-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
bash-completion binutils console-setup console-setup-linux cpp-5 dbus
evolution-data-server-common firmware-linux-free gcc-5 gcc-5-base gcc-6-base
init init-system-helpers irqbalance kbd keyboard-configuration klibc-utils
libabiword-3.0 libapparmor1 libasan2 libatomic1 libboost-atomic1.61.0
libboost-chrono1.61.0 libboost-date-time1.61.0 libboost-filesystem1.61.0
libboost-system1.61.0 libboost-thread1.61.0 libc-bin libc-dev-bin libc-l10n
libc6 libc6-dev libcamel-1.2-59 libcc1-0 libcilkrts5 libdbus-1-3
libdrm-amdgpu1 libdrm2 libebackend-1.2-10 libebook-1.2-16
libebook-contacts-1.2-2 libecal-1.2-19 libedata-book-1.2-25
libedataserver-1.2-22 libfdisk1 libfuse2 libgcc-5-dev libgcc1 libgcrypt20
libgdata-common libgdata22 libglib2.0-0 libgnutls30 libgomp1 libgphoto2-6
libgphoto2-port12 libgssapi-krb5-2 libhogweed4 libical2 libicu57
libimobiledevice6 libinput-bin libinput10 libip4tc0 libisl15 libitm1
libjansson4 libjson-c3 libk5crypto3 libklibc libkrb5-3 libkrb5support0
liblsan0 libltdl7 libmount1 libmpfr4 libmpx0 libmtp9 libncurses5
libncursesw5 libnettle6 libnm0 libnma-common libnma0 libnuma1 liboauth0
liborc-0.4-0 libp11-kit0 libphonenumber7 libplist3 libpng16-16 libprotobuf10
libpulse-mainloop-glib0 libpulse0 libpulsedsp libquadmath0 libreadline7
libseccomp2 libsepol1 libsmartcols1 libsoxr0 libssl1.0.2 libstdc++6
libtasn1-6 libtinfo5 libtsan0 libubsan0 libusbmuxd4 libwacom-common
libwacom2 libwebrtc-audio-processing1 libxkbcommon0 linux-base
linux-compiler-gcc-5-x86 linux-headers-4.7.0-1-common linux-kbuild-4.7
linux-libc-dev locales makedev mate-power-manager-common mount
p11-kit-modules pulseaudio pulseaudio-utils screen sysvinit-utils util-linux
xserver-common
Suggested packages:
binutils-doc gcc-5-locales gcc-5-multilib gcc-5-doc libgcc1-dbg libgomp1-dbg
libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg libtsan0-dbg
libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg glibc-doc
rng-tools gnutls-bin gphoto2 krb5-doc krb5-user libusbmuxd-tools
linux-doc-4.7 debian-kernel-handbook nfs-common pavumeter paman paprefs
byobu screenie iselect ncurses-term dosfstools
Recommended packages:
manpages-dev libglib2.0-data xdg-user-dirs libgphoto2-l10n usbmuxd
krb5-locales libmtp-runtime libwacom-bin rtkit
The following packages will be REMOVED:
cbpp-exit fuse fusesmb gvfs gvfs-backends gvfs-daemons gvfs-fuse
libboost-date-time1.55.0 libebook-1.2-14 libebook-contacts-1.2-0
libedata-book-1.2-20 libpam-systemd libphonenumber6 mate-power-manager
network-manager network-manager-gnome policykit-1 policykit-1-gnome sshfs
udisks udisks2 upower xorg xserver-xorg xserver-xorg-core
xserver-xorg-input-all xserver-xorg-input-evdev xserver-xorg-input-mouse
xserver-xorg-input-synaptics xserver-xorg-input-vmmouse
xserver-xorg-video-all xserver-xorg-video-ati xserver-xorg-video-cirrus
xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-mach64
xserver-xorg-video-mga xserver-xorg-video-modesetting
xserver-xorg-video-neomagic xserver-xorg-video-nouveau
xserver-xorg-video-openchrome xserver-xorg-video-r128
xserver-xorg-video-radeon xserver-xorg-video-savage
xserver-xorg-video-siliconmotion xserver-xorg-video-sisusb
xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa
xserver-xorg-video-vmware
The following NEW packages will be installed:
cpp-5 firmware-linux-free gcc-5 gcc-5-base gcc-6-base irqbalance
libapparmor1 libasan2 libboost-atomic1.61.0 libboost-chrono1.61.0
libboost-date-time1.61.0 libboost-filesystem1.61.0 libboost-system1.61.0
libboost-thread1.61.0 libc-l10n libcamel-1.2-59 libcc1-0 libdrm-amdgpu1
libebackend-1.2-10 libebook-1.2-16 libebook-contacts-1.2-2 libecal-1.2-19
libedata-book-1.2-25 libedataserver-1.2-22 libfdisk1 libgcc-5-dev
libgdata-common libgdata22 libgnutls30 libgphoto2-port12 libhogweed4
libical2 libicu57 libimobiledevice6 libinput-bin libinput10 libip4tc0
libisl15 libjansson4 libjson-c3 libmpx0 libnettle6 libnm0 libnma-common
libnma0 libnuma1 liboauth0 libphonenumber7 libplist3 libpng16-16
libprotobuf10 libreadline7 libseccomp2 libsoxr0 libssl1.0.2 libusbmuxd4
libwacom-common libwacom2 libwebrtc-audio-processing1
linux-compiler-gcc-5-x86 linux-headers-4.7.0-1-amd64
linux-headers-4.7.0-1-common linux-image-4.7.0-1-amd64 linux-kbuild-4.7
makedev
The following packages will be upgraded:
bash-completion binutils console-setup console-setup-linux dbus
evolution-data-server-common init init-system-helpers kbd
keyboard-configuration klibc-utils libabiword-3.0 libatomic1 libc-bin
libc-dev-bin libc6 libc6-dev libcilkrts5 libdbus-1-3 libdrm2 libfuse2
libgcc1 libgcrypt20 libglib2.0-0 libgomp1 libgphoto2-6 libgssapi-krb5-2
libitm1 libk5crypto3 libklibc libkrb5-3 libkrb5support0 liblsan0 libltdl7
libmount1 libmpfr4 libmtp9 libncurses5 libncursesw5 liborc-0.4-0 libp11-kit0
libpulse-mainloop-glib0 libpulse0 libpulsedsp libquadmath0 libsepol1
libsmartcols1 libstdc++6 libtasn1-6 libtinfo5 libtsan0 libubsan0
libxkbcommon0 linux-base linux-libc-dev locales mate-power-manager-common
mount p11-kit-modules pulseaudio pulseaudio-utils screen sysvinit-utils
util-linux xserver-common
65 upgraded, 65 newly installed, 50 to remove and 800 not upgraded.
Need to get 118 MB of archives.
After this operation, 292 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Xorg를 제거하려는 이유를 모르겠습니다. 왜 이런 일이 일어나는지 아는 사람이 있나요?
답변1
소스 코드를 스트레치로 전환했지만 커널 업그레이드를 시도하기 전에 나머지 OS를 업그레이드하지 않은 것 같습니다.
이 경우 linux-image-4.7.0-1-amd64 패키지는 xserver-xorg-input-vmmouse에 종속됩니다.
# apt-cache depends linux-image-4.7.0-1-amd64
...
Breaks: xserver-xorg-input-vmmouse
...
커널을 설치하려면 이 패키지를 완전히 제거해야 한다고 종속성 해결 프로그램에 통보되었습니다. 그러나 현재 이에 의존하는 다른 패키지가 있습니다.
# apt-cache rdepends xserver-xorg-input-vmmouse
xserver-xorg-input-vmmouse
Reverse Depends:
xserver-xorg-core
xserver-xorg-input-all
xserver-xorg-core
open-vm-tools-desktop
linux-image-4.7.0-1-amd64
linux-image-4.7.0-1-amd64-unsigned
이렇게 하면 apt-get dist-upgrade
이 패키지가 더 이상 사용되지 않기 때문에 제거되었음을 알 수 있습니다.데비안 버그 보고서 로그 - #831420
root@a6ce0d85df50:/# apt-get dist-upgrade
...
The following packages will be REMOVED:
xserver-xorg-input-vmmouse xserver-xorg-video-modesetting xserver-xorg-video-siliconmotion
xserver-xorg-* 패키지를 더 이상 vmmouse에 의존하지 않는 버전으로 업그레이드한 후 xorg를 제거하지 않고 새 커널이 정상적으로 설치되어야 합니다.
답변2
그래서 생각하는 대로 resources.list에서 "jessie"를 "stretch"로 변경했습니다.
아니요, 단지 커널을 업그레이드하기 위해 버전을 변경하지 마십시오. 생각보다 훨씬 더 광범위한 영향을 미칩니다.
커널을 업그레이드하는 가장 쉽고 안전한 방법은 다음을 사용하는 것입니다.제시 허리 이식.
먼저 Jessie로 되돌리고 sources.list
Jessie 백포트가 아직 없으면 저장소에 추가해야 합니다.
echo deb http://http.debian.net/debian jessie-backports main > /etc/apt/sources.list.d/jessie-backports.list
(루트로) 그런 다음
apt-get update
apt-get -t jessie-backports install linux-image-amd64
현재 기본 백포트 커널(이 글을 쓰는 시점의 4.7)이 설치됩니다.
백포트를 활성화하는 것이 안전합니다. 최신 패키지는 백포트에서 자동으로 선택되지 않으며 -t jessie-backports
위의 방법을 사용하여 명시적으로 선택해야 합니다(그러나 이 작업이 완료되면 업그레이드된 패키지에 대한 업데이트가 선택됩니다 apt-get upgrade
).