我正在尝试在我的网络附加存储 (NAS) 上放置附加软件。NAS 似乎正在运行 Debian。
无论如何,apt-get 已经在机器上了。我只需要添加正确的文件夹。
但是,当我继续时:
root@NAS:/opt/apps# apt-get install transmission
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
apt apt-utils ca-certificates coreutils debconf debconf-i18n
debian-archive-keyring debianutils defoma dpkg file fontconfig
fontconfig-config gcc-4.3-base gnupg gpgv hicolor-icon-theme ifupdown
libacl1 libatk1.0-0 libatk1.0-data libattr1 libbz2-1.0 libc6 libcairo2
libcomerr2 libcups2 libcurl3 libdatrie0 libdb4.6 libdirectfb-1.0-0 libexpat1
libfontconfig1 libfontenc1 libfreetype6 libfribidi0 libgcc1 libgcrypt11
libgdbm3 libglib2.0-0 libglib2.0-data libgnutls26 libgpg-error0 libgpm2
libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libidn11 libjpeg62 libkeyutils1
libkrb53 libldap-2.4-2 liblocale-gettext-perl libmagic1 libncurses5
libnewt0.52 libpango1.0-0 libpango1.0-common libpcre3 libpixman-1-0
libpng12-0 libpopt0 libreadline5 libsasl2-2 libsasl2-modules libselinux1
libslang2 libssh2-1 libssl0.9.8 libstdc++6 libsysfs2 libtasn1-3
libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libthai-data
libthai0 libtiff4 libts-0.0-0 libusb-0.1-4 libx11-6 libx11-data libxau6
libxcb-render-util0 libxcb-render0 libxcb-xlib0 libxcb1 libxcomposite1
libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxfont1 libxft2
libxi6 libxinerama1 libxrandr2 libxrender1 lsb-base lzma ncurses-bin
net-tools netbase openssl perl perl-base perl-modules readline-common sed
transmission-cli transmission-common transmission-gtk ttf-dejavu
ttf-dejavu-core ttf-dejavu-extra ucf whiptail x-ttcidfont-conf x11-common
xfonts-encodings xfonts-utils zlib1g
Suggested packages:
aptitude synaptic gnome-apt wajig dpkg-dev apt-doc bzip2 python-apt
debconf-doc debconf-utils libterm-readline-gnu-perl libgnome2-perl
libqt-perl libnet-ldap-perl defoma-doc dfontmgr psfontmgr gnupg-doc
xloadimage imagemagick eog libpcsclite1 iproute dhcp3-client dhcp-client ppp
locales glibc-doc cups-common libfreetype6-dev rng-tools gnutls-bin gpm
librsvg2-common krb5-doc krb5-user ttf-kochi-gothic ttf-kochi-mincho
ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp
ttf-arphic-gkai00mp ttf-arphic-bkai00mp libsasl2-modules-otp
libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit
libsasl2-modules-gssapi-heimdal perl-doc
Recommended packages:
libft-perl
The following NEW packages will be installed:
apt apt-utils ca-certificates coreutils debconf debconf-i18n
debian-archive-keyring debianutils defoma dpkg file fontconfig
fontconfig-config gcc-4.3-base gnupg gpgv hicolor-icon-theme ifupdown
libacl1 libatk1.0-0 libatk1.0-data libattr1 libbz2-1.0 libc6 libcairo2
libcomerr2 libcups2 libcurl3 libdatrie0 libdb4.6 libdirectfb-1.0-0 libexpat1
libfontconfig1 libfontenc1 libfreetype6 libfribidi0 libgcc1 libgcrypt11
libgdbm3 libglib2.0-0 libglib2.0-data libgnutls26 libgpg-error0 libgpm2
libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libidn11 libjpeg62 libkeyutils1
libkrb53 libldap-2.4-2 liblocale-gettext-perl libmagic1 libncurses5
libnewt0.52 libpango1.0-0 libpango1.0-common libpcre3 libpixman-1-0
libpng12-0 libpopt0 libreadline5 libsasl2-2 libsasl2-modules libselinux1
libslang2 libssh2-1 libssl0.9.8 libstdc++6 libsysfs2 libtasn1-3
libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libthai-data
libthai0 libtiff4 libts-0.0-0 libusb-0.1-4 libx11-6 libx11-data libxau6
libxcb-render-util0 libxcb-render0 libxcb-xlib0 libxcb1 libxcomposite1
libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxfont1 libxft2
libxi6 libxinerama1 libxrandr2 libxrender1 lsb-base lzma ncurses-bin
net-tools netbase openssl perl perl-base perl-modules readline-common sed
transmission transmission-cli transmission-common transmission-gtk
ttf-dejavu ttf-dejavu-core ttf-dejavu-extra ucf whiptail x-ttcidfont-conf
x11-common xfonts-encodings xfonts-utils zlib1g
0 upgraded, 124 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/55.7MB of archives.
After this operation, 167MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
E: Internal Error, Could not perform immediate configuration (2) on libc6
当您尝试修复此包时,您会得到以下信息:
root@NAS:/var/cache/apt/archives# dpkg -i "libc6_2.7-18lenny7_amd64.deb"
Selecting previously deselected package libc6.
(Reading database ... 0 files and directories currently installed.)
Unpacking libc6 (from libc6_2.7-18lenny7_amd64.deb) ...
Matching libraries: /mnt/apps/lib/libc.so.6
A copy of glibc was found in an unexpected directory.
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library and try again.
dpkg: error processing libc6_2.7-18lenny7_amd64.deb (--install):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
libc6_2.7-18lenny7_amd64.deb
我尝试将 /mnt/apps/lib/libc.so.6 临时移动到另一个位置,但我收到消息称它是一个只读文件系统。
我希望有人能帮助我。凭借我所掌握的 UNIX 知识,我真的无法比已经尝试过的方法取得更多进展。顺便说一句,通常这类 NAS 可以使用 IPKG 包管理器。但是,所有 IPKG 存储库似乎都只能在基于 ARM 的系统上运行,而这个存储库基于 Intel Atom CPU。
答案1
你需要做两件事:
- 挂载 /mnt/apps 读+写
- 将 /opt 中 dpkg 最有可能存在的目录指向 dpkg 正在寻找的目录
看起来该固件与其他“EMC LifeLine”产品非常相似,例如家庭媒体网络硬盘云版。
这是一个非常复杂的过程,需要对 Linux 和 NAS 有很好的了解。请尝试在NAS 中央论坛. Wiki 上有关于apt-get 启用和安装应用程序 r+w但请记住,为了在 NAS 上执行类似的过程,你需要
- 完全理解所有这些步骤和命令,
- 对 NAS 的启动过程进行逆向工程以找到初始 ramdisk 的位置。
最后警告:执行任何这些操作都可能会损坏您的设备!