AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 780184
Accepted
linuxlife
linuxlife
Asked: 2024-07-15 23:00:19 +0800 CST2024-07-15 23:00:19 +0800 CST 2024-07-15 23:00:19 +0800 CST

安装 libstdc++6 后未满足的依赖项和损坏的软件包

  • 772

当我尝试在 vesktop 上使用带音频的屏幕共享时,应用程序出现一条错误,提示“您的 c++ 库太旧,无法运行 venmic”,这促使我尝试更新它。

我遵循以下步骤:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install --only-upgrade libstdc++6

之后我也立即通过软件管理器更新了我的 gcc。

从这些命令中删除的软件包是:

intel-media-va-driver:i386 libgl1:i386 libgl1-mesa-dri:i386
  libglx-mesa0:i386 libglx0:i386 libicu70:i386 libigdgmm12:i386 libllvm15:i386
  libnvidia-fbc1-535:i386 libstdc++6:i386 libva-glx2:i386 libxml2:i386
  mesa-va-drivers:i386 mesa-vulkan-drivers:i386 steam:i386
  steam-libs-i386:i386 va-driver-all:i386

我没怎么在意,因为它正在被其他库替换,遗憾的是我不记得是哪些库,尽管我没有注意到“nvidia-firmware”或“steam-devices”包。我还认为事后撤消此过程会很简单,所以我继续这样做。Vesktop 事后可以运行,但其他一些应用程序却无法运行,因此我尝试通过重新安装所有已删除的应用程序来撤消它,假设它会删除 libstdc++6 并将其替换为另一个。以下是发生的事情:

sudo apt install intel-media-va-driver:i386 libgl1:i386 libgl1-mesa-dri:i386
  libglx-mesa0:i386 libglx0:i386 libicu70:i386 libigdgmm12:i386 libllvm15:i386
  libnvidia-fbc1-535:i386 libstdc++6:i386 libva-glx2:i386 libxml2:i386
  mesa-va-drivers:i386 mesa-vulkan-drivers:i386 steam:i386
  steam-libs-i386:i386 va-driver-all:i386
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 intel-media-va-driver:i386 : Depends: libstdc++6:i386 (>= 11) but it is not going to be installed
 libgl1-mesa-dri:i386 : Depends: libstdc++6:i386 (>= 11) but it is not going to be installed
                        Recommends: libgl1-amber-dri:i386 but it is not installable
 libicu70:i386 : Depends: libstdc++6:i386 (>= 5.2) but it is not going to be installed
 libigdgmm12:i386 : Depends: libstdc++6:i386 (>= 4.1.1) but it is not going to be installed
 libllvm15:i386 : Depends: libstdc++6:i386 (>= 12) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
libglx-mesa0:i386: command not found
libnvidia-fbc1-535:i386: command not found
mesa-va-drivers:i386: command not found
steam-libs-i386:i386: command not found

我尝试删除 libstdc++6 包,看看它是否会被其他包替换,结果得到了这个:

sudo apt-get remove libstdc++6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apt : Depends: libapt-pkg6.0 (>= 2.4.12) but it is not going to be installed
       Depends: libstdc++6 (>= 11) but it is not going to be installed
 mintsources : Depends: python3-apt but it is not going to be installed
               Depends: python3-gi but it is not going to be installed
               Depends: python3-gi-cairo but it is not going to be installed
               Depends: python3-pycurl but it is not going to be installed
               Depends: python3-requests but it is not going to be installed
               Depends: mint-common (>= 2) but it is not going to be installed
               Depends: gir1.2-gdkpixbuf-2.0 but it is not going to be installed
               Depends: gir1.2-gtk-3.0 but it is not going to be installed
               Depends: gir1.2-vte-2.91 but it is not going to be installed
               Depends: gir1.2-xapp-1.0 but it is not going to be installed
               Depends: lsb-release but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我尝试安装 libstdc++6:i386,但发生了以下情况:

sudo apt install libstdc++6:i386           
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apt : Depends: libapt-pkg6.0 (>= 2.4.12) but it is not going to be installed
       Depends: libstdc++6 (>= 11) but it is not installable
 mintsources : Depends: python3-apt but it is not going to be installed
               Depends: python3-gi but it is not going to be installed
               Depends: python3-gi-cairo but it is not going to be installed
               Depends: python3-pycurl but it is not going to be installed
               Depends: python3-requests but it is not going to be installed
               Depends: mint-common (>= 2) but it is not going to be installed
               Depends: gir1.2-gdkpixbuf-2.0 but it is not going to be installed
               Depends: gir1.2-gtk-3.0 but it is not going to be installed
               Depends: gir1.2-vte-2.91 but it is not going to be installed
               Depends: gir1.2-xapp-1.0 but it is not going to be installed
               Depends: lsb-release but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我尝试修复损坏的软件包并得到以下结果:

sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  i965-va-driver:i386 libatomic1:i386 libbrotli1:i386 libdrm-amdgpu1:i386
  libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libedit2:i386
  libelf1:i386 libfontconfig1:i386 libfreetype6:i386 libglib2.0-0:i386
  libgnutls30:i386 libhogweed6:i386 libnettle8:i386 libnm0:i386
  libp11-kit0:i386 libpciaccess0:i386 libpng16-16:i386 libsensors5:i386
  libtasn1-6:i386 libva-drm2:i386 libva-x11-2:i386 libva2:i386 libvulkan1:i386
  libxcb-glx0:i386 libxcb-shm0:i386 libxfixes3:i386 libxi6:i386
  libxinerama1:i386 libxss1:i386 libxxf86vm1:i386
  nvidia-firmware-535-535.171.04 steam-devices
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.

然后我注意到 Steam 从我的应用程序中消失了,当我尝试再次安装它时,我也遇到了一个错误:

The following packages have unmet dependencies:
  apt: Depends: libapt-pkg6.0 (>= 2.4.12) but it is not going to be installed
       Depends: libstdc++6 (>= 11) but it is not installable
  mintsources: Depends: python3-apt but it is not going to be installed
               Depends: python3-gi but it is not going to be installed
               Depends: python3-gi-cairo but it is not going to be installed
               Depends: python3-pycurl but it is not going to be installed
               Depends: python3-requests but it is not going to be installed
               Depends: mint-common (>= 2) but it is not going to be installed
               Depends: gir1.2-gdkpixbuf-2.0 but it is not going to be installed
               Depends: gir1.2-gtk-3.0 but it is not going to be installed
               Depends: gir1.2-vte-2.91 but it is not going to be installed
               Depends: gir1.2-xapp-1.0 but it is not going to be installed
               Depends: lsb-release but it is not going to be installed

那么发生了什么,我该怎么办?我以前从未遇到过这个问题,而且我以前也使用过外部存储库。autoremove由于担心会进一步破坏系统,我没有运行该命令,但似乎这些软件包是导致问题的原因。我正在运行 Linux Mint 21.1,我不确定哪个 c++ 库适合这个系统,我只是想让一切恢复原样。

libstdc++6 和 libstdc++6:i386 的 apt 策略命令:

apt policy libstdc++6 libstdc++6:i386
libstdc++6:
  Installed: 13.1.0-8ubuntu1~22.04
  Candidate: 13.1.0-8ubuntu1~22.04
  Version table:
 *** 13.1.0-8ubuntu1~22.04 100
        100 /var/lib/dpkg/status
     12.3.0-1ubuntu1~22.04 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     12-20220319-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
libstdc++6:i386:
  Installed: (none)
  Candidate: 12.3.0-1ubuntu1~22.04
  Version table:
     12.3.0-1ubuntu1~22.04 500
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
     12-20220319-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages
linux-mint
  • 1 1 个回答
  • 47 Views

1 个回答

  • Voted
  1. Best Answer
    Stephen Kitt
    2024-07-16T02:41:29+08:002024-07-16T02:41:29+08:00

    要撤消安装,您需要恢复到分发libstdc++6包:

    sudo apt install libstdc++6=12.3.0-1ubuntu1~22.04
    

    您应该删除您添加的 PPA。您可能还需要降级 GCC 软件包。

    完成所有操作后,您将能够重新安装i386软件包。

    • 0

相关问题

  • 在 Linux Mint 上更新 libinput

  • linux java -version 仅适用于 root 用户[关闭]

  • 在 Linux Mint 上用 LightDM 替换 MDM 的正确程序是什么?

  • Linux Mint 内核损坏

  • Synaptic 包管理器文件设置

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve