[Fuego] [PATCH 1/2] Do not use httpredir.debian.org links.

Guilherme Camargo guicc at profusion.mobi
Thu Mar 8 21:51:46 UTC 2018


Hello, Tim.

Yes, that was intended. Sorry for not pointing that out in the commit
message.

I just tested again, adding the `deb http://security.debian.org/ jessie/updates
main` to /etc/apt/sources.list, and had the error below while Docker was
building the image. See that apt-get fails to install some toolchains.

We couldn't find exactly why this was happening, but it makes us think that
eventually the security repo and the tools repo are not sync'ed. By
removing the security repo, this problem does not happen anymore.


```
Step 7/33 : RUN echo deb http://emdebian.org/tools/debian/ jessie main >
/etc/apt/sources.list.d/crosstools.list &&     curl
http://emdebian.org/tools/debian/emdebian-toolchain-archive.[0/1981]
t-key add - &&     dpkg --add-architecture armhf &&     apt-get update &&
   apt-get -yV install         binutils-arm-linux-gnueabihf
 cpp-arm-linux-gnueabihf         crossbuild-essenti
al-armhf         gcc-arm-linux-gnueabihf &&     rm -rf /var/lib/apt/lists/*
 ---> Running in bfddc5d95ba3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
100  2398  100  2398    0     0    780      0  0:00:03  0:00:03 --:--:--
 781
OK
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:2 http://emdebian.org jessie InRelease [30.7 kB]
Get:3 http://security.debian.org jessie/updates/main amd64 Packages [632 kB]
Ign http://deb.debian.org jessie InRelease
Get:4 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:5 http://deb.debian.org jessie Release.gpg [2434 B]
Get:6 http://security.debian.org jessie/updates/main armhf Packages [606 kB]
Get:7 http://deb.debian.org jessie Release [148 kB]
Get:8 http://emdebian.org jessie/main amd64 Packages [17.2 kB]
Get:9 http://emdebian.org jessie/main armhf Packages [8217 B]
Get:10 http://deb.debian.org jessie-updates/main amd64 Packages [23.1 kB]
Get:11 http://deb.debian.org jessie-updates/non-free amd64 Packages [449 B]
Get:12 http://deb.debian.org jessie-updates/main armhf Packages [23.1 kB]
Get:13 http://deb.debian.org jessie-updates/non-free armhf Packages [450 B]
Get:14 http://deb.debian.org jessie/main amd64 Packages [9064 kB]
Get:15 http://deb.debian.org jessie/non-free amd64 Packages [101 kB]
Get:16 http://deb.debian.org jessie/main armhf Packages [8864 kB]
Get:17 http://deb.debian.org jessie/non-free armhf Packages [74.9 kB]
Fetched 19.8 MB in 32s (612 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 crossbuild-essential-armhf : Depends: g++-arm-linux-gnueabihf (>= 4.9.1-1)
but it is not going to be installed
 gcc-arm-linux-gnueabihf : Depends: gcc-4.9-arm-linux-gnueabihf (>=
4.9.2-10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c echo deb http://emdebian.org/tools/debian/ jessie
main > /etc/apt/sources.list.d/crosstools.list &&     curl
http://emdebian.org/tools/debian/emdebian-toolchain-archive.
key | apt-key add - &&     dpkg --add-architecture armhf &&     apt-get
update &&     apt-get -yV install         binutils-arm-linux-gnueabihf
   cpp-arm-linux-gnueabihf         crossbuild
-essential-armhf         gcc-arm-linux-gnueabihf &&     rm -rf
/var/lib/apt/lists/*' returned a non-zero code: 100

```


I'll take the change to take another look into it. Will let you know If I
discover something.


On Thu, Mar 8, 2018 at 5:56 PM, <Tim.Bird at sony.com> wrote:

>
>
> > -----Original Message-----
> > From: Guilherme Campos Camargo
> > httpredir.debian.org is known to have some availability issues
> > and out-of-date mirrors [1]. To avoid problems during the image
> > instalation use the default debian PPA servers.
> >
> > Note: We were actually having trouble with the previous mirrors when
> > trying to build the image from scratch. Did you notice any problems with
> > them as well?
> >
> > [1]: https://lists.debian.org/debian-project/2016/04/msg00012.html
> > ---
> >  Dockerfile                                 | 2 +-
> >  setup/apt/sources/fuego-debian-jessie.list | 4 ++--
> >  2 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/Dockerfile b/Dockerfile
> > index cc79351..aa52fd8 100644
> > --- a/Dockerfile
> > +++ b/Dockerfile
> > @@ -13,7 +13,7 @@ MAINTAINER tim.bird at sony.com
> >  ARG DEBIAN_FRONTEND=noninteractive
> >
> >  COPY setup/apt/sources/fuego-debian-jessie.list \
> > -        /etc/apt/sources.list.d/fuego-debian-jessie.list
> > +        /etc/apt/sources.list
>
> You are overwriting the main sources.list, instead
> of just added additional sources (in the .d) directory.
> This ends up eliminating a line:
> deb http://security.debian.org/ Jessie/updates main
> that is in the current sources.list file.
>
> Is this what is intended??
>
> >  RUN apt-get update && \
> >      apt-get -yV install \
> >          apt-utils \
> > diff --git a/setup/apt/sources/fuego-debian-jessie.list
> > b/setup/apt/sources/fuego-debian-jessie.list
> > index d224f15..02f210c 100644
> > --- a/setup/apt/sources/fuego-debian-jessie.list
> > +++ b/setup/apt/sources/fuego-debian-jessie.list
> > @@ -1,2 +1,2 @@
> > -deb http://httpredir.debian.org/debian jessie main non-free
> > -deb http://httpredir.debian.org/debian jessie-updates main non-free
> > +deb http://deb.debian.org/debian jessie main non-free
> > +deb http://deb.debian.org/debian jessie-updates main non-free
>
> I'm OK with this change.
> > --
> > 2.16.2
>
> I'm applying, but may revert depending on answer to above.
>
> This is in my 'next' branch.
>  -- Tim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/fuego/attachments/20180308/bf3d4428/attachment-0001.html>


More information about the Fuego mailing list