无法安装 xcb 包

无法安装 xcb 包

我尝试过sudo -f removeautoclean但我的新软件包和更新没有被下载。

admin@pop-os:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  avahi-utils lib32gcc-s1 lib32stdc++6 libasn1-8-heimdal libc6-i386
  libclang-common-6.0-dev libclang-common-7-dev libclang1-6.0 libclang1-7
  libegl-mesa0:i386 libegl1:i386 libfprint-2-tod1 libgbm1:i386 libgc1c2
  libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
  libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal libllvm6.0
  libllvm7 libnvidia-common-440-server libnvidia-decode-440-server
  libnvidia-encode-440-server libnvidia-extra-440-server
  libnvidia-fbc1-440-server libnvidia-gl-440-server libnvidia-glcore
  libnvidia-ifr1-440-server libomp-10-dev libomp-dev libomp5-10
  libroken18-heimdal libwayland-server0:i386 libwind0-heimdal
  libxcb-xfixes0:i386 libxnvctrl0 llvm-6.0 llvm-6.0-dev llvm-6.0-runtime
  llvm-7 llvm-7-dev llvm-7-runtime nvidia-compute-utils-440-server
  nvidia-dkms-440-server nvidia-kernel-common-440-server
  nvidia-kernel-source-440-server nvidia-settings nvidia-support
  nvidia-utils-440-server screen-resolution-extra xserver-xorg-video-nvidia
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libxcb-xfixes0:i386

The following NEW packages will be installed:
  libxcb-xfixes0:i386
0 upgraded, 1 newly installed, 0 to remove and 1171 not upgraded.
3 not fully installed or removed.
Need to get 0 B/105 kB of archives.
After this operation, 148 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 315734 files and directories currently installed.)
Preparing to unpack .../libxcb-xfixes0_1.14-2_i386.deb ...
Unpacking libxcb-xfixes0:i386 (1.14-2) ...
dpkg: error processing archive /var/cache/apt/archives/libxcb-xfixes0_1.14-2_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libxcb-xfixes0/changelog.Debian.gz', which is different from other instances of package libxcb-xfixes0:i386
Errors were encountered while processing:
 /var/cache/apt/archives/libxcb-xfixes0_1.14-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

您似乎混合了 i386 和 amd64 软件包。我实际上会尝试相反的做法

apt-get 删除 libxcb-xfixes0:i386

libxcb-xfixes0:i386这可能会尝试撤消它正在尝试执行的半安装操作。我猜这是一个 x86-64 系统,您已经安装了 libxcb-xfixes0,并且 libxcb-xfixes0:i386 和 libxcb-xfixes0 在 '/usr/share/doc/libxcb-xfixes0/changelog.Debian.gz' 上发生冲突(也许 libxcb-xfixes0 不是最新版本?)

如果上述方法不能解决问题,请尝试列出拥有发生冲突的文件的包:

dpkg -S /usr/share/doc/libxcb-xfixes0/changelog.Debian.gz

相关内容