I have a WD My Book Live network drive (http://www.wdc.com/en/products/products.aspx?id=280) on my LAN.
I can SSH on the network drive which seems to run Debian:
>> cat /etc/issue Debian GNU/Linux 5.0 \n \l
The first thing I tried is to check for updates, but it seems that there are errors preventing
apt from upgrading packages.
Here are some outputs of upgrade commands I ran:
>> apt-get update Hit http://ftp.us.debian.org squeeze Release.gpg Hit http://ftp.us.debian.org wheezy Release.gpg Hit http://ftp.us.debian.org squeeze Release Hit http://ftp.us.debian.org wheezy Release Ign http://ftp.us.debian.org squeeze/main Packages/DiffIndex Hit http://ftp.us.debian.org wheezy/main Packages/DiffIndex Hit http://ftp.us.debian.org squeeze/main Packages Reading package lists... Done >> apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run `apt-get -f install' to correct these. The following packages have unmet dependencies: libapt-pkg4.12: Breaks: apt (< 0.9.4~) but 0.7.20.2+lenny1 is installed E: Unmet dependencies. Try using -f. >> apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: apt Suggested packages: aptitude synaptic wajig dpkg-dev apt-doc python-apt The following packages will be upgraded: apt 1 upgraded, 0 newly installed, 0 to remove and 306 not upgraded. 3 not fully installed or removed. Need to get 0B/1269kB of archives. After this operation, 2190kB disk space will be freed. Do you want to continue [Y/n]? Y apt-extracttemplates: /usr/lib/libz.so.1: version `ZLIB_220.127.116.11' not found (required by /usr/lib/powerpc-linux-gnu/libapt-pkg.so.4.12) debconf: apt-extracttemplates failed: Bad file descriptor (Reading database ... dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed. (Reading database ... 19053 files and directories currently installed.) Preparing to replace apt 0.7.20.2+lenny1 (using .../apt_0.9.7.7_powerpc.deb) ... Unpacking replacement apt ... dpkg: error processing /var/cache/apt/archives/apt_0.9.7.7_powerpc.deb (--unpack): trying to overwrite '/etc/logrotate.d/apt', which is also in package wd-nas 02.50.00-96731 Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/apt_0.9.7.7_powerpc.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
I cannot see how to get out of this loop, maybe the
apt package is broken and must be reinstalled manually, if so, how would I proceed to do it?
Thanks a lot for your help.
Edit: I dont know what's with the instant downvote, but if the question is obvious / poorly written / off-topic I'll be glad to improve it / take it elsewhere according to your comments.