[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem understanding/using dpkg-scanpackages



On 11/8/13, Richard Owlett <rowlett@cloud85.net> wrote:
> Zenaan Harkness wrote:
>> On 11/7/13, Richard Owlett <rowlett@cloud85.net> wrote:
>>> I purchase complete DVD sets.
..
>>> Shuffling DVDs became a pain. I set aside a partition for myown
>>> repository.
..
>> OK, here's a test I just ran, which seems to work, as I'll show below.
..
>> Next, I ran the following command (many warnings are produced):
>> dpkg-scanpackages . | gzip - > Packages.gz

>> Next I added the following line to /etc/apt/sources.list, commenting
>> out all other lines in that file:
>> deb file:/media/repo6 ./
>>
>> Finally I ran the following command:
>> apt-get update
>>
>> and got this output:
>> Ign file: ./ InRelease
>> Ign file: ./ Release.gpg
>> Ign file: ./ Release
>> Ign file: ./ Translation-en_AU
>> Ign file: ./ Translation-en
>> Reading package lists... Done

> I followed your work flow.
> I was able to install,using synaptic, two applications - wine and
> zork:
>     1. wine because I actually need it
>     2. zork because at least some of the files were on the last DVD
>
> Although everything seemed to function correctly, some of the
> details were not as I expected.
>
> When installing the applications, they did not authenticate
> although they came from distribution DVD's.

The procedure I use is the quickest solution to get the packages off a
DVD/CD set and into a usable local repo. Because they are the only
files you are using, you must trust those files (off the DVD set)
implicitly - ie there is rather little advantage to be gained by
re-checking GPG signatures every time you install something. Besides,
setting up a full signed repo was not the problem statement and there
are other threads, and wiki sites, which explain how to do that.

> In a previous round
> of my experiments wine had installed properly when following
> normal procedures for installing from CD/DVD.
>
> Also, during installation of both wine and zork Synaptic paused

I assume here that you now mean "on this round" (not the previous round)..

> requesting that the 1st DVD of the distribution be installed.

This should not happen and does not make sense to me.

This implies very strongly that you failed to properly comment out
all other lines in your existing /etc/apt/sources.list file
before adding the "deb file:/..." line suggested.

Please chech your /etc/apt/sources.list and see if this is the case or not.
Remember, the DVD lines look quite different to "normal" lines in that file.

> Long term that is not acceptable as my eventual goal is "DVD
> free" application installations.

I assume here that you mean:
"sans-DVD _and_ sans-network installations",
in which case, as mentioned previously, get to know debmirror (which I
currently use - I can send you my wrapper script if you wish) or
reprepro.

> Also I noted your procedure did not copy the "dists" directory
> from the DVDs nor mention distribution name nor whether
> applications were from main or contrib.

This is true. The procedure shown is the "quick and dirty" way to get
a local hierarchy from a DVD set.

If your DVD set contains packages from >1 distribution, then you will
need something a little more elaborate, but that would rarely be the
case.

So yes, with this procedure, you do need to use packages from a DVD
set which matches the distribution you have installed on the partition
you are installing packages to...

> As my test machine has had many strange things done it in the
> last couple of months, I'll wipe the hard drive and do a clean
...

Sounds like you're having fun :)

Good luck,
Zenaan


Reply to: