Thread: Offline Synaptic Installation/Repository Updates
offline synaptic installation/repository updates
goal: allow users fresh installations of ubuntu don’t have internet access machine install software ubuntu repositories. i’ve never seen tutorial or tip this, hope meet hitherto unmet needs.
skill level: basic. i’ve tried make pretty simple. recommend copy/paste code given in tutorial rather type out, make sure no typos occur.
if have questions @ leave comment @ bottom of page. i’ll try , keep updated , provide support.
about: tutorial aimed @ users fresh installation of ubuntu 11.10 on computer no internet connection available computer. if can computer online, means skip tutorial , install software easy way.
many people still don’t have internet access @ home, , many of people own desktop computers, aren’t portable local wifi hotspots or internet cafés. that’s these instructions handy.
tutorial assumes have access second computer running ubuntu internet connection. we’ll refer “online” pc, , first machine “offline” one.
since easiest , common tool offline software installation, synaptic package manager, doesn’t come bundled ubuntu more (as of 11.10) tutorial guide through installing synaptic first.
important: before else, first need know whether offline ubuntu installation uses 32 or 64 bit architecture. find out, open terminal typing
when terminal open, copy/paste following code @ prompt:control+alt+t
this give output of either x86_64 (64 bit) or i686 – i386 (32 bit). packages different 64 , 32 bit, whole basic procedure remain same. remember throughout tutorial system uses.code:uname –m
install synaptic!
1. on online computer: make new folder in home folder called “synaptic” (no quotes, obviously).
2. if offline system 32 bit, open text editor , copy/paste code below it-
code:#!/bin/sh wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/libstdc++6_4.6.1-9ubuntu3_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/libgcc1_4.6.1-9ubuntu3_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/libglib2.0-0_2.30.0-0ubuntu4_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-6_1.4.4-2ubuntu1_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/gdk-pixbuf/libgdk-pixbuf2.0-0_2.24.0-1ubuntu1_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/gtk+2.0/libgtk2.0-0_2.24.6-0ubuntu5_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/p/pango1.0/libpango1.0-0_1.29.3+git20110916-0ubuntu1_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.11_0.8.16~exp5ubuntu13_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.13-20ubuntu5_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-inst1.3_0.8.16~exp5ubuntu13_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/h/hicolor-icon-theme/hicolor-icon-theme_0.12-1ubuntu1_all.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/libe/libept/libept1_1.0.5build1_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/l/launchpad-integration/liblaunchpad-integration1_0.1.54_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/v/vte/libvte9_0.28.2-0ubuntu2_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/x/xapian-core/libxapian22_1.2.5-1ubuntu1_i386.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/universe/s/synaptic/synaptic_0.75.2ubuntu8_i386.deb
if offline system 64 bit, copy/paste code instead:
code:#!/bin/sh wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/libstdc++6_4.6.1-9ubuntu3_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/libgcc1_4.6.1-9ubuntu3_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/glib2.0/libglib2.0-0_2.30.0-0ubuntu4_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-6_1.4.4-2ubuntu1_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/gdk-pixbuf/libgdk-pixbuf2.0-0_2.24.0-1ubuntu1_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/g/gtk+2.0/libgtk2.0-0_2.24.6-0ubuntu5_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/p/pango1.0/libpango1.0-0_1.29.3+git20110916-0ubuntu1_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-pkg4.11_0.8.16~exp5ubuntu13_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.13-20ubuntu5_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/a/apt/libapt-inst1.3_0.8.16~exp5ubuntu13_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/h/hicolor-icon-theme/hicolor-icon-theme_0.12-1ubuntu1_all.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/libe/libept/libept1_1.0.5build1_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/l/launchpad-integration/liblaunchpad-integration1_0.1.54_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/v/vte/libvte9_0.28.2-0ubuntu2_amd64.deb wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/x/xapian-core/libxapian22_1.2.5-1ubuntu1_amd64.deb wget –c http://us.archive.ubuntu.com/ubuntu/pool/universe/s/synaptic/synaptic_0.75.2ubuntu8_amd64.deb
complete download script synaptic, dependencies. save file synapt.sh in folder “synaptic” created.
3. open terminal (control+alt+t again) , copy/paste following code @ prompt.
code:chmod +x synaptic/synapt.sh
run
code:./synapt.sh
required packages synaptic downloaded “synaptic” folder. they’ll have .deb file extension.
4. use flash drive copy folder offline computer’s home. open terminal , type
code:sudo dpkg –ir synaptic
enter password @ prompt. install synaptic on offline computer. first step done!
step 2: update repositories
software available ubuntu stored on canonical servers. these software groups called repositories. in software installation process synaptic sends message these servers telling them packages download, , installs you. did process manually when installed synaptic in previous step.
before downloading repository, synaptic needs know in repository in first place. each repository contains compressed text file long list of software packages available in repository. synaptic looks @ info , relays in program. since our offline synaptic can’t query server, need download lists of packages, copy them onto offline computer, , tell synaptic on computer info. follow part closely.
note: step users of ubuntu 11.10 oneiric ocelot. i’ll try , keep page updated later versions. same procedures still apply no matter version of ubuntu have; difference name of version.
1. on online computer: direct web browser to
http://ubuntu.secs.oakland.edu/dists/
repositories ubuntu versions hardy heron oneiric ocelot kept. if you’re running oneiric (as tutorial assumes are) select “oneiric”.
take page, you’ll select “main/”.
on next page, select “binary-i386/” if computer 32 bit, or “binary-amd64/” if 64 bit.
on next page, select “packages.gz”.
download compressed text file list of available software in main ubuntu repository. save compressed file (don’t uncompress it!) own folder on flash drive. since you’ll downloading 4 of these compressed files (all having same name) saving them in individual folders keep them sorted out.
go
http://ubuntu.secs.oakland.edu/dists/oneiric/
, follow above procedure “multiverse/”, “restricted/” , “universe/”.
when it’s said , done should have 4 packages.gz files on flash drive.
2. take flash drive the offline computer , open terminal. copy/paste following command-
32 bit system:
for 64 bit system:code:mkdir –p ~/dists/oneiric/main/binary-i386 ~/dists/oneiric/multiverse/binary-i386 ~/dists/oneiric/restricted/binary-i386 ~/dists/oneiric/universe/binary-i386
this command makes number of new folders in home folder. it’s important don’t delete or edit these folders in way in future.code:mkdir –p ~/dists/oneiric/main/binary-amd64 ~/dists/oneiric/multiverse/binary-amd64 ~/dists/oneiric/restricted/binary-amd64 ~/dists/oneiric/universe/binary-amd64
3. copy each packages.gz file corresponding folder in home- i.e., file got main goes in dists/oneiric/main/binary-i386, file multiverse goes in dists/oneiric/multiverse/binary-i386, etc. again, don’t uncompress of these files!
4. once these copied over, open terminal , type
code:synaptic
open synaptic package manager. in synaptic, click settings>repositories.
bring repository dialog box. select “other software” tab.
select “add…”.
you’ll doing telling synaptic can find software information other online repositories.
in add repository dialog, type following
code:deb file:/home/your_user_name oneiric main
obviously, change your_user_name user name. note after user name there’s space, name of ubuntu version (oneiric), space, , repository name (main, multiverse, universe, restricted).
click add source , you’re done. repeat process, substituting name of each repository “main”. when you’re done you’ll have added 4 new repositories. should this.
synaptic automatically add 4 other “source code” repositories. in experience offline package managing these don’t serve purpose , generate confusing error messages, go ahead , remove each 1 has “source code” appended end of name.
when you’re done that, close out of repositories dialog , click large “reload” button in upper left.
reloading process give error message, because wasn’t able contact ubuntu servers. scroll down bottom of error log. if don’t see errors added repositories, update successful!
you’re set install software now! info on how started that, see my other tutorial on how install software offline using synaptic.
trying solution 10.04 results in of package management utilities no longer being able open and, reason, terminal no longer being able open.
said, i'll have more info when have time fix problem makes viewing errors pain.
now, there changes i'd need make (besides obvious change repository name) make work 10.04 might result in program installing unmet dependencies (the error saw said cause).
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Offline Synaptic Installation/Repository Updates
Ubuntu
Comments
Post a Comment