Getting around fink errror : Failed can't install Batch packages

From $1

Table of contents
  1. 1. The fix:

Some packages give an error when you try and install them that looks like

### execution of /sw/bin/dpkg-lockwait failed, exit code 1
Failed: can't batch-install packages: /sw/var/cache/apt/archives/coot_0.5.2-1_darwin-i386.deb /sw/var/cache/apt/archives/coot-shlibs_0.5.2-1_darwin-i386.deb
 
 
Or 
### execution of /sw/bin/dpkg-lockwait failed, exit code 1
Failed: can't batch-install packages: /sw/var/cache/apt/archives/coot_0.5.2-1_darwin-i386.deb /sw/var/cache/apt/archives/coot-shlibs_0.5.2-1_darwin-i386.deb
 
 

The fix:

In most cases the fix involves installing the packages manually using dpkg -i or dpkg --install : The general command is 

sudo dpkg --install followed by the full path to the *.deb file that appears in the error. You need to do this for all the *.deb files that appear in the error .

For eg :

sudo dpkg --install  /sw/var/cache/apt/archives/coot_0.5.2-1_darwin-i386.deb

 

If that installation complains of dependencies ( for eg libpng3 not found or something to that effect) . Try finding that package using fink list , which lists information about all packages, piped to ( the "|" symbol) grep which looks for all occurrences of a pattern in input fed to it with a pipe symbol.

fink list | grep "libpng3" 

Then install the package that matches the text description you searched for 

fink install libpng3 

And finally after all dependencies have been fulfilled proceed with the installation using sudo dpkg --install  /sw/var/cache/apt/archives/coot_0.5.2-1_darwin-i386.deb

In my case for coot 0.0.5.2 I needed to upgrade my xquartz to 2.3.1 since I got the error while launching  

dyld: Library not loaded: /usr/X11/lib/libXdamage.1.dylib

ref: ccp4bb post on tackling the libXdamage library error from W.G Scott and Engin OZkan

Tags:
 
Images (0)
 
Comments (0)
You must login to post a comment.