루트로 실행한 후 내 Linux 라이브러리가 심각하게 손상된 것 같습니다.
apt-get install cifs-utils
손상을 수정하거나 원본 라이브러리를 복원해야 합니다.
참고: 이것은 NAS(Debian Jessie를 실행하는 WDMyCloud 3TB)이므로 Linux를 다시 설치하지 않아야 합니다.
Linux WDMyCloud 3.2.26 #1 SMP Thu Jul 9 11:14:15 PDT 2015 wd-2.4-rel armv7l GNU/Linux
산출
간결성을 위해 일부 줄이 잘렸습니다.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libarchive13 libasn1-8-heimdal libbsd0 libcups2 libffi6 libfile-copy-recursive-perl libgmp10 libgnutls-deb0-28 libhcrypto4-heimdal
libhdb9-heimdal libheimbase1-heimdal libhogweed2 libhx509-5-heimdal libkrb5-26-heimdal libldb1 libnettle4 libnss-winbind libntdb1
libp11-kit0 libpam-winbind libpython-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib libroken18-heimdal libsmbclient
libtalloc2 libtasn1-6 libtdb1 libtevent0 libwbclient0 libwind0-heimdal python python-crypto python-dnspython python-ldb python-minimal
python-ntdb python-samba python-talloc python-tdb python2.7 python2.7-minimal samba samba-common samba-common-bin samba-dsdb-modules
samba-libs smbclient tdb-tools update-inetd winbind
Suggested packages:
lrzip cups-common gnutls-bin python-doc python-tk python-crypto-dbg python-crypto-doc python2.7-doc binutils binfmt-support bind9
bind9utils ctdb ldb-tools ntp smbldap-tools heimdal-clients
Recommended packages:
samba-vfs-modules
The following NEW packages will be installed:
libarchive13 libasn1-8-heimdal libcups2 libffi6 libfile-copy-recursive-perl libgmp10 libgnutls-deb0-28 libhcrypto4-heimdal libhdb9-heimdal
libheimbase1-heimdal libhogweed2 libhx509-5-heimdal libkrb5-26-heimdal libldb1 libnettle4 libntdb1 libpython-stdlib libpython2.7
libpython2.7-minimal libpython2.7-stdlib libroken18-heimdal libsmbclient libtasn1-6 libtevent0 libwind0-heimdal python-crypto
python-dnspython python-ldb python-ntdb python-samba python-talloc python-tdb samba samba-dsdb-modules samba-libs tdb-tools update-inetd
The following packages will be upgraded:
cifs-utils libbsd0 libnss-winbind libp11-kit0 libpam-winbind libtalloc2 libtdb1 libwbclient0 python python-minimal python2.7
python2.7-minimal samba-common samba-common-bin smbclient winbind
16 upgraded, 37 newly installed, 0 to remove and 270 not upgraded.
2 not fully installed or removed.
Need to get 16.8 MB of archives.
After this operation, 8412 kB disk space will be freed.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.us.debian.org/debian/ jessie/main python2.7 armhf 2.7.9-2+deb8u1 [252 kB]
Get:2 http://ftp.us.debian.org/debian/ jessie/main python2.7-minimal armhf 2.7.9-2+deb8u1 [1152 kB]
...
Get:53 http://ftp.us.debian.org/debian/ jessie/main cifs-utils armhf 2:6.4-1 [66.7 kB]
Fetched 16.8 MB in 10s (1601 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 25724 files and directories currently installed.)
Preparing to unpack .../python2.7_2.7.9-2+deb8u1_armhf.deb ...
Unpacking python2.7 (2.7.9-2+deb8u1) over (2.7.3-6) ...
Preparing to unpack .../python2.7-minimal_2.7.9-2+deb8u1_armhf.deb ...
Unpacking python2.7-minimal (2.7.9-2+deb8u1) over (2.7.3-6) ...
dpkg: warning: unable to delete old directory '/etc/python2.7': Directory not empty
Selecting previously unselected package libpython2.7-minimal:armhf.
Preparing to unpack .../libpython2.7-minimal_2.7.9-2+deb8u1_armhf.deb ...
Unpacking libpython2.7-minimal:armhf (2.7.9-2+deb8u1) ...
Selecting previously unselected package libffi6:armhf.
...
Preparing to unpack .../winbind_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
[ ok ] Stopping the Winbind daemon: winbind.
Unpacking winbind (2:4.2.14+dfsg-0+deb8u9) over (2:3.6.6-6+deb7u1) ...
Selecting previously unselected package samba-libs:armhf.
...
Selecting previously unselected package samba.
Preparing to unpack .../samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Unpacking samba (2:4.2.14+dfsg-0+deb8u9) ...
dpkg: error processing archive /var/cache/apt/archives/samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb (--unpack):
trying to overwrite '/etc/logrotate.d/samba', which is also in package wd-nas 02.50.00-2435723
Selecting previously unselected package libsmbclient:armhf.
Preparing to unpack .../libsmbclient_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Unpacking libsmbclient:armhf (2:4.2.14+dfsg-0+deb8u9) ...
Preparing to unpack .../smbclient_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Unpacking smbclient (2:4.2.14+dfsg-0+deb8u9) over (2:3.6.6-6+deb7u1) ...
Preparing to unpack .../samba-common_2%3a4.2.14+dfsg-0+deb8u9_all.deb ...
Unpacking samba-common (2:4.2.14+dfsg-0+deb8u9) over (2:3.6.6-6+deb7u1) ...
dpkg: warning: unable to delete old directory '/etc/dhcp3/dhclient-enter-hooks.d': Directory not empty
dpkg: warning: unable to delete old directory '/etc/dhcp3': Directory not empty
Preparing to unpack .../cifs-utils_2%3a6.4-1_armhf.deb ...
Unpacking cifs-utils (2:6.4-1) over (2:5.5-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
/var/cache/apt/archives/samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
영향
이제 많은 유틸리티가 비정상적으로 중단됩니다. 예를 들어, mount
중단하고 메시지를 표시합니다 Killed
!
WDMyCloud:/nfs/Public# mount.cifs '\\192.168.1.7\WD_3TB' /mnt/SEAGATE8TB/WD_3TB cifs -o user=username,workgroup=WORKGROUP,password=pwd
Killed
WDMyCloud:/nfs/Public# smbtree
smbtree: error while loading shared libraries: libntdb.so.1: ELF load command alignment not page-aligned
NAS DLNA 서버도 손상되었습니다. 운 좋게도 전체 NAS 데이터(시스템 아님)에 대한 완전한 백업이 있습니다. 하지만 장치를 공장 설정으로 재설정하고 모든 구성을 다시 실행하는 것을 피하고 싶습니다...
그것을 고치려고 노력하십시오
apt-get -f install
고칠 수 없습니다.
WDMyCloud-Issam:~# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
bind9 bind9utils ctdb ldb-tools ntp smbldap-tools
The following NEW packages will be installed:
samba
0 upgraded, 1 newly installed, 0 to remove and 270 not upgraded.
53 not fully installed or removed.
Need to get 0 B/958 kB of archives.
After this operation, 10.8 MB of additional disk space will be used.
(Reading database ... 26719 files and directories currently installed.)
Preparing to unpack .../samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb ...
Unpacking samba (2:4.2.14+dfsg-0+deb8u9) ...
dpkg: error processing archive /var/cache/apt/archives/samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb (--unpack):
trying to overwrite '/etc/logrotate.d/samba', which is also in package wd-nas 02.50.00-2435723
Errors were encountered while processing:
/var/cache/apt/archives/samba_2%3a4.2.14+dfsg-0+deb8u9_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
WDMyCloud-Issam:~# apt-cache policy cifs-utils
cifs-utils:
Installed: 2:6.4-1
Candidate: 2:6.4-1
Version table:
*** 2:6.4-1 0
500 http://ftp.us.debian.org/debian/ jessie/main armhf Packages
100 /var/lib/dpkg/status
WDMyCloud:~# modprobe cifs
아마도 winbind와 관련이 있을까요?
WDMyCloud:~# sudo apt-get install cifs-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
cifs-utils is already the newest version.
cifs-utils set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
winbind : Depends: samba (= 2:4.2.14+dfsg-0+deb8u9) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
또한 Ask ubuntu 게시물도 확인했습니다.cifs-utils 설치를 시도했습니다. 시도로 인해 종속성 지옥이 생성되었습니다.“그러나 그것으로는 해결책을 찾을 방법이 없습니다.
어떻게 진행해야 할지 아시나요?