+ Post New Thread
Results 1 to 7 of 7
*nix Thread, Ubuntu 64bit in Technical; can I use apt to install 32bit packages ? -Ica client,gizmo,opera install with --force-architecture. I have a /usr/lib32 dir, but ...
  1. #1


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Ubuntu 64bit

    can I use apt to install 32bit packages ?

    -Ica client,gizmo,opera install with --force-architecture. I have a /usr/lib32 dir, but am missing important files.
    I had no probs running them on SuSE 64 but not sure how to install 32bit stuff on Ubuntu. any pointers appreciated

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Ubuntu 64bit

    I already have some success by just copying the 32bit libraries (by hand) into the lib32 dir. Is it ok to just download and install the 32bit package witht eh --force-architecture or any considerations before I bork this system. Sorry if I sound a bit confused. I am.

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,842
    Thank Post
    110
    Thanked 592 Times in 513 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: Ubuntu 64bit

    Why do you need 32bit packages? I have a perfectly happy 64bit LAMP install here..

  4. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Ubuntu 64bit

    ica client (working now), opera, gizmo, games.
    some of these require 32bit libraries that I don't have and I was looking for an 'apt' way of installing them.

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,842
    Thank Post
    110
    Thanked 592 Times in 513 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: Ubuntu 64bit

    ah ok, have you tried using a chroot jail for your 32bit apps?

    http://ubuntuforums.org/showthread.php?t=24575

  6. #6


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Ubuntu 64bit

    nope, I did read a bit about it but sort of got the impression it was doable without chrooting.. I'll try the chroot method, thanks.

  7. #7


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Ubuntu 64bit

    Thanks Geoff. This method works fine for met.
    I have 32bit apps

    Code:
    Step 1:
    
        * sudo apt-get install dchroot debootstrap
        * sudo mkdir /chroot/
        * sudo gedit /etc/dchroot.conf
              o Add this line: dapper /chroot
        * sudo debootstrap --arch i386 dapper /chroot/ http://archive.ubuntu.com/ubuntu
        * sudo chroot /chroot/
        * dpkg-reconfigure locales
    
    Step 2:
    In another terminal window (or by existing chroot):
    
        * sudo gedit /chroot/etc/apt/sources.list
        * Add the following lines:
              o deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse
              o deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse
    
    (We do this step because gedit has yet to be installed in the chroot environment)
    
    Step 3:
    In your chrooted environment (chroot /chroot):
    
        * apt-get update ; apt-get upgrade
    
    Step 4:
    In another terminal window (or by existing chroot):
    
        * sudo cp /etc/passwd /chroot/etc/
        * sudo cp /etc/shadow /chroot/etc/
        * sudo cp /etc/group /chroot/etc/
        * sudo cp /etc/sudoers /chroot/etc/
        * sudo cp /etc/hosts /chroot/etc/
        * sudo gedit /etc/fstab
        * Add the following lines:
              o /home /chroot/home none bind 0 0
              o /tmp /chroot/tmp none bind 0 0
              o /dev /chroot/dev none bind 0 0
              o /proc /chroot/proc proc defaults 0 0
              o /media/cdrom0 /chroot/media/cdrom0 none bind 0 0
              o /usr/share/fonts /chroot/usr/share/fonts none bind 0 0
        * sudo mkdir /chroot/media/cdrom0
        * sudo mount -a
        * sudo gedit /usr/local/bin/do_dchroot
        * Add the following:
              o #!/bin/sh
              o /usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` $*"
        * sudo chmod 755 /usr/local/bin/do_dchroot
    
    Step 5:
    In a new terminal:
    
        * dchroot -d
        * sudo apt-get install synaptic
        * sudo ln -s /usr/sbin/synaptic /usr/sbin/synaptic32
        * exit
        * sudo ln -s /usr/local/bin/do_dchroot /usr/local/bin/synaptic32
        * sudo synaptic32
    
    At this point you should have a 32 bit environment setup with synaptic setup. When you run synaptic32 from your main environment it will chroot execute it and all installations will be made to your 32 bit environment. If you want to be able to easily launch 32 bit chroot apps from your 64 bit environment symlink the app name to /usr/local/bin/do_dchroot. If you're using this as desktop system you'll probably want to use synaptic to install x, gnome, ubuntu specific themes, etc.



SHARE:
+ Post New Thread

Similar Threads

  1. sims 64bit
    By russdev in forum MIS Systems
    Replies: 8
    Last Post: 19th January 2008, 12:07 PM
  2. n you install a 32 bit Exchnage on a 64bit OS?
    By tosca925 in forum Windows
    Replies: 2
    Last Post: 5th July 2007, 12:46 AM
  3. 32 or 64bit 2003?
    By j17sparky in forum Windows
    Replies: 12
    Last Post: 4th May 2007, 11:35 PM
  4. Fluke Networks 64bit drivers saga...
    By indie in forum Windows
    Replies: 9
    Last Post: 12th May 2006, 06:31 PM
  5. A 64bit question. To be or not to be?
    By CM786 in forum Windows
    Replies: 14
    Last Post: 11th May 2006, 02:08 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •