나의 초기 목표는 Nexenta Illumos에 service-network-ssh를 설정하는 것이었습니다. 명령 결과
apt-get install service-network-ssh
다음 메시지를 받았습니다.
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).
나는 ~하려고 노력한다
apt-get -f install
그리고 받았다
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сс 버전 4.2.3을 설정하기 위해 gсс에서 패키지를 제거하고 다음 명령을 사용하려고 시도했습니다.
apt-get --purge remove developer-gcc-44
나는 가지고있다
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 OS의 경우 gcc를 패키지 관리자를 통해 설정해야 한다고 생각함) 서비스 설정을 시도합니다(저장소 라이브러리를 통하지 않고 수동으로 네트워크 ssh를 설정하시겠습니까?). 두 번째 옵션이 더 나은 경우 Nexenta용 service-network-ssh 설치 지침에 대한 링크가 필요합니다.
답변1
문제는 ssh와 관련이 없습니다. 패키지를 설치하려고 할 때 apt는 먼저 데이터베이스가 깨끗한 상태일 것으로 예상하지만 그렇지 않습니다. 패키지에 문제가 있어 libstdc++6
구성되지 않았습니다.
"지금 구성을 수행할 수 없습니다."라는 오류가 너무 익숙하지 않습니다. 시도해 볼 수 있는 몇 가지 작업은 다음과 같습니다.
- Aptitude가 있는 경우 apt-get 대신 실행해 보세요. 일부 데비안 버전에서는 aptitude가 apt-get보다 더 지능적입니다.
- 노력하다
apt-get -o APT::Immediate-Configure=0 -f install
dpkg
문제가 있는 패키지를 수동으로 설치해 보십시오 .dpkg --configure -a; dpkg -i /var/cache/apt/archives/libstdc++6*