无法在 ubuntu 软件中心获取新软件

无法在 ubuntu 软件中心获取新软件

我最近从软件中心购买了适用于 ubuntu 的 whatsapp,但当我尝试安装它时出现了这个屏幕。

https://i.stack.imgur.com/yX8DK.jpg <--- 屏幕截图无法安装新软件,因为当前安装的软件有问题,您想现在修复此问题吗?

所以我单击修复按钮,它要求使用我的 ubuntu 密码进行身份验证,然后输入并输入。

说包操作失败安装或包删除失败

详情如下...

installArchives() failed: (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 418136 files and directories currently installed.)
Preparing to unpack .../libstdc++6-arm64-cross_4.8.4-2ubuntu1~14.04.1cross0.11.1_all.deb ...
Unpacking libstdc++6-arm64-cross (4.8.4-2ubuntu1~14.04.1cross0.11.1) over (4.8.2-13ubuntu1cross0.11) ...
dpkg: error processing archive /var/cache/apt/archives/libstdc++6-arm64-cross_4.8.4-2ubuntu1~14.04.1cross0.11.1_all.deb (--unpack):
 trying to overwrite '/usr/share/gcc-4.8/python/libstdcxx/__init__.py', which is also in package libstdc++6:amd64 4.8.4-2ubuntu1~14.04.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libstdc++6-arm64-cross_4.8.4-2ubuntu1~14.04.1cross0.11.1_all.deb
Error in function: 
dpkg: dependency problems prevent configuration of libstdc++-4.8-dev-arm64-cross:
 libstdc++-4.8-dev-arm64-cross depends on libstdc++6-arm64-cross (>= 4.8.4-2ubuntu1~14.04.1cross0.11.1); however:
  Version of libstdc++6-arm64-cross on system is 4.8.2-13ubuntu1cross0.11.

dpkg: error processing package libstdc++-4.8-dev-arm64-cross (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libstdc++6-4.8-dbg-arm64-cross:
 libstdc++6-4.8-dbg-arm64-cross depends on libstdc++6-arm64-cross (>= 4.8.4-2ubuntu1~14.04.1cross0.11.1); however:
  Version of libstdc++6-arm64-cross on system is 4.8.2-13ubuntu1cross0.11.

dpkg: error processing package libstdc++6-4.8-dbg-arm64-cross (--configure):
 dependency problems - leaving unconfigured

我不知道如何解决这个问题,因为我对 ubuntu 还很陌生,任何帮助都会受到欢迎。

提前致谢。

答案1

发生这种情况的原因似乎是已安装的软件包具有依赖项,这些依赖项可能与您尝试安装的软件包的依赖项相冲突。我遇到过这种情况,我在论坛上搜索过,建议逐步尝试解决问题,每次都比前一步更积极,如果无法解决问题,则继续下一步……

步骤1)

sudo apt-get update
sudo apt-get upgrade

这可能会失败

第2步)

sudo apt-get -f install

这也可能会失败。

步骤3)

sudo apt-get remove --purge  libstdc++-4.8-dev-arm64-cross

这将尝试删除有问题的包,但通常会创建另一条消息,例如

   ..
   The following packages have unmet dependencies.
   dkms : Depends: gcc but it is not going to be installed
   g++-multilib : Depends: g++ (>= 4:4.8.2-1ubuntu6) but it is not going to be installed

只需重复上述命令,添加具有未满足依赖关系的内容即可

sudo apt-get remove libstdc++-4.8-dev-arm64-cross dkms  g++-multilib 

并继续操作直到删除成功。然后您可以按照步骤 1 进行升级和更新,并重新安装所需的内容。

相关内容