Broken dependencies on WD mybook life running lenny/squeeze

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Broken dependencies on WD mybook life running lenny/squeeze

Postby Lesser » 2012-08-29 12:56

Hi all,

I recently got a WD mybooklive 2TB which is a NAS that is said to run Lenny. It is accessible via SSH and people have added packages/software to extend the functionality of the device (e.g. to become a newsgrabber- or torrent client, or to be accessible through VPN). The device has ONLY a network connection, no USB or something like that. When I tried to install sabnzbdplus, I ran into dependency troubles that I do not know how to fix. This is the story:
Code: Select all
MyBookLive:~# apt-get install unzip unrar par2 screen python-dev python-cheetah python-cherrypy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  binutils cpp cpp-4.4 gcc gcc-4.4 gcc-4.4-base libc-bin libc-dev-bin libc6
  libc6-dev libc6-ppc64 libgcc1 libgmp3c2 libgomp1 libmpfr4 libncursesw5
  libpython2.6 libssl-dev libssl0.9.8 libstdc++6 linux-libc-dev manpages-dev
  python python-minimal python-support python2.5 python2.5-minimal python2.6
  python2.6-dev python2.6-minimal zlib1g zlib1g-dev
Suggested packages:
  binutils-doc cpp-doc gcc-4.4-locales gcc-multilib make autoconf automake1.9
  libtool flex bison gcc-doc gcc-4.4-multilib libmudflap0-4.4-dev gcc-4.4-doc
  libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7
  glibc-doc python-doc python-tk python-profiler python-markdown
  python-pygments python-memcache python2.5-doc binfmt-support python2.6-doc
  python2.6-profiler
Recommended packages:
  libgpm2
The following NEW packages will be installed:
  cpp cpp-4.4 gcc gcc-4.4 libc-dev-bin libc6-dev libgmp3c2 libmpfr4
  libpython2.6 libssl-dev linux-libc-dev manpages-dev par2 python-cheetah
  python-cherrypy python-dev python-support python2.6 python2.6-dev
  python2.6-minimal screen unrar zlib1g-dev
The following packages will be upgraded:
  binutils gcc-4.4-base libc-bin libc6 libc6-ppc64 libgcc1 libgomp1
  libncursesw5 libssl0.9.8 libstdc++6 python python-minimal python2.5
  python2.5-minimal unzip zlib1g
16 upgraded, 23 newly installed, 0 to remove and 241 not upgraded.
Need to get 45.0MB of archives.
After this operation, 76.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.nl.debian.org squeeze/non-free unrar 1:3.9.10-1 [110kB]
Get:2 http://ftp.us.debian.org squeeze/main libc6-ppc64 2.11.3-3 [4466kB]
Get:3 http://ftp.us.debian.org squeeze/main libc-bin 2.11.3-3 [765kB]         
Get:4 http://ftp.us.debian.org squeeze/main libc6 2.11.3-3 [4460kB]           
Get:5 http://ftp.us.debian.org squeeze/main gcc-4.4-base 4.4.5-8 [123kB]       
Get:6 http://ftp.us.debian.org squeeze/main libstdc++6 4.4.5-8 [387kB]         
Get:7 http://ftp.us.debian.org squeeze/main libgcc1 1:4.4.5-8 [44.6kB]         
Get:8 http://ftp.us.debian.org squeeze/main zlib1g 1:1.2.3.4.dfsg-3 [78.3kB]   
Get:9 http://ftp.us.debian.org squeeze/main libncursesw5 5.7+20100313-5 [388kB]
Get:10 http://ftp.us.debian.org squeeze/main libssl0.9.8 0.9.8o-4squeeze12 [1008kB]
Get:11 http://ftp.us.debian.org squeeze/main python2.6-minimal 2.6.6-8+b1 [1502kB]
Get:12 http://ftp.us.debian.org squeeze/main python2.6 2.6.6-8+b1 [2436kB]     
Get:13 http://ftp.us.debian.org squeeze/main python2.5 2.5.5-11 [3009kB]       
Get:14 http://ftp.us.debian.org squeeze/main python2.5-minimal 2.5.5-11 [1285kB]
Get:15 http://ftp.us.debian.org squeeze/main python 2.6.6-3+squeeze7 [169kB]   
Get:16 http://ftp.us.debian.org squeeze/main python-minimal 2.6.6-3+squeeze7 [33.8kB]
Get:17 http://ftp.us.debian.org squeeze/main python-support 1.0.10 [33.0kB]   
Get:18 http://ftp.us.debian.org squeeze/main binutils 2.20.1-16 [4109kB]       
Get:19 http://ftp.us.debian.org squeeze/main libgmp3c2 2:4.3.2+dfsg-1 [287kB] 
Get:20 http://ftp.us.debian.org squeeze/main libmpfr4 3.0.0-2 [485kB]         
Get:21 http://ftp.us.debian.org squeeze/main cpp-4.4 4.4.5-8 [3721kB]         
Get:22 http://ftp.us.debian.org squeeze/main cpp 4:4.4.5-1 [15.0kB]           
Get:23 http://ftp.us.debian.org squeeze/main libgomp1 4.4.5-8 [26.4kB]         
Get:24 http://ftp.us.debian.org squeeze/main gcc-4.4 4.4.5-8 [702kB]           
Get:25 http://ftp.us.debian.org squeeze/main gcc 4:4.4.5-1 [4978B]             
Get:26 http://ftp.us.debian.org squeeze/main libc-dev-bin 2.11.3-3 [208kB]     
Get:27 http://ftp.us.debian.org squeeze/main linux-libc-dev 2.6.32-45 [841kB] 
Get:28 http://ftp.us.debian.org squeeze/main libc6-dev 2.11.3-3 [2900kB]       
Get:29 http://ftp.us.debian.org squeeze/main libpython2.6 2.6.6-8+b1 [1069kB] 
Get:30 http://ftp.us.debian.org squeeze/main zlib1g-dev 1:1.2.3.4.dfsg-3 [190kB]
Get:31 http://ftp.us.debian.org squeeze/main libssl-dev 0.9.8o-4squeeze12 [2307kB]
Get:32 http://ftp.us.debian.org squeeze/main manpages-dev 3.27-1 [1639kB]     
Get:33 http://ftp.us.debian.org squeeze/main python-cheetah 2.4.2.1-1 [202kB] 
Get:34 http://ftp.us.debian.org squeeze/main python2.6-dev 2.6.6-8+b1 [4861kB]
Get:35 http://ftp.us.debian.org squeeze/main python-dev 2.6.6-3+squeeze7 [916B]
Get:36 http://ftp.us.debian.org squeeze/main screen 4.0.3-14 [621kB]           
Get:37 http://ftp.us.debian.org squeeze/main unzip 6.0-4 [192kB]               
Get:38 http://ftp.us.debian.org squeeze/main par2 0.4-11 [115kB]               
Get:39 http://ftp.us.debian.org squeeze/main python-cherrypy 2.3.0-3 [246kB]   
Fetched 45.0MB in 55s (818kB/s)                                               
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.
(Reading database ... 19010 files and directories currently installed.)
Preparing to replace libc6-ppc64 2.11.2-2 (using .../libc6-ppc64_2.11.3-3_powerpc.deb) ...
Unpacking replacement libc6-ppc64 ...
Preparing to replace libc-bin 2.11.2-2 (using .../libc-bin_2.11.3-3_powerpc.deb) ...
Unpacking replacement libc-bin ...
dpkg: error processing /var/cache/apt/archives/libc-bin_2.11.3-3_powerpc.deb (--unpack):
 trying to overwrite '/etc/ld.so.conf.d/libc.conf', which is also in package wd-lib 01.03.02-67335
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libc-bin_2.11.3-3_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
MyBookLive:~#


"apt-get -f install" does not fix the problem. Can anybody here point me in a direction how to fix this issue? Or make a suggestion how to undo what I did (so I can try installing other packages again)? Thanks in advance!
Lesser
 
Posts: 4
Joined: 2012-08-29 12:22

Re: Broken dependencies on WD mybook life running lenny/sque

Postby stevepusser » 2012-08-30 04:19

Hmmm---barring a powerpc lenny backport of that package you wanted, perhaps a wholesale upgrade to Squeeze would be better. You'd have to have enough storage space in the NAS system for the downloaded deb files.

If you want to back out and downgrade to a pure Lenny, usually restoring a Lenny sources.list, removing -dev files with dpkg

(example: su -c 'dpkg -r libc6-dev') and then using aptitude to handle dependency issues: (su -c 'aptitude install libc6-dev')

Aptitude will suggest various solutions, use the one that downgrades back to the Lenny versions without removing other packages wholesale
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: LibreOffice 7.0.0, QMPlay2 20.07.04, Pale Moon 28.12.0, KeepassXC 2.6.0, Arqiver 0.6.0+git, Foliate 2.4.2
User avatar
stevepusser
 
Posts: 11894
Joined: 2009-10-06 05:53

Re: Broken dependencies on WD mybook life running lenny/sque

Postby Lesser » 2012-08-30 10:10

I don't think I want to downgrade to a pure Lenny, as the original sources.list contained (only) squeeze repositories. But for some reason everybody keeps calling it Lenny. a uname -a gives me "Linux MyBookLive 2.6.32.11-svn52288 #1 Wed Oct 26 18:57:59 PDT 2011 ppc GNU/Linux" but I've no idea how to call the distribution.

My main concern now is that the NAS will not boot properly after a restart. Is that a realistic scenario? Is there an easy way to cancel the upgrade of packages that got stuck?

Edit:
Would it be safe to remove libc6-ppc64 as the processor is only 32bits?
Lesser
 
Posts: 4
Joined: 2012-08-29 12:22

Re: Broken dependencies on WD mybook life running lenny/sque

Postby Lesser » 2012-08-31 11:11

I've re-installed the latest firmware from file and redone the required packages. Although libc6 still fails, sabnzbd is now working.
Lesser
 
Posts: 4
Joined: 2012-08-29 12:22

Re: Broken dependencies on WD mybook life running lenny/sque

Postby Purplegra » 2012-09-01 00:21

Aptitude will suggest various solutions, use the one that downgrades back to the Lenny versions without removing other packages wholesale
Image
Purplegra
 
Posts: 5
Joined: 2012-08-27 08:49

Re: Broken dependencies on WD mybook life running lenny/sque

Postby stevepusser » 2012-09-01 03:50

OK, it appears to be more a Squeeze than Lenny version. Here's the hangup:

dpkg: error processing /var/cache/apt/archives/libc-bin_2.11.3-3_powerpc.deb (--unpack):
trying to overwrite '/etc/ld.so.conf.d/libc.conf', which is also in package wd-lib 01.03.02-67335

The same file is being installed by two different deb packages,a no-no. What I'd do is backup your present copy of the libc.conf file, then install that problem deb with dpkg and the --force-overwrite option:

Code: Select all
su -c 'dpkg -i --force-overwrite /var/cache/apt/archives/libc-bin_2.11.3-3_powerpc.deb'


Then manually copy (cp) the previous conf file back into its old location. I assume that the wd-lib is a Western Digital library and that it just can't be uninstalled.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: LibreOffice 7.0.0, QMPlay2 20.07.04, Pale Moon 28.12.0, KeepassXC 2.6.0, Arqiver 0.6.0+git, Foliate 2.4.2
User avatar
stevepusser
 
Posts: 11894
Joined: 2009-10-06 05:53

Re: Broken dependencies on WD mybook life running lenny/sque

Postby Lesser » 2012-09-04 08:02

@stevepusser: Thanks, that seems to have done the trick. Strangely enough, the "libc.conf" installed by both packages seems to be identical. After --force-overwrite I get:
Code: Select all
MyBookLive:~# cat /etc/ld.so.conf.d/libc.conf                               
# libc default configuration
/usr/local/lib
MyBookLive:~# cat /etc/ld.so.conf.d/libc.conf.bak
# libc default configuration
/usr/local/lib
so no need to copy back the original file I guess. Subsequently there was a similar problem with libc6:

Code: Select all
dpkg: error processing /var/cache/apt/archives/libc6_2.11.3-3_powerpc.deb (--unpack):
 trying to overwrite '/etc/ld.so.conf.d/powerpc-linux-gnu.conf', which is also in package wd-lib 01.03.02-67335

which could be fixed in the same manner (yes, I have learning capabilities :P ). Here too, the file was overwritten but unchanged:
Code: Select all
MyBookLive:~# cat /etc/ld.so.conf.d/powerpc-linux-gnu.conf
# Multiarch support
/lib/powerpc-linux-gnu
/usr/lib/powerpc-linux-gnu
MyBookLive:~# cat /etc/ld.so.conf.d/powerpc-linux-gnu.conf.bak
# Multiarch support
/lib/powerpc-linux-gnu
/usr/lib/powerpc-linux-gnu

an 'apt-get check' returns no errors.
Lesser
 
Posts: 4
Joined: 2012-08-29 12:22

Re: Broken dependencies on WD mybook life running lenny/sque

Postby kevin.sun » 2013-01-30 03:14

:D Thank you guys, it really help me to resolve the problem.
this also work for
libc-bin_2.11.3-4_powerpc.deb
and
libc6_2.11.3-4_powerpc.deb
kevin.sun
 
Posts: 1
Joined: 2013-01-30 03:10


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable