아무것도 설치하거나 업데이트할 수 없는 오류 코드를 어떻게 수정합니까?

아무것도 설치하거나 업데이트할 수 없는 오류 코드를 어떻게 수정합니까?

업데이트하거나 설치하려고 할 때마다 표시되는 메시지는 다음과 같습니다.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libvdpau1
The following NEW packages will be installed:
  libvdpau1
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
298 not fully installed or removed.
Need to get 0 B/25.6 kB of archives.
After this operation, 109 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 162877 files and directories currently installed.)
Preparing to unpack .../libvdpau1_1.3-1ubuntu2_amd64.deb ...
Unpacking libvdpau1:amd64 (1.3-1ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/libvdpau1_1.3-1ubuntu2_am
d64.deb (--unpack):
 trying to overwrite shared '/etc/vdpau_wrapper.cfg', which is different from ot
her instances of package libvdpau1:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libvdpau1_1.3-1ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
```output of ls -la /etc/apt/sources.list.d/

답변1

이 시도:

sudo apt clean
sudo apt update
sudo apt install --reinstall libvdpau1
sudo apt --fix-broken install

설명:

  1. apt clean- 다운로드 패키지 캐시를 정리합니다. 이렇게 하면 패키지 파일이 다시 다운로드됩니다.
  2. apt update- 소프트웨어 패키지 목록을 저장하는 데이터베이스 업데이트
  3. apt install --reinstall libvdpau1libvdpau1문제를 일으키는 것으로 보이는 패키지를 다시 설치하세요.
  4. apt --fix-broken install- 손상된 종속성을 수정하려고 시도합니다.

답변2

나는 다음을 시도할 것이다:

sudo dpkg --configure -a

또한 libvdpau1을 일시적으로 제거하고 "dpkg --configure" 및 "apt --fix-broken"을 사용하여 모든 작업을 수행하려고 합니다. 다음을 사용하여 제거할 수 있습니다.

sudo dpkg -r --force-depends libvdpau1

이는 다른 항목이 제거되는 것을 방지하기 위한 것입니다. libvdpau1에 의존하는 패키지가 있지만 패키지 시스템이 이미 손상된 상태인 경우 이로 인해 패키지 시스템이 일시적으로 손상된 상태가 됩니다.

문제가 해결되면 다시 설치해 보세요.

릴리스 파일이 누락된 Gnome PPA에 대한 오류는 현재 문제와 관련이 없는 것 같습니다. 최신 버전(Focal)으로 업데이트한 후 PPA를 활성화했고 PPA가 해당 새 버전으로 구성되지 않았기 때문일 수 있습니다. 일반적으로 시스템의 필수적인 부분인 Gnome과 같은 것에 PPA를 사용하는 것은 좋은 생각이 아니지만 저는 의견이 다릅니다. /etc/apt/sources.list 및 /etc/apt/sources.list.d를 수정해야 합니다.

관련 정보