DebianThis forum is for the discussion of Debian Linux.
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.
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.
Hello. I'm fairly new to Debian, but a proficient user in RHEL/FC. In my RHEL environment I've been able to use a trimmed down version of the base install to create a customized repository to install from. I'm trying to to the same thing in Debian, but apparently I'm not doing something correct. I think I have a solid grasp on the structure of the repository (with the pool and dists/wheezy/main and such) but the Packages file that I'm creating always has an error.
Through testing I've discovered that I don't actually need a Packages.gz file, but I need at least a Packages file in each subdirectory off of the dists/wheezy directory and that the md5sum file in the root of the install disc needs to be correct.
One thing I haven't been able to discover, and up-to-date documentation seems to be scarce is how to succesfully produce the Packages file. I've run
Code:
apt-ftparchive generate
and it makes a Packages file, but that file on install always fails with
Code:
Warning: file:///cdrom/dists/wheezy/main/binary-i386/Packages was corrupt
If I look at the Packages file that is generated by my code versus the one from the Debian Wheezy 7.8 install disc they seem to have similar structure and stuff, but my Packages file is listed alphabetically, whereas the one on the Wheezy .iso isn't.
My Packages file starts out:
Code:
Package: a2ps
Version: 1:4.14-1.1+deb7u1
Architecture: i386
Maintainer: Masayuki Hatta (mhatta) <mhatta@debian.org>
Installed-Size: 3645
Depends: libc6 (>= 2.7), libpaper1, dpkg (>= 1.15.4) | install-info, file, psutils
Recommends: bzip2, lpr | rlpr | cupsys-client, wdiff
Suggests: emacsen-common, groff, ghostscript, gv, html2ps, graphicsmagick-imagemagick-compat | imagemagick, texlive-base-bin, t1-cyrillic
Filename: ./main/a/a2ps/a2ps_4.14-1.1+deb7u1_i386.deb
Size: 954622
MD5sum: cefd3ef4eac2babb7102d651d02c5688
SHA1: d12a73680ada198ae0405d5071643915921bd3ae
SHA256: a691251ea166c6642952c41e08965acb3c3ae3a602f0d621d98b117c3da396fc
Section: text
Priority: optional
Description: GNU a2ps - 'Anything to PostScript' converter and pretty-printer
GNU a2ps converts files into PostScript for printing or viewing. It uses a
nice default format, usually two pages on each physical page, borders
surrounding pages, headers with useful information (page number, printing
date, file name or supplied header), line numbering, symbol substitution
as well as pretty printing for a wide range of programming languages.
.
Historically, a2ps started as a text to PostScript converter, but thanks
to powerful delegations it is able to let you use it for any kind of files,
ie it can also digest manual pages, dvi files, texinfo, ....
.
Among the other most noticeable features of a2ps are:
- various encodings (all the Latins and others),
- various fonts (automatic font down loading),
- various medias,
- various printer interfaces,
- various output styles,
- various programming languages,
- various helping applications,
- and various spoken languages.
Package: accountsservice
Version: 0.6.21-8
Architecture: i386
Maintainer: Alessio Treglia <alessio@debian.org>
Installed-Size: 672
Depends: dbus, libaccountsservice0 (= 0.6.21-8), libc6 (>= 2.2.4), libglib2.0-0 (>= 2.31.8), libpolkit-gobject-1-0 (>= 0.99)
Suggests: gnome-control-center
Filename: ./main/a/accountsservice/accountsservice_0.6.21-8_i386.deb
Size: 73116
MD5sum: 9ead24d7b1d794f88f5a5ef350dd6c96
SHA1: ee8c13aa6bcbf4e4075a2140c646720c9b353a57
SHA256: 158ae4e5222490d76449aa32d839b02202e83a95884407fae1921087f07162ae
Section: admin
Priority: optional
Homepage: http://cgit.freedesktop.org/accountsservice/
Description: query and manipulate user account information
The AccountService project provides a set of D-Bus
interfaces for querying and manipulating user account
information and an implementation of these interfaces,
based on the useradd, usermod and userdel commands.
Package: acl
Version: 2.2.51-8
Architecture: i386
Maintainer: Anibal Monsalve Salazar <anibal@debian.org>
Installed-Size: 251
Depends: libacl1 (= 2.2.51-8), libattr1 (>= 1:2.4.46-8), libc6 (>= 2.4)
Filename: ./main/a/acl/acl_2.2.51-8_i386.deb
Size: 70160
MD5sum: b362066cabad3afd04fbf7e258880d8f
SHA1: 54ba460c44ce6150f04434bcd9e7366ec7e3546d
SHA256: d0b9981824df0e235bc2222893f156044c5b36af028fb07991c3373d82ba99c9
Section: utils
Priority: optional
Multi-Arch: foreign
Homepage: http://savannah.nongnu.org/projects/acl/
Description: Access control list utilities
This package contains the getfacl and setfacl utilities needed for
manipulating access control lists.
The Package file on the official Debian 7.8 install disc starts:
I've been able to control the use of SHA512, by passing in options to apt-ftparchive, but that seemed to have no real effect on the Packages file not being "corrupted".
Sorry for the lengthy post, but hopefully I've provided enough information so someone can point me in the right direction.
I will admit I have not tried to do what you are attempting. I have bootstrapped quite a few systems in a chroot environment as well as built live images from scratch for CD, USB, DVDs. I assume you are trying to set up a private repository for PXE boot installation or for select private packages. With that said, I found the following in my searches:
According to this link, apt-ftparchive ihas been deprecated for creating apt repositories. Following the recommendation on that page, you will see that reprepro is what is more commonly used- which is why it is hard to find documentation on the subject.
Thanks, mralk3. I'll try using reprepro (I think I tried this once before) today and see how it turns out. I find it strange that this is such an uncommon practice. I'll post my findings here in case I run into something. Thanks again.
Thanks, mralk3. I'll try using reprepro (I think I tried this once before) today and see how it turns out. I find it strange that this is such an uncommon practice. I'll post my findings here in case I run into something. Thanks again.
I do not think it is as uncommon as it is unnecessary. Debian has many mirrors up already. What most people do is create a small mirror to manage the few custom packages they have created alongside the official mirrors.
Thanks for the links. I guess the part I'm getting stuck about is the fact that I can't create my own disk with a repository on it. None of these tools seem to create a valid 'Packages' file according to the install. The system I'm installing on isn't connected to the internet, so I can't do any type of net install with it.
Thanks for the links. I guess the part I'm getting stuck about is the fact that I can't create my own disk with a repository on it. None of these tools seem to create a valid 'Packages' file according to the install. The system I'm installing on isn't connected to the internet, so I can't do any type of net install with it.
Why didn't you say so!? You can do exactly this with Debian tools as well.
While I have not used the method in the first link, I have used the live systems project to create a bootable live cd that can also be used to install the live cd to disk. It is very easy to create a specific/minimal package list for the live cd disk. Just be sure to include the debian installer on the disk and then you just need to boot up the disk and select the installer. The process has changed a bit since I last did this, but I can try and help you with any questions you have.
The live systems project also has created the Image Autobuilder, which lets you build a iso online and have a link emailed to you for download: http://live-systems.org/build/. I have also not tried this yet, but it allows people who do not have Debian installed to still be able to build a disk.
Thanks again mralk3. I think when I first started this little project I had tried using simple-cdd, can't even remember my issue. I'll revisit this and clean my development environment as it has become a huge mess now with packages and mirrors everywhere. I'm also downloading the debian-live CD now. I'm a little confused how the debian-live CD will help with what I'm doing, but it might provide a little bit of information as to how the process is done. Thanks again.
My suggestion wasn't to download the official pre-built live cd. My suggestion was that you use a custom live cd that you built yourself using the live systems software, or while using image autobuilder (http://live-systems.org/build/). Either method requires that you make sure you include only the packages you need on your minimal system and the Debian installer so that you can install a system using your very own custom live cd.
Once you have built the live cd, boot up and notice the menu. The boot loader will have an option to install the contents of the disc to your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.