web-dev-qa-db-fra.com

Comment résoudre "dpkg: archive lors du traitement d'une erreur /var/cache/apt/archives/libvdpau1_1.1.1-3ubuntu1_AMD64.deb"

J'ai des problèmes avec le gestionnaire de mise à jour. L'installation normale me procure:

~$ Sudo apt-get install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
ffmpeg : Depends: libvdpau1 (>= 0.2) but it is not installed
mesa-vdpau-drivers : Depends: libvdpau1 but it is not installed
vdpau-va-driver : Depends: libvdpau1 (>= 0.2) but it is not installed
E: Unmet dependencies. Try using -f.

avec l'option recommandée:

~$ 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:
 libvdpau1
The following NEW packages will be installed:
 libvdpau1
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
6 not fully installed or removed.
Need to get 0 B/25,5 kB of archives.
After this operation, 100 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 235502 files and directories currently installed.)
Preparing to unpack .../libvdpau1_1.1.1-3ubuntu1_AMD64.deb ...
Unpacking libvdpau1:AMD64 (1.1.1-3ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libvdpau1_1.1.1-3ubuntu1_AMD64.deb (--unpack):
 trying to overwrite shared '/etc/vdpau_wrapper.cfg', which is different from other instances of package libvdpau1:AMD64
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libvdpau1_1.1.1-3ubuntu1_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Quelqu'un at-il une idée de ce que le problème pourrait être? J'ai essayé toutes les solutions à des problèmes similaires ici et aucune ne fonctionne.

1
EliteKaffee

-Retirez le fichier vdpau_wrapper.cfg et effectuez l'installation forcée.

Sudo rm -rf /etc/vdpau_wrapper.cfg

Sudo apt-get install -f 
1