1,381
edits
Changes
From IGEP - ISEE Wiki
no edit summary
So this is the result:
<pre>pwd
/etc/dpkg/dpkg.cfg.d
ls -al
mcaro@mcaro-vm-u12:/etc/dpkg/dpkg.cfg.d$ ls -al
total 12
drwxr-xr-x 4 root root 4096 May 8 09:43 ..
-rw-r--r-- 1 root root 27 May 8 10:25 multiarch
mcaro@mcaro-vm-u12:/etc/dpkg/dpkg.cfg.d$ cat multiarch
foreign-architecture armhf
</pre><div>Now we're ready for modify the apt repo sources for our wished new architecture, you should edit the file /etc/apt/sources.list and change the repositories as (I left here a sources.list sample file)If we want to set any repository you must add the tags: <br> [arch=i386] intel 32 bits <br> [arch=armel] ARM soft float 32 bits <br> [arch=armhf] ARM hard float 32 bits <br> or both: <br> [arch=armel,armhf] ARM soft/hard float repo 32 bits <br> The sources repositories not need to be tagged due sources repositories be the same for all architectures. </div><pre># deb cdrom:[Ubuntu 12.04.4 LTS _Precise Pangolin_ - Release i386 (20140204)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb [arch=armel,armhf] http://ports.ubuntu.com/ubuntu-ports precise main universe
## Major bug fix updates produced after the final release of the
## distribution.
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb [arch=armel,armhf] http://ports.ubuntu.com/ubuntu-ports precise-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise-security main restricted
deb [arch=i386] http://us.archive.ubuntu.com/ubuntu/ precise-security multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb [arch=i386] http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb [arch=i386] http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
</pre>
You should add here the repositories for every architecture ...
After that we must execute:
<pre>apt-get update
</pre>
= Install ARM packages =
If you wish install a new package (in our case we install openssl library) you should do:
<pre>mcaro@mcaro-vm-u12:~$ apt-cache search libssl
libssl-dev - SSL development libraries, header files and documentation
libssl-doc - SSL development documentation documentation
libssl1.0.0 - SSL shared libraries
libssl1.0.0-dbg - Symbol tables for libssl and libcrypto
dcmtk - OFFIS DICOM toolkit command line utilities
libcherokee-mod-libssl - Cherokee web server - SSL crypto functions plugin
libdcmtk2 - OFFIS DICOM toolkit runtime libraries
libdcmtk2-dev - OFFIS DICOM toolkit development libraries and headers
libssl-ocaml - OCaml bindings for OpenSSL (runtime)
libssl-ocaml-dev - OCaml bindings for OpenSSL
libssl0.9.8 - SSL shared libraries
libssl0.9.8-dbg - Symbol tables for libssl and libcrypto
libsslcommon2 - enterprise messaging system - common SSL libraries
libsslcommon2-dev - enterprise messaging system - common SSL development files
</pre>
and after found your desired library:
<pre>sudo apt-get install libssl1.0.0:armhf
</pre>
Adding ":armhf" at end you set the ARM hard floating version to set installed. If you don't set the arch apt-get will install your default arch package (in this case i386).