Jeff Hoog Land

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 13 June 2010

HOWTO: Installing Ubuntu Packages Offline

Posted on 16:29 by Unknown
Something that is difficult to do in Ubuntu (and Linux in general) is installing packages on a system without an active internet connection. This is a brief HOWTO for easily installing packages on an offline Ubuntu system. In order to do this you will need another system (preferably something with Linux) that has an active internet connection as well as a flash drive.

Step 1 - Manually performing an apt-get update
This step is optional if your system was online at some point, however if the system never had an internet connection (or never had apt-get update run) you will need to manually update the packages lists.

To do this goto your system that has an active internet connection, open a terminal and run the following commands in order:

wget http://archive.ubuntu.com/ubuntu/dists/lucid/main/binary-i386/Release
mv Release archive.ubuntu.com_ubuntu_dists_lucid_Release

wget http://archive.ubuntu.com/ubuntu/dists/lucid/main/binary-i386/Packages.bz2
bunzip2 Packages.bz2
mv Packages archive.ubuntu.com_ubuntu_dists_lucid_main_binary-i386_Packages

wget http://archive.ubuntu.com/ubuntu/dists/lucid/restricted/binary-i386/Packages.bz2
bunzip2 Packages.bz2
mv Packages archive.ubuntu.com_ubuntu_dists_lucid_restricted_binary-i386_Packages

wget http://archive.ubuntu.com/ubuntu/dists/lucid/universe/binary-i386/Packages.bz2
bunzip2 Packages.bz2
mv Packages archive.ubuntu.com_ubuntu_dists_lucid_universe_binary-i386_Packages

wget http://archive.ubuntu.com/ubuntu/dists/lucid/multiverse/binary-i386/Packages.bz2
bunzip2 Packages.bz2
mv Packages archive.ubuntu.com_ubuntu_dists_lucid_multiverse_binary-i386_Packages


This should generate five files for you, copy them to your flash drive. Take the flash drive over to your Ubuntu system that is offline and copy them to

/var/lib/apt/lists

Note, you will need super user privileges to do this. To open a super user file manager on Ubuntu run

sudo nautilus

Step 2 - Generating Package List
On your offline system we now need to generate the list of packages we want to install. For this example I am going to use the wine1.2 and filezilla packages, however it will work for any package(s). On the offline system run the following in terminal


Due to issues with the terminal code posting on blogger the two lines needed can be found here.

Note you can list as many (or as little) packages as you want to install. Take the apt_list_new file we just generated and copy it to your flash drive.

Step 3 - Download the Packages
Plug the flash drive with the apt_list_new file into your computer that has an internet connection. Copy the file to the desktop of the computer and then run the following in terminal


cd ~/Desktop && wget -i apt_list_new

The above command will download all the packages you need to your desktop, copy them to your flash drive.

Step 4 - Installing the Packages
Attach the flash drive you copied all the packages onto to your offline system. Next, copy all the files ending in .deb to /var/cache/apt/archives as root. Finally run


sudo apt-get install wine1.2 filezilla

It will tell you "Need to download 0 of XMB" just enter "y", press enter, and poof! Your software will be installing.

Have any issues or suggestions on an easier method of installing software on an offline Ubuntu system please drop a comment below. Also, if you only have a windows system with an internet connection available to you a LiveCD is a good option or you can always install wget on Windows.

Cheers,
~Jeff Hoogland
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in howto, software, ubuntu, wine | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Twenty Sleek GTK Themes for your Linux Desktop
    Last month I posted about twenty two different icon sets you could use to class up your Linux desktop. Today I would like to share with you...
  • Lenovo Multimedia Remote (Keyboard/Mouse) Review
    Whenever I am working on something, be it homework or one of my various tasks for Bodhi I almost always have the TV on in the background. I...
  • HOWTO: Start an SSH Session from ChromeOS
    My lovely fiance knows how much I love my toys and opted to get me one of the new ARM based Chrome books as an early Christmas present. I...
  • HOWTO: Bodhi Linux on Samsung ARM Chromebook
    The battery recently died in my old Asus Netbook which gave me some fire to finally get together a functional filesystem for the Samsung Ch...
  • HOWTO: Ubuntu Linux on T101MT
    I wrote a HOWTO for getting Linux working on the T91MT a couple months back and as I mentioned here I ended up changing to the slightly la...
  • HOWTO: Test E18, EFL 1.8.0, and Terminology 0.4.0 on Bodhi Linux
    As of this past weekend the testing builds of the Enlightenment window manager DR18 (E18 for short) are in the Bodhi Linux testing repositor...
  • Bodhi Linux 2.4.0 Released
    It has been close to six months since our last Bodhi Linux release - far too long! This is just our normal update release - meaning if you...
  • Bodhi Linux 2.3.0 Released
    After almost exactly three months since our Bodhi 2.2.0 release  the Bodhi team and I are happy to announce the next update release for our ...
  • E17 heading towards a Stable Release - No Really!
    I've been pushing the Enlightenment desktop for some time now and for as long as I've been promoting it I've also been warning ...
  • HOWTO: Watch Netflix on Bodhi Linux
    Not being able to utilize the Netflix video streaming service has been an issue on the Linux desktop for the past few years. This is due to...

Categories

  • 3g modem
  • adobe
  • android
  • appeal
  • apple
  • arm
  • art
  • asus tablet
  • benchmark
  • bodhi
  • bordeaux
  • cedega
  • chakra
  • chrome os
  • chromebook
  • cockatrice
  • codeweavers
  • comic
  • cricket wireless
  • crysis
  • cxgames
  • debian
  • dell duo
  • diablo3
  • distro review
  • dtf
  • e18
  • eandora
  • eccess
  • elementary
  • elive
  • enlightenment
  • fedora
  • firefox
  • gaming
  • genesi
  • gnome
  • google
  • google chrome
  • google wave
  • handheld device
  • hardware
  • helios
  • howto
  • html5
  • ideapad
  • interview
  • ipad
  • jolicloud
  • kde
  • l4d2
  • laptops
  • lenovo
  • linux
  • lxde
  • macbook
  • math
  • maxima
  • media
  • meego
  • milestone
  • mint
  • mir
  • mk802
  • moblin
  • n900
  • netflix
  • nexus 7
  • nvidia
  • open pandora
  • open source
  • opengl
  • opera
  • operating systems
  • palm
  • phones
  • promotion
  • python
  • qt
  • rant
  • raspberry pi
  • reviews
  • sabayon
  • software
  • source games
  • spotlight
  • sprint
  • starcraft2
  • steam
  • t-mobile
  • tutorial
  • ubuntu
  • unigine
  • unity
  • wayland
  • web application
  • windows
  • windows 7
  • wine
  • wxmaxima
  • xfce

Blog Archive

  • ►  2014 (1)
    • ►  January (1)
  • ►  2013 (22)
    • ►  December (3)
    • ►  November (1)
    • ►  September (1)
    • ►  June (1)
    • ►  May (2)
    • ►  March (2)
    • ►  February (3)
    • ►  January (9)
  • ►  2012 (57)
    • ►  December (5)
    • ►  November (4)
    • ►  October (2)
    • ►  September (1)
    • ►  August (4)
    • ►  July (9)
    • ►  June (4)
    • ►  May (4)
    • ►  April (1)
    • ►  March (7)
    • ►  February (6)
    • ►  January (10)
  • ►  2011 (107)
    • ►  December (8)
    • ►  November (8)
    • ►  October (5)
    • ►  September (14)
    • ►  August (9)
    • ►  July (8)
    • ►  June (7)
    • ►  May (10)
    • ►  April (9)
    • ►  March (13)
    • ►  February (9)
    • ►  January (7)
  • ▼  2010 (122)
    • ►  December (10)
    • ►  November (8)
    • ►  October (10)
    • ►  September (14)
    • ►  August (17)
    • ►  July (10)
    • ▼  June (9)
      • Locking Down Linux: Is it Necessary?
      • HOWTO: Use Ubuntu Software Center in Mint 9
      • Zorin 3 - Distro Review
      • Why Ubuntu is harder than Windows
      • HOWTO: Installing Ubuntu Packages Offline
      • Netbook MeeGo a NoGo - Review
      • The Four Different Types of Linux Users
      • N900 Opera Mobile - Review
      • Overview and Explanation of Linux Desktop Environm...
    • ►  May (14)
    • ►  April (8)
    • ►  March (7)
    • ►  February (7)
    • ►  January (8)
  • ►  2009 (27)
    • ►  December (10)
    • ►  November (7)
    • ►  October (10)
Powered by Blogger.

About Me

Unknown
View my complete profile