잘못된 amdgpu 드라이버가 설치되어 제거할 수 없습니다.

잘못된 amdgpu 드라이버가 설치되어 제거할 수 없습니다.

나는 우분투 16.04에 해당하는 리눅스 민트를 가지고 있습니다. amd 드라이버를 설치하기 위해 그래픽 카드를 바꾸고 nvidia 드라이버를 제거했는데 16이 아닌 ubuntu 18.04용 드라이버를 설치했는데 이제는 제거하거나 다른 것을 설치하거나 업그레이드할 수 없습니다.

입력할 때: #amdgpu-pro-uninstall

noik@noik-mint ~ $ amdgpu-pro-uninstall 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'amdgpu-core' is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 amdgpu : Depends: amdgpu-core (= 18.40-673869) but it is not going to be installed
 amdgpu-dkms : Depends: amdgpu-core but it is not going to be installed
 amdgpu-pro-core : Depends: amdgpu-core but it is not going to be installed
 glamor-amdgpu : Depends: amdgpu-core but it is not going to be installed
 gst-omx-amdgpu : Depends: amdgpu-core but it is not going to be installed
 libdrm-amdgpu-common : Depends: amdgpu-core but it is not going to be installed
 libdrm2-amdgpu : Depends: amdgpu-core but it is not going to be installed
 libdrm2-amdgpu:i386 : Depends: amdgpu-core:i386
 libegl1-amdgpu-mesa : Depends: amdgpu-core but it is not going to be installed
 libegl1-amdgpu-mesa:i386 : Depends: amdgpu-core:i386
 libgbm1-amdgpu : Depends: amdgpu-core but it is not going to be installed
 libgbm1-amdgpu:i386 : Depends: amdgpu-core:i386
 libgl1-amdgpu-mesa-dri : Depends: amdgpu-core but it is not going to be installed
 libgl1-amdgpu-mesa-dri:i386 : Depends: amdgpu-core:i386
 libglapi-amdgpu-mesa : Depends: amdgpu-core but it is not going to be installed
 libglapi-amdgpu-mesa:i386 : Depends: amdgpu-core:i386
 libllvm6.0-amdgpu : Depends: amdgpu-core but it is not going to be installed
 libllvm6.0-amdgpu:i386 : Depends: amdgpu-core:i386
 libwayland-amdgpu-client0 : Depends: amdgpu-core but it is not going to be installed
 libwayland-amdgpu-client0:i386 : Depends: amdgpu-core:i386
 libwayland-amdgpu-server0 : Depends: amdgpu-core but it is not going to be installed
 libwayland-amdgpu-server0:i386 : Depends: amdgpu-core:i386
 mesa-amdgpu-va-drivers : Depends: amdgpu-core but it is not going to be installed
 mesa-amdgpu-va-drivers:i386 : Depends: amdgpu-core:i386
 mesa-amdgpu-vdpau-drivers : Depends: amdgpu-core but it is not going to be installed
 mesa-amdgpu-vdpau-drivers:i386 : Depends: amdgpu-core:i386
 xserver-xorg-amdgpu-video-amdgpu : Depends: amdgpu-core but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

그런 다음 다음을 사용해 보았습니다. # sudo apt-get -f install

noik@noik-mint ~ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  amdgpu-core
The following NEW packages will be installed:
  amdgpu-core
0 upgraded, 1 newly installed, 0 to remove and 99 not upgraded.
64 not fully installed or removed.
Need to get 0 B/2.284 B of archives.
After this operation, 12,3 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/var/opt/amdgpu-pro-local ./ amdgpu-core 18.40-673869 [2.284 B]
(Reading database ... 290174 files and directories currently installed.)
Preparing to unpack .../amdgpu-core_18.40-673869_all.deb ...
ERROR: This package can only be installed on Ubuntu 16.04.
dpkg: error processing archive /var/opt/amdgpu-pro-local/./amdgpu-core_18.40-673869_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/opt/amdgpu-pro-local/./amdgpu-core_18.40-673869_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get purge amd*를 입력하거나 sudo apt-get autoremove를 입력하면 amdgpu-pro-uninstall 업그레이드와 동일한 결과를 얻습니다.

또 무엇을 할 수 있나요?

답변1

명령으로는 해결할 수 없었고, Synaptic Package Manager로 해결했고, 손상된 패키지로 필터링하고 "완전 제거로 표시"했습니다.

답변2

제 경우에는 제거가 sudo amdgpu-uninstall.

관련 정보