Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to create a custom Debian liveCD using live-helper, but offline. It was more or less possible with apt-cdrom (using the official DVDs to solve all the dependencies).

I did lh config and then lh build, like I'm supposed to. Problem is it failed and gave me this error:

E: Failed getting release file: http://ftp.de.debian.org/debian/dists/squeeze/Release

I poked around the internet and found an option about --mirror-bootstrap and using it to redirect to http://localhost/debian, but it gives the same error. I even tried fetching the Release file and using a local path (eg /root/debian/dists/squeeze/Release), but it wouldn't recognize it. I seem to need to use a URL, but I can't use a url to redirect to local hard drive.

I did find this though: http://lists.debian.org/debian-live/2007/07/msg00152.html
I didn't find any solution there, but it's the most information I could find.

I can't connect that computer to the internet, what can I do??

share|improve this question
    
Are you running a web server? –  Tshepang May 31 '11 at 14:58
    
nope. Just basic Debian, not even with a GUI. –  user May 31 '11 at 15:26
    
Run a web server (I recommend cherokee... for your purpose, it won't need any setup), add a link to your local repository (sudo ln -s /root/debian /var/www), and try again. –  Tshepang May 31 '11 at 16:20
    
the hell? why does it have to be so complicated? –  user Jun 5 '11 at 5:29
    
It's just two steps... install a web server and tell it where your repository is located. –  Tshepang Jun 5 '11 at 12:39
show 4 more comments

1 Answer

up vote 2 down vote accepted

These instructions assume that you want to create a live disc from just one Debian DVD (or CD). I don't know how to combine different CD/DVD images to be one repository.

  1. Install a web server:

    sudo apt-get install cherokee
    
  2. Create a mount point on the web server path and mount the disc:

    sudo mkdir /var/www/squeeze
    sudo mount /dev/scd0 /var/www/squeeze
    
  3. Create a directory which will contain the configs and the live disc and navigate to it:

    mkdir /path/to/live-build-dir
    cd /path/to/live-build-dir
    
  4. Run live-build config generator:

    lb config --mirror-bootstrap http://localhost/squeeze
    

    Look at lb_config manpage for a myriad other options. Also, ensure to wipe out your config directories if you re-run lb config command. Look at the docs for an explanation.

  5. Build the live disc:

    sudo lb build
    

NOTES:

  • I've tried with direct file access (file:/path/to/apt-repository), and it doesn't work. Probably a bug.

  • If you want to build Squeeze images, use the Squeeze version of live-build. The version in Wheezy or Unstable is currently broken, and the developers discourage it's usage, other than for testing. The config formats are not even compatible.

share|improve this answer
    
I'm going in this direction, I got cherokee working and files there seem to work. How do I get a local repository? I'm not 100% sure what does it mean, can you explain in a sentence? (like, do I run apt-local get_repository or something?) I got a local repository in the form of the installation DVD, and someone mentioned I can mount them to /var/www/, how do I do that? (just mount /dev/hdc /var/www apt-repository?) –  user Jun 15 '11 at 17:04
    
I added the info addressing your question on the Answer. –  Tshepang Jun 15 '11 at 17:53
    
Thanks. You rock! –  user Jun 15 '11 at 19:03
    
It failed on "installing base packages", specifically isc-dhcp-common. bah. What now? –  user Jun 16 '11 at 5:27
    
Can you update your post with the exact error message as well as the exact disc (e.g. Debian 6.0.1 disc1). –  Tshepang Jun 16 '11 at 6:49
show 15 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.