首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法在libstdc++6上执行即时配置

无法在libstdc++6上执行即时配置
EN

Unix & Linux用户
提问于 2013-01-12 16:43:57
回答 1查看 504关注 0票数 2

我最初的目标是在Nexenta上建立服务-network。作为命令的结果

代码语言:javascript
运行
复制
apt-get install service-network-ssh

我收到以下消息

代码语言:javascript
运行
复制
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libstdc++6-4.2-dev : Depends: g++-4.2 (= 4.2.3-2nexenta7) but it is not going to be installed
                      Depends: gcc-4.2-base (= 4.2.3-2nexenta7) but it is not going to be installed
                      Depends: libstdc++6 (>= 4.2.3-2nexenta7) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

我试着做

代码语言:javascript
运行
复制
apt-get -f install

并收到

代码语言:javascript
运行
复制
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following extra packages will be installed:
  apt apt-utils base-passwd binutils ca-certificates coreutils cpp-4.2 debconf
  debconf-i18n debootstrap diff dpkg ed findutils g++-4.2 gawk gcc-4.2
  gcc-4.2-base gettext-base gnupg gpgv grep hostname lib64gcc1 libbz2-1.0
  libcomerr2 libcurl3-gnutls libdb4.6 libgcc1 libgcrypt11 libgnutls13 libgomp1
  libgpg-error0 libgpmg1 libiconv libidn11 libkrb53 libldap-2.4-2
  liblocale-gettext-perl liblzo2-2 libncurses5 libnspr4 libnspr4-0d libnss3
  libnss3-0d libnss3-1d libopencdk10 libreadline5 libsasl2-2 libsasl2-modules
  libsqlite3-0 libssl0.9.8k libstdc++6 libtasn1-3 libtext-charwidth-perl
  libtext-iconv-perl libtext-wrapi18n-perl libtspi1 lzma makedev nexenta-lu
  nexenta-sunw nexenta-zones perl-base readline-common sed sunwbridgeu
  sunwcakr sunwcar sunwckr sunwcnetr sunwcsl sunwcslr sunwcsr sunwcsu
  sunwgrubr sunwkvm sunwlibm sunwpool sunwpoolr sunwsmapi sunwtecla sunwtoo
  sunwtsg sunwtsr sunwtsu sunwzfsr sunwzfsu sunwzoner sunwzoneu ubuntu-keyring
  zlib1g
Suggested packages:
  apt-doc aptitude synaptic gnome-apt wajig dpkg-dev binutils-doc
  gcc-4.2-locales debconf-doc debconf-utils libgnome2-perl libnet-ldap-perl
  libqt-perl libterm-readline-gnu-perl diff-doc mlocate locate slocate
  g++-4.2-multilib gcc-4.2-doc libstdc++6-4.2-dbg gcc-4.2-multilib libgcc1-dbg
  libgomp1-dbg libmudflap0-4.2-dbg libmudflap0-4.2-dev gnupg-doc xloadimage
  rng-tools gnutls-bin krb5-doc krb5-user libsasl2-modules-gssapi-mit
  libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp
  libsasl2-modules-sql
The following NEW packages will be installed:
  apt apt-utils base-passwd binutils ca-certificates coreutils cpp-4.2 debconf
  debconf-i18n debootstrap diff dpkg ed findutils g++-4.2 gawk gcc-4.2
  gcc-4.2-base gettext-base gnupg gpgv grep hostname lib64gcc1 libbz2-1.0
  libcomerr2 libcurl3-gnutls libdb4.6 libgcc1 libgcrypt11 libgnutls13 libgomp1
  libgpg-error0 libgpmg1 libiconv libidn11 libkrb53 libldap-2.4-2
  liblocale-gettext-perl liblzo2-2 libncurses5 libnspr4 libnspr4-0d libnss3
  libnss3-0d libnss3-1d libopencdk10 libreadline5 libsasl2-2 libsasl2-modules
  libsqlite3-0 libssl0.9.8k libstdc++6 libtasn1-3 libtext-charwidth-perl
  libtext-iconv-perl libtext-wrapi18n-perl libtspi1 lzma makedev nexenta-lu
  nexenta-sunw nexenta-zones perl-base readline-common sed sunwbridgeu
  sunwcakr sunwcar sunwckr sunwcnetr sunwcsl sunwcslr sunwcsr sunwcsu
  sunwgrubr sunwkvm sunwlibm sunwpool sunwpoolr sunwsmapi sunwtecla sunwtoo
  sunwtsg sunwtsr sunwtsu sunwzfsr sunwzfsu sunwzoner sunwzoneu ubuntu-keyring
  zlib1g
0 upgraded, 92 newly installed, 0 to remove and 416 not upgraded.
Need to get 0 B/91.4 MB of archives.
After this operation, 83.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
E: Could not perform immediate configuration on 'libstdc++6'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

根据第一个命令的错误日志,我尝试从gсс中删除包,设置gсс版本4.2.3并使用命令

代码语言:javascript
运行
复制
apt-get --purge remove developer-gcc-44

我得到了

代码语言:javascript
运行
复制
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libstdc++6-4.2-dev : Depends: g++-4.2 (= 4.2.3-2nexenta7) but it is not going to be installed
                      Depends: gcc-4.2-base (= 4.2.3-2nexenta7) but it is not going to be installed
                      Depends: libstdc++6 (>= 4.2.3-2nexenta7) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

该怎么办--手动删除gcc (然后再设置,然后通过存储库设置ssh,但我的主管考虑,Nexenta操作系统gcc将通过包管理器设置什么),还是尝试手动设置service-network,而不是通过存储库?如果第二个选择更可取,我需要链接到服务-网络-ssh安装说明到Nexenta。

EN

回答 1

Unix & Linux用户

发布于 2013-01-14 00:57:28

这个问题与ssh无关:当您试图安装一个包时,apt首先希望数据库处于干净的状态,但它不是。libstdc++6包有一个问题,它没有配置。

我不太熟悉“无法立即执行配置”的错误。一些你可以尝试的事情:

  • 如果你有能力,试着运行它而不是apt-get。在Debian的某些版本中,智能比apt更聪明。
  • 试试apt-get -o APT::Immediate-Configure=0 -f install
  • 尝试手动调用dpkg来安装麻烦的包:dpkg --configure -a; dpkg -i /var/cache/apt/archives/libstdc++6*
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/61068

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档