Solution : How can we update the package lists & install packages in newly installed os [ubuntu] without Internet and Repository DVDs


problem :

My friends having system which is installed ubuntu 9.10 . But they dont have Internet connection to update package list and can’t install any applications.

But I am having Internet connection and I installed many essential packages in my system.

How can we transfer the archives (i.e. deb files ) and as well as packages lists ( i.e. Index list in Synaptic Package Manager ) to newly installed system , os as ubuntu ?

Solution :

Myself and my brother Pasupathy were tried to solve this problem and finally we achieved too.

Just do the following simple steps .

1) Install ubuntu in one system say  ” system A ” and update the system via Internet . Now the index list of synaptic package manager having 28,878 files [ in ubuntu 9.10 ].

2) Install the essential applications and softwares. for eg : ubuntu-restricted-extras , vlc , mplayer , compizconfig-settings-manager , etc.,

Take Backup :

3) copy the package lists and its information to show in synaptic , from the updated system by the following command

$ mkdir   /home/[user name]/backup/

$ sudo cp -r /var/lib/apt/lists  /home/[user name]/backup/

4) copy the package lists in binary format

$ sudo cp /var/cache/apt/pkgcache.bin  /home/[user name]/backup/

$ sudo cp /var/cache/apt/srcpkgcache.bin  /home/[user name]/backup/

5)  Now we are going to backup the archives directory. It contains .deb files.  While installing any application from net , the downloading files are storing in this directory only (as .deb)

$ sudo cp -r /var/cache/apt/archives  /home/[user name]/backup/

Copy this backup folder into Pen drive.

Thats all ! we backuped all our resource from the system which is updated via Internet also installed many applications.

Update & Install the applications in freshly installed [ubuntu] system ( sys ” system B ” ) without Internet and Repository Dvds.

Open synaptic package manager and note the no of index package lists . ( approximately 1300)

Plug the pen drive into this system and copy the “backup” directory into that home directory.

Now

$ cd  backup

$ ls

archives  lists  pkgcache.bin   srcpkgcache.bin

$ sudo cp -r lists   /var/lib/apt/

$ sudo cp pkgcache.bin  /var/cache/apt/

$ sudo cp srcpkgcache.bin  /var/cache/apt/

$ sudo cp -r archives   /var/cache/apt/

———-

Thats alllllll.

Now go and open the synaptic package manager .   Wow ! Oops !   Now the no of packages lists in that is 28,878 .

Now u can install , whatever u backuped installed applications from the ” system A ” , “system B ” also can install those packages without download from the Internet or repository Dvds .

Now try to install ubuntu-restricted-extras , vlc , mplayer , compizconfig-settings-manager .  With 1 min , it should be installed.

I hope , this may helps to ubuntu admin .

The only  , we can not install the application beyond the backuped source from “system A” without Internet .thing

Now in kanchilug , we are installing the packages in various systems by this way only .   It works well !

அருளாளன் . த

Advertisements

7 responses to this post.

  1. Posted by wahyudi on March 12, 2010 at 5:46 am

    Thank’s, My problem’s is solved

    Reply

  2. Posted by Rsk on April 12, 2010 at 3:30 pm

    I took the back up as mentioned. But how to install in system B(which doesn’t have access to internet) . Using apt-get method ?

    Reply

    • Posted by Rsk on April 12, 2010 at 5:05 pm

      Now found the method to install in System – B. Just follow the steps below :

      > cd /var/cache/apt/archives/
      > sudo dpkg -i *.deb
      > sudo apt-get -f install

      This will configure and install in new machine.

      Article was useful.

      Reply

  3. Posted by Navaneethan on May 6, 2010 at 9:13 pm

    only we need to copy those files into system B …is it enough?? or to do sudo dpkg -i *.deb….what does it do??Is it needed to do that operation??

    Reply

    • Posted by Senthil(webrsk) on May 6, 2010 at 11:35 pm

      @Navneethan: Yes once copied the files to system B , you have to do the remaining steps as mentioned. sudo dpkg -i *.deb will install the deb files to the system. Its mandatory.

      Reply

  4. You guys might find this helpful. I’ve built Keryx for exactly this situation. It’s even handier because you don’t have to have another Ubuntu machine, you can download packages and dependencies from any machine. http://keryxproject.org Let me know what you guys think. We’ve got a lot of planned features coming!

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: