how to change dpkg installation directory?

NoOp glgxg at sbcglobal.net
Thu Jun 18 03:51:01 UTC 2009


On 06/17/2009 06:34 AM, Bram Kuijper wrote:
> Hi all,
> 
> I want to change the default directory into which dpkg installs my 
> applications, since I have too little space on my rootdisk. However, I 
> changed the necessary configuration in /etc/dpkg/dpkg.cfg, but now 
> nothing will install anymore. What should I do?
> 
> This is what I did:
> In /etc/dpkg/dpkg.cfg i added the following line:
> instdir /media/disk-4/bram/root
> 
> This directory is writable by root.
> 
> Then I did:
> dpkg --configure -a
> 
> works perfectly.
> 
> Then I installed some program, let's do java:
> sudo apt-get install openjdk-6-jre
> 
> Now I get the following error:
> dpkg (subprocess): unable to execute post-installation script: No such 
> file or directory
> dpkg: error processing java-common (--configure)
>   subprocess post-installation script returned error exit status 2
> 
> what is going on? Do I need to set more variables in dpkg.cfg in order 
> to have a different installation dir working successfully?
> 
> Thanks for any hints.
> 
> Bram
> 

I'm not sure if this will help or not, but these are instructions for
installing an OOo deb (or rpm) into it's own directory where you can
then move the install to wherever you wish. Perhaps some of the
instructions may help with your situation:

http://wiki.services.openoffice.org/wiki/Run_OOo_versions_parallel






More information about the ubuntu-users mailing list