LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-28-2016, 02:32 AM   #1
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 21

Rep: Reputation: 0
hoping to install Jessie packages from 9 iso files, without CDs


Jessie installed from the 1st amd64 iso, on a USB drive.
Then, I tried apt-get install gpm, for the console mouse, but no packages could be found.
I mounted iso files 1 through 5, plus kde, in alphabetically named directories under /mnt.
(for example, mount -o loop -t iso9660 1.iso /mnt/i, snd
mount -o loop -t iso9660 kde.iso /mnt/k
and all the files appeared to be in their directories
)
and then typed
apt-get -m -d=/mnt/k add
which seemed to work for the kde iso and for isos 1-5.
Lines for deb cdrom: were added in /etc/apt/sources.list, which also had 2 lines written at the bottom:
deb file:mnt/i stable contrib non-free
and
deb src:mnt/i stable contrib non-free
I didn't type "apt-get update", but tried
apt-get install gpm
resulting in "package has no candidates".
I edited the last lines in sources.list to
deb file:/1.iso jessie main contrib
but that didn't seem to help.
Is there another way to point apt-get to all of the directories, which seem to have all of the CD files?
I transferred isos 6, 7, and 8 later from this machine, to the newly installed machine, which is resting peacefully now.
Thanks for your advice.
 
Old 06-28-2016, 06:37 AM   #2
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 564

Rep: Reputation: 131Reputation: 131
Do you have any network connection available? If so, why don't you let apt get gpm (and any package) from the online repos?
If there is no internet connection available, apt, as you have it confitgired now, can only use packages that are in the 1st iso. If you mount or copy any iso, you HAVE to run apt-get update so that apt sees the packages each iso contains.
 
Old 06-28-2016, 07:52 AM   #3
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jim_p View Post
Do you have any network connection available? If so, why don't you let apt get gpm (and any package) from the online repos?
If there is no internet connection available, apt, as you have it confitgired now, can only use packages that are in the 1st iso. If you mount or copy any iso, you HAVE to run apt-get update so that apt sees the packages each iso contains.
Thanks, and I have an internet connection, but I just thought that I could get all the packages from the 9 isos. Tomorrow I'll try
"apt-get update"
with that installation and try for the console mouse and vim.
After the installation, apt-get did install xorg, but kde-base wasn't found, so 'startx' produced only 1 line, too small to read, in the monitor's upper left corner.
Could apt be configured to use packages on the other 8 isos I have copied into /?
Thanks again.
 
Old 06-28-2016, 09:38 PM   #4
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 21

Original Poster
Rep: Reputation: 0
apt-get install was able to find and install vim, the General Purpose Mouse, and 4 large kde-base packages, after I repeated the mount -o loop -t iso9660 1.iso /media/cdrom
followed by
apt-cdrom -m -d=/media/cdrom add
and
apt-get update
with those 3 commands repeated for kde.iso and the other 7 iso files.
and 9 new lines, beginning with
deb cdrom:
were written into /etc/apt/sources.list
and apt-get install gpm instructed me to insert CD 4.
The machine has no CD reader, so I re-mounted 4.iso, and the gpm mouse installed on the next attempt.
One small hitch with the kde-base packages was when apt-get instructed me to remove the kde CD, and insert CD 1.
But that was only needed for kde-base-artwork.
And then with 'startx', the X server started briefly and stopped, so the installation has no desktop yet.
 
Old 06-29-2016, 11:59 AM   #5
andre@home
Member
 
Registered: Oct 2003
Distribution: 2x Debian 8.1 webdav servers
Posts: 93

Rep: Reputation: 44
My source list looks as:
Quote:
deb http://http.debian.net/debian/ jessie main
deb-src http://http.debian.net/debian/ jessie main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
Never put the DVD's into it and using the packaging software can install everything.
Can't rembember if there was a question on it where to get the software source from DVD or internet????

Look further in the Debian manuals, like:
https://www.debian.org/doc/manuals/d...e/ch02.en.html
 
Old 06-29-2016, 11:52 PM   #6
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by andre@home View Post
My source list looks as:


Never put the DVD's into it and using the packaging software can install everything.
Can't rembember if there was a question on it where to get the software source from DVD or internet????

Look further in the Debian manuals, like:
https://www.debian.org/doc/manuals/d...e/ch02.en.html
Thanks for your answer.
Because I'd already downloaded 9 iso files of ~650 megabytes each, the best economy of time and electricity seemed to be to use those iso files, which apt-get 'believes' are CDs, if they're mounted on /media/cdrom.
But it was a problem for me when apt-get said 'media change: please insert the CD named "......7.iso" into the drive and press 'enter', because the machine has no CD drive...nor CDs.
So I'm trying to learn how to put BASH processes into the background and retrieve them...but I was able to install packages without the internet connection.
The machine now is resting again, with a new problem, and I may need to start another thread if I can't fix the new problem soon.
 
Old 06-30-2016, 05:38 AM   #7
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
+1 on useing the net as the packages will be up to date, good idea with a network connection and security.

Someone may know how to use the iso files like your thinking, my first thought was rip the archives apart to install individually or better yet somehow build your own repo?

Or, could you loop mount all the isos? http://www.cyberciti.biz/tips/how-to...der-linux.html

Have fun!
 
Old 06-30-2016, 06:45 AM   #8
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
One "hack" to reduce the downloads, is to unpack all the .deb files from the ISO files and put them in the /var/cache/apt/archives/ directory. Then those .deb files will not be downloaded, unless there are newer upgrades online. I did it many years ago - not sure if it workds with new Debian versions, but I think so.
 
1 members found this post helpful.
Old 07-01-2016, 01:09 AM   #9
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jamison20000e View Post
+1 on useing the net as the packages will be up to date, good idea with a network connection and security.

Someone may know how to use the iso files like your thinking, my first thought was rip the archives apart to install individually or better yet somehow build your own repo?

Or, could you loop mount all the isos? http://www.cyberciti.biz/tips/how-to...der-linux.html

Have fun!
I mounted all 9 of them, 1 at a time, and found that /media/cdrom was the directory to mount them to, because that directory persuaded apt-get to believe that each iso file was a real plastic disk(CD, not DVD, because these isos are all less than 700 mB).
My problems were when apt-get wanted me to remove one disk and insert another, because the command line prompt stopped.
I used Alt+F4 to get a new bash prompt, from which I could mount the next requested CD's iso file equivalent.
And, in some cases, apt-get wouldn't work, and asked if another process was using the file!
So I need to learn how to move the apt-get process to the bash background, while I can use the mount command in the bash foreground, so I need more clues at the prompt.
 
Old 07-01-2016, 01:21 AM   #10
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Guttorm View Post
One "hack" to reduce the downloads, is to unpack all the .deb files from the ISO files and put them in the /var/cache/apt/archives/ directory. Then those .deb files will not be downloaded, unless there are newer upgrades online. I did it many years ago - not sure if it workds with new Debian versions, but I think so.
Thanks for that, and I certainly will try that tomorrow.
All but 1 of the iso files were lost from that machine, because I got stuck with the wrong window manager, and the easiest fix was to re-install Jessie, from the kde iso on a 1 gB USB stick.
I used
dd if=/dev/sdb of=/k.iso to make that 1 iso from the USB stick contents, and to store it in /, and then to let the 'apt-cdrom' add function memorize all k.iso's packages.
I've been using an old 3.2 gB hard drive on a USB cable to move the files from this machine to the new machine, and I'll move the other iso files between machines tomorrow.
 
Old 07-01-2016, 10:35 PM   #11
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
If you want to install from a local source, then you should build a debian mirror using the ftpsync scripts. You need about 800GB storage space to mirror x86 and amd64 architectures without sources. The ISOs expire too fast to be of any real use. You can update the mirror every day, so it won't expire.
 
Old 07-04-2016, 11:37 PM   #12
anthonydonelly
LQ Newbie
 
Registered: May 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AwesomeMachine View Post
If you want to install from a local source, then you should build a debian mirror using the ftpsync scripts. You need about 800GB storage space to mirror x86 and amd64 architectures without sources. The ISOs expire too fast to be of any real use. You can update the mirror every day, so it won't expire.
The storage space now is one 40 gB SATA drive, with Debian Jessie and Windows 10 Pro each in half of that drive, and I think I still need Windows to use my old Photoshop 7.
At least the 9 .iso files did allow apt-cdrom to index all of the packages on all 9 pseudo-CDs into the apt-cache, which I can search to find packages I may need later.
I edited /etc/default/grub with minor changes, and also think it could be disturbing/frightening for new installers who may have only used Windows, to see the boot menu appear for less than 1 second, with text too small to read, before booting into Debian Jessie.
That machine is working OK, but needs more work, later.

Last edited by anthonydonelly; 07-04-2016 at 11:39 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using ISO files on shared drive rather than CDs bajones Linux - Newbie 2 06-23-2008 11:21 AM
Burning 2 Iso files for CDs in one DVD Carroarmato0 General 3 11-05-2005 07:09 AM
Create ISO files from audio, data and video cds Bateman Linux - General 4 06-19-2005 03:02 AM
Which ISO CDs I need to install Debian..?? avols143 Linux - General 3 03-28-2004 06:23 AM
Can I install packages from the Slack CDs? dhrivnak Slackware 2 11-05-2003 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration