Re: Having trouble adding local repository to remastered iso
On Fri, Dec 12, 2014 at 03:33:28AM +0000, ryan wrote:
> I am trying to add a local reprepro created repository containing some
> custom debs along with all the deps that get hauled in with it. I built
> the repository by installing a stock 7.7, then apt-getting all software
> and retrieving the debs from /var/cache/apt/archives.
>
> Fired up reprepro to build the repository (containing both i386 and amd64)
> and reprepro chugs away and builds the repository without issues.
>
> reprepro config
> Origin: Wheezy
> Label: Wheezy install
> Codename: wheezy
> Architectures: i386 amd64
> Components: main
> Description: Apt repository for Install
>
> The repository relative to the root of the iso is at
>
> /ads/apt/debian
>
> test@textbox:/var/opt/wheezy/master/ads/apt$ tree
> .
> `-- debian
> |-- dists
> | `-- wheezy
> | |-- Release
> | `-- main
> | |-- binary-amd64
> | | |-- Packages
> | | |-- Packages.gz
> | | `-- Release
> | `-- binary-i386
> | |-- Packages
> | |-- Packages.gz
> | `-- Release
> `-- pool
>
>
> Pertinent entries in my preseed are
>
>
> d-i apt-setup/local0/repository string \
> file:/ads/apt/debian wheezy main
> d-i debian-installer/allow_unauthenticated boolean true
>
> Preseeded install works fine, installs the base system, but the
> additional repository never gets configured properly, resulting in the
> additional software not getting installed. But leaves a usable stock
> system.
>
> Installer logs when apt fails to find the files
>
> Dec 12 03:08:32 debconf: --> GET apt-setup/use_mirror
> Dec 12 03:08:32 debconf: <-- 0 false
> Dec 12 03:08:32 debconf: --> PROGRESS SET 700
> Dec 12 03:08:32 debconf: <-- 0 OK
> Dec 12 03:08:32 apt-setup: warning: /usr/lib/apt-setup/generators/50mirror
> returned error code 1; discarding output
> Dec 12 03:08:32 debconf: --> PROGRESS SET 800
> Dec 12 03:08:32 debconf: <-- 0 OK
> Dec 12 03:08:32 debconf: --> PROGRESS INFO apt-setup/progress/local
> Dec 12 03:08:32 debconf: <-- 0 OK
> Dec 12 03:08:32 debconf: --> GET apt-setup/local0/repository
> Dec 12 03:08:32 debconf: <-- 0 file:/ads/apt/debian wheezy main
> Dec 12 03:08:32 debconf: --> GET apt-setup/local0/comment
> Dec 12 03:08:32 debconf: <-- 10 apt-setup/local0/comment doesn't exist
> Dec 12 03:08:32 debconf: --> GET apt-setup/local0/key
> Dec 12 03:08:32 debconf: <-- 10 apt-setup/local0/key doesn't exist
> Dec 12 03:08:32 debconf: --> GET apt-setup/local0/source
> Dec 12 03:08:32 debconf: <-- 10 apt-setup/local0/source doesn't exist
> ....
> Dec 12 03:08:33 in-target: Ign file: wheezy Release.gpg
> Dec 12 03:08:33 debconf: --> PROGRESS SET 900
> Dec 12 03:08:33 in-target: Ign file: wheezy Release
> Dec 12 03:08:33 in-target: Err file: wheezy/main amd64 Packages
> Dec 12 03:08:33 in-target: File not found
> Dec 12 03:08:33 in-target: Ign file: wheezy/main Translation-en_CA
> Dec 12 03:08:33 in-target: Ign file: wheezy/main Translation-en
> Dec 12 03:08:33 debconf: <-- 0 OK
> Dec 12 03:08:33 in-target: W: Failed to fetch
> file:/ads/apt/debian/dists/wheezy/main/binary-amd64/Packages File not
> found
> Dec 12 03:08:33 in-target:
> Dec 12 03:08:33 in-target: E: Some index files failed to download. They
> have been ignored, or old ones used instead.
>
> I've tried changing the apt-setup/local0/repository string to each of the
> following and each time it fails to find the Packages file.
>
> file:/media/cdrom/ads/apt...
> file:/cdrom/ads/apt...
>
> I know the repo does work, after booting into the freshly installed
> system and mounting the cdrom, I can fix sources.list to point to
> /media/cdrom/ads/apt/debian and apt will update and install all apps fine.
>
> I had this working at one point with a simple repo using dpkg-scanpackages,
> but once we had to install i386 and amd64, started using reprepro to build
> the repo. So I'm assuming I've got some kind of syntax error/typo here.
Did you gzip the Packages file? it might be looking for
file:/ads/apt/debian/dists/wheezy/main/binary-amd64/Packages.gz
Another thing is that I believe file URLs are supposed to be
file:///ads/apt/... (That is really supposed to be 3 slashes at the start)
--
Len Sorensen
Reply to: