Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #237870

Re: Debmirror

From Polyna-Maude Racicot-Summerside <debian@polynamaude.com>
Newsgroups linux.debian.user
Subject Re: Debmirror
Date 2021-07-29 10:20 +0200
Message-ID <CG9qP-4TS-7@gated-at.bofh.it> (permalink)
References (1 earlier) <CEBhv-3GR-1@gated-at.bofh.it> <CEBrb-3Kg-1@gated-at.bofh.it> <CEXrH-lH-1@gated-at.bofh.it> <CF1bX-35W-1@gated-at.bofh.it> <CG6jh-2Qk-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi David,

On 2021-07-29 12:58 a.m., David Wright wrote:
> On Sun 25 Jul 2021 at 09:37:14 (-0400), Polyna-Maude Racicot-Summerside wrote:
>>> On Sun, 25 Jul 2021, 04:41 Polyna-Maude Racicot-Summerside wrote:
>>>     On 2021-07-24 9:33 p.m., David Wright wrote:
>>>     > On Sat 24 Jul 2021 at 19:52:36 (-0400), Polyna-Maude Racicot-Summerside wrote:
>>>     >> Here are the message I get after my debmirror when I do apt-get update
>>>     >>
>>>     >> Err:31 file:/mnt/mirror/debian buster-updates/main amd64 Contents  (deb)
>>>     >>   File not found -
>>>     >> /mnt/mirror/debian/dists/buster-updates/main/Contents-amd64 (2: No such
>>>     >> file or directory)
>>>     >> Reading package lists... Done
>>>     >> E: Failed to fetch
>>>     >> file:/mnt/mirror/debian/dists/buster/main/Contents-amd64  File not found
>>>     >> - /mnt/mirror/debian/dists/buster/main/Contents-amd64 (2: No such file
>>>     >> or directory)
>>>     >> E: Failed to fetch
>>>     >> file:/mnt/mirror/debian/dists/buster-updates/main/Contents-amd64 File
>>>     >> not found - /mnt/mirror/debian/dists/buster-updates/main/Contents-amd64
>>>     >> (2: No such file or directory)
>>>     >>
>>>     >> The command I used for creating the mirror is
>>>     >>
>>>     >> debmirror --all --progress --verbose --method=http
>>>     >> --dist=buster,buster-updates,buster-backports
>>>     >> --section=main,contrib,non-free --arch=amd64,i386 --rsync-extra=none
>>>     >> --source --i18n --keyring /usr/share/keyrings/debian-archive-keyring.gpg
>>>     >> --root=debian --host=debian.mirror.iweb.ca <http://debian.mirror.iweb.ca> /mnt/mirror/debian
>>>     >>
>>>     >> Got idea ?
>>>     >
>>>     > --getcontents ?
>>>     >
>>>     Giving this one a try....
>>>
>> I'm not sure you have close to a clue what my problem is.
>> Because when I simply change my repository to the usual Debian one, I
>> can do my apt cache update properly.
> 
> and then
> 
> On Mon 26 Jul 2021 at 01:12:14 (-0400), Polyna-Maude Racicot-Summerside wrote:
>>>>>
>>>>> --getcontents ?
>>>>>
>>>> Giving this one a try....
>>>>
>>>>
>>> Gave this one a try and it worked.
> 
> Difficult to keep up.
> 
Difficult to keep up ?
I'll give you a hint...
--getcontents = option for debmirror

And maybe I shall have only sent this message to the person who told me
to try --getcontents. Only wanted to say thanks for the help.
>>> Next step...
>>> I'm setting up a Debian mirror (don't know if it will be very useful
>>> because I already have one nearby (iweb.ca)...
>>>
>>> But as I'm only carrying Buster and Bullseye (possibly the next testing
>>> too).
>>>
>> With only the security update mirror.
>> Please don't write me (again) it's bad to create a local copy of
>> security-update.
>>
>> Now getting this problem :
>>
>> E: The repository 'file:/mnt/mirror/security-debian buster/updates
>> Release' does not have a Release file.
>> N: Updating from such a repository can't be done securely, and is
>> therefore disabled by default.
> 
> Just copy the files *Release* from the website with wget?
> (In no way condoning what you are attempting to do.)
> 
Yes, just copy the *Release* file.

But doing things like trained monkey doesn't go nowhere. There's a
reason why it did work for the debian.org repository and not the
security updates.

First thing is understanding why, so that the choice I'll make will be
based on fact to support them. Not based on "this seem like working".

And it's related to the way the repository is maintained.

So I went with using aptly to create a local repository, that I sign
with my own key. This way, I keep it secure.

One reason it is recommended not to make local copy of security-updates
is because the repository is not signed. So it would be easy to
compromise. As a fact, the Release file ain't present itself.

But by making my own repository for security update and signing, I did
get a safe local copy.

> Cheers,
> David.
> 

-- 
Polyna-Maude R.-Summerside
-Be smart, Be wise, Support opensource development

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Debmirror Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-25 02:00 +0200
  Re: Debmirror David Wright <deblis@lionunicorn.co.uk> - 2021-07-25 03:40 +0200
    Re: Debmirror Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-25 03:50 +0200
      Re: Debmirror Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-25 15:40 +0200
        Re: Debmirror "Andrew M.A. Cater" <amacater@einval.com> - 2021-07-25 18:40 +0200
        Re: Debmirror Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-28 12:20 +0200
          Re: Debmirror Jonathan Dowland <jon+debian-user@dow.land> - 2021-07-29 10:30 +0200
      Re: Debmirror Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-26 03:20 +0200
        Re: Debmirror Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-26 07:20 +0200
          Re: Debmirror David Wright <deblis@lionunicorn.co.uk> - 2021-07-29 07:00 +0200
            Re: Debmirror Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 10:20 +0200
              Re: Debmirror David Wright <deblis@lionunicorn.co.uk> - 2021-07-29 21:20 +0200
                Re: Debmirror Polyna-Maude Racicot-Summerside <debian@polynamaude.com> - 2021-07-29 21:50 +0200

csiph-web