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
    • 最新
    • 标签
主页 / user-495254

linuxlife's questions

Martin Hope
linuxlife
Asked: 2024-07-15 23:00:19 +0800 CST

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

  • 5

当我尝试在 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 个回答
  • 47 Views
Martin Hope
linuxlife
Asked: 2022-06-16 15:14:06 +0800 CST

通过终端运行的 Manjaro Linux 中的“最大堆太小”Java 错误

  • 1

这个真的不知道该怎么办了。我正在尝试使用更多 RAM 启动我的世界服务器,但终端中的命令给了我这个错误。

仅当我转到文件管理器并单击 server.jar 文件时,服务器才能正常工作,然后它会像 GUI 和所有内容一样正常启动。问题是我不能通过那里设置 RAM 参数,只能通过命令。

我试过了:

sudo java -Xmx1024 -Xms1024 -jar server.jar

sudo java -Xmx4096 -Xms1024 -jar server.jar

sudo java -Xmx8164 -Xms1024 -jar server.jar

sudo java -Xmx1000000 -Xms1024 -jar server.jar

sudo java -Xmx3072 -Xms2048 -jar server.jar

sudo java -Xmx2048 -Xms512 -jar server.jar

sudo java -Xmx1024 -Xms512 -jar server.jar

sudo java -Xmx512 -Xms256 -jar server.jar

每次都会导致完全相同的错误:

“虚拟机初始化过程中发生错误”

“最大堆太小”

我也用 -nogui 试过这些,同样的错误。

java minecraft
  • 1 个回答
  • 84 Views
Martin Hope
linuxlife
Asked: 2021-11-15 15:07:18 +0800 CST

如何更改 Linux Mint XFCE 桌面的字体颜色

  • 0

使用 Linux Mint XFCE 20.2 不久前,我安装了一个 KDE Plasma 桌面来试用它。最终不喜欢它,只是坚持这个。

出于某种原因,当我在 KDE 和 XFCE 之间切换时,我的桌面图标上的文本变成了带有黑色阴影的黑色,我不知道如何将它改回来(它曾经是带有黑色阴影的白色)。我尝试更改主题并编辑 gtk.css 和 colors.css 文件,注销然后重新登录,但什么也没发生。

做什么?

linux-mint xfce
  • 1 个回答
  • 308 Views
Martin Hope
linuxlife
Asked: 2021-10-03 13:46:28 +0800 CST

rm -vr 删除的文件如何恢复?

  • -2

在寻找使用控制台命令卸载我的世界的方法时,谷歌的第一个结果告诉我使用命令:rm -vr ~/ .minecraft/*.

我想,哦,好吧,我正在指定目录,所以这应该可以正常工作。该命令开始删除我的主目录中的每个文件夹。幸运的是,我发现了正在发生的事情,但不是在我的 aseprite 文件夹被删除之前。

我知道文件夹目录是事实,/home/kaiser/aseprite/并且从那以后我没有在主目录中安装或删除任何东西。我害怕更改任何内容或重新启动计算机,因为我不希望该分区空间被覆盖。

那个文件夹有很多正在进行的对我来说非常重要的工作,还没有备份。在我把它拿回来之前,我不会碰任何东西。

我在1TB HDD上运行Linux Mint XFCE 20.2。我的主板是技嘉 H310M H 2.0。

如果有任何方法可以恢复这些文件,请留下您的建议。在撰写这篇文章时,它们大约在 1 小时前被删除。

编辑:我的分区是 EXT4(1.0 版)。

几天前我还保存了一个会话,但不确定是否可以将其用作还原点,因为我认为保存的会话不算作备份。

data-recovery rm
  • 1 个回答
  • 3525 Views
Martin Hope
linuxlife
Asked: 2021-10-02 19:36:25 +0800 CST

如何卸载 Java openJDK 的版本

  • 0

我正在使用 Linux Mint XFCE 20。

最近我通过运行安装了 Java sudo apt-get install openjdk,它自动安装了 JRE 和 JDK 的 8 和 11 版本,包括 JRE headless。

事实证明,我只需要 openjdk 16 就可以运行我想要的,而拥有其他版本的 java 有点毫无意义。我的主要问题是程序默认为版本 8,我似乎无法修复它。

那么如何卸载版本 11 和 8 并保留 16?

java uninstall
  • 2 个回答
  • 229 Views

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