Archive for December, 2009

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.


$ 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 !

அருளாளன் . த


Grub2 – In Ubuntu 9.10

How to update Grub2  in ubuntu 9.10

Grub2 is the powerful tool to update the grub while installing multi-operating system .

upto ubuntu 9.04 releases, we have only Grub .

From ubuntu 9.10 , we have the next version of Grub. Its most powerful tool to normal Linux users.

Here we will see , how to setup Grub-2.

In my system , first I installed opensolaris .   Then I installed ubuntu 9.10 . But , the bad thing is , linux ext3 and ext4 file formates os like ubuntu can not update opensolaris , automatically.

For that, we need to do the following  four simple steps.

Grub2 Seetings.


arul@arul-desktop:~$ sudo fdisk -l

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x42b442b3

Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1218     9783553+  83  Linux
/dev/sda2   *        1219        2537    10590208   bf  Solaris
/dev/sda3            2538        4865    18699660    5  Extended
/dev/sda5            2538        3771     9912073+  83  Linux
/dev/sda6            3772        4865     8787523+  83  Linux


sudo gedit /etc/grub.d/40_custom

exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the ‘exec tail’ line above.

menuentry “OpenSolaris 06-2009” {
set root=(hd0,2)
chainloader +1

# we have to add these three lines to add opensolaris os into our grub
# here , /dev/sda2 is equavellent to (hd0,2).


sudo chmod a+x /etc/grub.d/40_custom


sudo update-grub2

Thats all.   simply superb ! Now reboot your system and access other os via Grub2 .


அருளாளன் . த