difficulties configuring a local repository
Hello All,
I have difficulties configuring a local repository. I installed Debian net-inst on a PC that doesn't have internet access. I then downloaded the full installation DVD's (3 DVD's) using Jigdow. I am trying to set the 1st DVD as a local repository. I ran the dpkg-scanpackages command on the cd and created the .gz file which I called packages-dvd1.gz The exact command I ran is: dpkg-scanpackages /media/cdrom0 /dev/null | gzip -9c > /usr/local/bin/packages/packages-dvd1.gz I put the .gz file in: /usr/local/bin/packages . I also added the line: deb file:/usr/local/bin/packages ./ to the sources.list file and ran the command: apt-get update. The apt-get update command gives a message that it can't find the file /usr/local/bin/packages/packages.gz and it doesn't say anything about packages-dvd1.gz . But I didn't name my packages file: "packages.gz", I named it: "packages-dvd1.gz" . My questions are: 1. Must the packages.gz file be where the actual packages are - on the DVD ? If yes then how do I put it on the DVD, since the DVD is a downloaded .iso image ? and in which directory on the DVD ? 2. Must the packages.gz file be named with this name (packages.gz) and not any other name ? Or is it possible to name it: packages-dvd1.gz ? (like I did) 3. What is the meaning of the " ./ " at the end of the line that I added to the sources.list: deb file:/usr/local/bin/packages ./ Any help appreciated. Babypeng |
did you follow the Debian repository how-to ?
and if you already have the DVD"s you can simply add them to your sources list with apt-cdrom add (section 2.4) |
Is apt-cdrom included with net-inst ?
Is apt-cdrom included with net-inst ?
Thx for the reponses, Babypeng |
well you wouldn't typically use a netinstall.iso to install a machine that isn't connected to the internet. Once the base system is installed apt-cdrom should be available.
If you have the CDROM/DVD to add as a source then why wouldn't you just use it to install the system to begin with.. ??? |
adding stuff to net-inst
Here's the full story:
Downloading net-inst was easier and faster then anything else, and I was lazy. I burned it on a cd and installed on a computer without internet connection. net-inst doesn't have any gui on it and I want to install gnome. I realised I have no choice but to struggle with Jigdo and download the full installation dvd. So now I have a basic net-inst install to which I want to add stuff from the full dvd that I have, and for this purpose I am trying to configure the dvd as a local repository. I didn't try apt-cdrom yet. I'll try it and if I fail I'll post for help. The whole purpose is to learn how to do it, so I don't want to erase the net-inst and reinstall from a dvd. I want to do everything the hard way, so one day I'll stop calling myself "newbie". Thx for the help, This forum is very helpful and I appreciate it alot. Babypeng |
All times are GMT -5. The time now is 11:19 AM. |