Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-02-2010, 02:58 AM
|
#1
|
Member
Registered: Oct 2008
Posts: 908
Rep:
|
How to install all packages from iso file without physical cd
I had installed a debian file using
#dpkg -i <file>
Now package manager gave count error though that debian file got installed.I tried
#apt-get install -f
It says want to download 20MB but no internet on my pc so destined to fail.
In synaptic package manager I selected broken packages & marked them for removal.I saw file-roller,totem.seahorse,nautilus etc. got uninstalled.
question ) I just have iso image of my ubuntu 8.04.How can I use it to install all packages that come by default on cd.
|
|
|
01-02-2010, 02:59 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
you can mount a cd image using "mount -o loop cd.iso /mnt" or use the iso image in place of device references, e.g. /dev/dvd.
|
|
|
01-02-2010, 03:01 AM
|
#3
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
I have learnt
LESSON FOR ALL
if broken packages error then do
Code:
#dpkg --configure -a
#apt-get install -f
My question in first post is still unsolved ?
|
|
|
01-02-2010, 03:01 AM
|
#4
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Use apt-cdrom
Then follow the prompts.
for more info.
This will add an entry to your sources.list. Since you say you have no internet connection you should comment out the other entries, then do:
Code:
sudo apt-get update
sudo apt-get -f install
Cheers,
Evo2.
Last edited by evo2; 01-02-2010 at 03:04 AM.
Reason: more info
|
|
|
01-02-2010, 03:08 AM
|
#5
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
i mounted
sudo mount -o loop /data/ubuntu.iso /cdrom
Then I ran
sudo apt-cdrom add
Using CD-ROM mount point /cdrom/
Unmounting CD-ROM
Waiting for disc...
Please insert a Disc in the drive and press enter
Mounting CD-ROM...
E: Failed to mount the cdrom.
Note I don't have real physical disk just iso file.
Also I commented all lines from /apt/get/sources.list except cdrom & did 'apt-get update' before using above commands
Last edited by sumeet inani; 01-02-2010 at 03:10 AM.
|
|
|
01-02-2010, 03:15 AM
|
#6
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
You need to put an entry in fstab and then tell apt-cdrom what the mount point is using the -d flag.
Try adding a line like the following to /etc/fstab
Code:
/data/ubuntu.iso /cdrom iso9660 ro,noauto,user,loop=/dev/loop 0 0
Then run apt-cdrom like:
Code:
apt-cdrom -d /cdrom add
Evo2.
PS. Don't mount the iso yourself: let apt-cdrom do it using the info you put in fstab
Last edited by evo2; 01-02-2010 at 03:18 AM.
Reason: fix fstab entry
|
|
|
01-02-2010, 03:42 AM
|
#7
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
I am able to mount iso as cd & apt-cdrom recognises it.
But question is
How can I tell system to install all packages found on cdrom because I don't remember 20 packages uninstalled.
i also tried
#apt-get install nautilus
but message is usual 'no installation candidate'
Also
#apt-get upgrade
#apt-get dist-upgrade
gave no help.
Also my system has no internet.
|
|
|
01-02-2010, 03:46 AM
|
#8
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Quote:
Originally Posted by sumeet inani
But question is
How can I tell system to install all packages found on cdrom
|
Ohh, that should be easy. Just mount the cdrom and do
Code:
dpkg -i $(find /cdrom -name '*.deb')
Evo2.
PS. Not sure why you would want to install *all* the packages though.
Last edited by evo2; 01-02-2010 at 03:48 AM.
|
|
|
01-02-2010, 03:48 AM
|
#9
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Let's say you mounted the .iso image at /media/cdrom. In /etc/apt/sources.list language, that would be: deb file:///media/cdrom/ squeeze main contrib non-free. If you don't want to use non-free, just leave it out. Now, apt-get will use the cd image file to install.
|
|
|
01-02-2010, 03:59 AM
|
#10
|
Member
Registered: Oct 2008
Posts: 908
Original Poster
Rep:
|
My aim is those packages which get installed by default using cd like nautilus,totem should be installed on system ?
|
|
|
All times are GMT -5. The time now is 11:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|