在 Xubuntu 19.10 64 位上安装 libgtk2.0-0 时出错(已解决)

在 Xubuntu 19.10 64 位上安装 libgtk2.0-0 时出错(已解决)

我正在尝试在 Xubuntu 16.04 上安装 64 位的 BricsCAD v13,但它有几个未解决的 32 位依赖项。除了 libgtk2.0-0:i386 之外,我能够解决所有问题。

为了安装它,我首先运行以下命令来处理 32 位包:

sudo dpkg --add-architecture i386

sudo apt-get update

然后我尝试使用以下命令安装该包:

sudo apt-get install libgtk2.0-0:i386

但终端返回以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libatk1.0-0:i386 libgail-common:i386 libgail18:i386
Suggested packages:
  gvfs:i386
The following NEW packages will be installed:
  libatk1.0-0:i386 libgail-common:i386 libgail18:i386 libgtk2.0-0:i386
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/2.101 kB of archives.
After this operation, 7.635 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package libatk1.0-0:i386.
(Reading database ... 227989 files and directories currently installed.)
Preparing to unpack .../libatk1.0-0_2.34.0-1_i386.deb ...
Unpacking libatk1.0-0:i386 (2.34.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/libatk1.0-0_2.34.0-1_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libatk1.0-0/changelog.Debian.gz', which is different from other instances of package libatk1.0-0:i386
Preparing to unpack .../libgtk2.0-0_2.24.32-4ubuntu1_i386.deb ...
Unpacking libgtk2.0-0:i386 (2.24.32-4ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libgtk2.0-0_2.24.32-4ubuntu1_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libgtk2.0-0/changelog.Debian.gz', which is different from other instances of package libgtk2.0-0:i386
Selecting previously unselected package libgail18:i386.
Preparing to unpack .../libgail18_2.24.32-4ubuntu1_i386.deb ...
Unpacking libgail18:i386 (2.24.32-4ubuntu1) ...
Selecting previously unselected package libgail-common:i386.
Preparing to unpack .../libgail-common_2.24.32-4ubuntu1_i386.deb ...
Unpacking libgail-common:i386 (2.24.32-4ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libatk1.0-0_2.34.0-1_i386.deb
 /var/cache/apt/archives/libgtk2.0-0_2.24.32-4ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我知道如何恢复正常,以便软件包系统再次正确。但我希望能够安装所述软件包的 32 位版本,以便能够安装 BricsCAD v13,但系统似乎与在两种架构中拥有相同的软件包相冲突。

感谢您的帮助

答案1

从错误消息中可以看出,文件冲突仅针对文档文件。

因此,您可以使用以下命令强制安装这两个包:

sudo dpkg -i --force-all /var/cache/apt/archives/libatk1.0-0_2.34.0-1_i386.deb
sudo dpkg -i --force-all  /var/cache/apt/archives/libgtk2.0-0_2.24.32-4ubuntu1_i386.deb

最后运行

sudo apt-get install -f
sudo dpkg-configure -a

把所有的事情都解决好。

相关内容